I have a Windows 2003 window installation with a virtual box, and I cannot work with it.
I try this on my windows 7 computer
Get-Service –ComputerName myserver
I'm coming back
Get-Service : Cannot open Service Control Manager on computer 'myserver'. This operation might require other privileges.
At Script1.ps1:2 char:4
+ gsv <<<< -cn myserver
+ CategoryInfo : NotSpecified: (:) [Get-Service], InvalidOperationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetServiceCommand
During the search, I found that I should try and use Enable-PSRemoting.
I did this, and now when I try to use it, I get
WinRM is already configured to receive requests on this computer. WinRM is already configured for remote management on this computer.
But I still get the same error. Is it because I use a virtual machine? I am setting up a virtual OS on my domain, and I can even use my AD account credentials for login.
I can get other information.
So I can’t connect to it using powershell.