Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7995069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:18:05+00:00 2026-06-04T14:18:05+00:00

I have a windows 2003 box setup with virtual box and I can’t powershell

  • 0

I have a windows 2003 box setup with virtual box and I can’t powershell to work with it.

I try this on my windows 7 machine

Get-Service –ComputerName myserver

I get 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

While searching around I found I should try and use Enable-PSRemoting.

I did this and now when I try to use it I get

WinRM already is set up to receive requests on this machine. WinRM
already is set up for remote management on this machine.

Yet I still get the same error. Is this because I am using a virtual machine? I setup the virtual OS to be on my domain and I can even use my AD account credentials to log in.

I can get other information back from it.

So it is not like I can’t connect to it with powershell.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:18:06+00:00Added an answer on June 4, 2026 at 2:18 pm

    With PowerShell V2 you’ve got two approachs for remote commands.

    Commands with built-in remoting :

    A small set of commands in PowerShell v2 have a -ComputerName parameter, which allows you to specify the target machine to access.

    Get-Process
    Get-Service
    Set-Service
    
    Clear-EventLog
    Get-Counter
    Get-EventLog
    Show-EventLog
    Limit-EventLog
    New-EventLog
    Remove-EventLog
    Write-EventLog
    
    Restart-Computer
    Stop-Computer
    
    Get-HotFix
    

    These commands do their own remoting either because the underlying infrastructure already supports remoting or they address scenarios that are of particular importance to system management. They are built on the top of DCOM and, on the access point of view, you can use them when you can establish a session with the remote machine with commands like NET.exe or PSExec.exe.

    You are trying to use one of them and you’ve got a problem with credentials (-cred parameter), because your token credentials can’t be used to establish an admin session to the remote machine.

    The PowerShell remoting subsystem :

    Before you can use PowerShell remoting to access a remote computer, the remoting service on that computer has to be explicitly enabled. You do so using the Enable-PSRemoting cmdlet. If you are working in workgroup you also need to enable the server to enter on your client computer with this command (on your client computer as administrator):

    Set-Item WSMan:\localhost\Client\TrustedHosts *
    

    Then, you will use New-PSSession Cmdlet (with -computername and -credentials) to create a session object. Then Invoke-Command (with -session and -scriptblock) cmdlet allows you to remotely invoke a scriptblock on another computer. This is the base element for most of the features in remoting. You can also use Enter-PSSession to establish an interactive (SSL like) PowerShell command line with the server.

    Useful link : Layman’s guide to PowerShell 2.0 remoting


    Test this :

    $sess = New-PSSession -ComputerName myServer-Credential (Get-Credential)
    Invoke-Command -Session $sess -ScriptBlock {get-service}
    ...
    Remove-PSSession -Session $sess
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows 2003 box with an ssh server setup. I have msysgit
Windows 2003/IIS 6... I have a virtual directory on a web site that closely
We have a Windows Server 2003 machine running IIS6.0 that hosts two different websites.
I have SQL server running on a legacy Windows 2003 box on IP address
I have a web service running in IIS 6.0 on Windows 2003. It's authentication
I have a CI System setup based on Jenkins on a Windows 2003 server
I have a windows 2003 / IIS 6.5 machine running a classic ASP site.
I inherited a problem. I have a Windows 2003 machine that will not boot.
I have a 32 bit application compiled on a Windows 2003 32 bit machine.
I have a windows service containing this code: public static void ExtractTextInner(string source, string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.