Adding statement to profile

Sep 14, 2015 at 9:54 PM
I had problems connecting to my wsus server after importing the Poshwsus module. and found in one of the discussions that I could enter the following line and then it would work

[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")

This actually works good, but now I'm trying to add it to my profile but I'm not sure how to add the command correctly. If I add it as is, it does not work. Any ideas? I'm new at Powershell so any advise is greatly appreciated.

Thanks
Paul