Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Looking Ahead
>
Using PowerShell v2.0
Powershell 2.0
Last Post 19 Nov 2007 08:18 AM by
Marco Shaw (MVP)
. 1 Replies.
Sort:
Oldest First
Most Recent First
Prev
You are not authorized to post a reply.
Author
Messages
pcn
New Member
Posts:1
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)
Veteran Member
Posts:1643
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Looking Ahead
>
Using PowerShell v2.0
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2