header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Powershell 2.0
Last Post 19 Nov 2007 08:18 AM by Marco Shaw (MVP). 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 09:12 AM
    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 Shaw (MVP)User is Offline
    Veteran Member
    Veteran Member
    Posts:1643
    Avatar

    --
    19 Nov 2007 08:18 AM
    (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
    https://mvp.support.microsoft.com/profile/Marco.Shaw
    *Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
    *Blog - http://marcoshaw.blogspot.com
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer