Getting a permissions error when trying to open a server

Apr 27, 2015 at 8:39 PM
Edited Apr 27, 2015 at 8:40 PM
I've imported the module without issue, and can see the cmdlets.
However, when I attempt to run any of them (e.g. Get-TSSession) , I am receiving the following error when the script attempts to open the server:

PS H:> get-tssession
Exception calling "Open" with "0" argument(s): "System.Security.Permissions.SecurityPermission"
At H:\My Documents\WindowsPowerShell\Modules\PSTerminalServices\PSTerminalServices.psm1:189 char:24
  • $TSRemoteServer.Open <<<< ()
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : DotNetMethodException
Any suggestions?
Apr 29, 2015 at 8:49 AM
Do you have administrative privileges ion that machine ?
Apr 29, 2015 at 9:31 PM
Yes, I'm using a domain admin account.

I did a bit of Googling, and I saw something about services not running.
The two mentioned were the Computer Browser service, and to make sure NetBios wasn't disabled.
But that didn't seem to help.
It looks like it has something to do with that machine, as I was able to get it running on another server.
I did a quick comparison of services, but I couldn't spot what the issue might be.