onsdag, november 18, 2009

 

Enable-PSRemoting is broken in PowerShell?

Yesterday I installed the RTM bits of WinRM 2.0 on a Windows Server 2003 machine and it were really no issues at all getting it working.

Today I tried to do the same thing but on a Windows 2008 Server (R1) that is not joined to any domain, and it fail on step 1 of the configuration.

In both cases I started out downloading the patch. Then I run "Enable-PSRemoting" in an elevated PowerShell prompt, which succeeded on the Windows 2003 Server but not on the Windows 2008 Server.
The error I got was "Access denied".

I thought I followed the troubleshooting guide for WinRM, but apparently there is slight difference of two different ways I found on how you set this up. You can either run "Enable-PSRemoting" or you can run "winrm qc". If I run the quick config tool using the "winrm" command everything works out just fine, but if I use "Enable-PSRemoting" I get "Access denied".

The most mysterious part of this is that "Enable-PSRemoting" WORKED on Windows Server 2003, but not on Windows Server 2008. Strange!

If you have any clues about this, please leave me a comment!

Etiketter: , ,


Kommentarer:
See the following links :

http://stillpearling.blogspot.com/2009/02/powershell-adventures.html
http://blogs.msdn.com/wmi/archive/2009/07/24/powershell-remoting-between-two-workgroup-machines.aspx

http://www.nivot.org/2008/05/09/PowerShell20CTP2ProblemsWithWinRMAccessIsDenied.aspx

http://blogs.msdn.com/powershell/archive/2009/04/30/enable-psremoting.aspx

https://connect.microsoft.com/windowsmanagement/feedback/ViewFeedback.aspx?FeedbackID=493412
http://web2.minasi.com/forum/post.asp?method=TopicQuote&TOPIC_ID=32137&FORUM_ID=63

http://keithhill.spaces.live.com/blog/cns!5A8D2641E0963A97!7003.entry

http://blogs.msdn.com/powershell/archive/2009/04/10/configuring-powershell-for-remoting-part-2-fan- in.aspx

http://msdn.microsoft.com/en-us/library/ee309365(VS.85).aspx

http://technet.microsoft.com/en-us/library/dd347642.aspx

http://blogcastrepository.com/blogs/benoits/archive/tags/WINRM/default.aspx
 
Thanks "anonymous"!

- Johan
 
Skicka en kommentar

Prenumerera på Kommentarer till inlägget [Atom]





<< Startsida

Prenumerera på Inlägg [Atom]