header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Powershell 2.0
Last Post 19 Nov 2007 04:18 PM by marco.shaw. 1 Replies.
Printer Friendly
Sort:
PrevPrev
You are not authorized to post a reply.
Author Messages
pcnUser is Offline
New Member
New Member
Posts:1
Avatar

--
18 Nov 2007 05:12 PM  
Help! please. Unable to access remote system. The following script used. Computer is in a workgroup. Script from DonJ's Powershell 2.0 book
> $c = Get-Credential -credential "MyComputer\Administrator"
> Start-Psjob -command "Get-Service" -computername "MyComputer" -credential $c

get the error:
SessionId       Name            State           HasMoreData     Command
---------       ----            -----           -----------     -------
21                              Failed          False           Get-Service
marco.shawUser is Offline
Co-Community Director
Basic Member
Basic Member
Posts:188
Avatar

--
19 Nov 2007 04:18 PM  
(I moved your message into the 2.0 forum).

Make sure you have winrm running for starters (start-service winrm) locally and remotely. winrm isn't set to start automatically by default.
Marco

*Microsoft MVP - Windows PowerShell: http://www.microsoft.com/mvp
*PowerGadgets MVP: http://www.powergadgets.com/mvp
*Blog: http://marcoshaw.blogspot.com
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer