# Friday, October 30, 2009

UPDATE: Some general information on remoting: Hey, Scripting Guy! Tell Me About Remoting in Windows PowerShell 2.0
UPDATE 2:
This also applies to machines not attached to a domain (thanks @alexandair)

If you’re running Windows 7 (and if not, why not?) you may have noticed that premium versions include a license for Virtual XP Mode. (read more at http://www.microsoft.com/windows/virtual-pc/download.aspx) Essentially it’s an integrated version of Virtual PC with a full copy of Windows XP SP2 running in it. It’s pretty nice – you can have programs from the virtualized XP instance in your Windows 7 Start Menu and they can even share your desktop.

Problem

First thing you might think as a PowerShell fan is to put PowerShell v2.0 on Virtual XP Mode so you can tinker around with PowerShell Remoting (don’t forget to install .NET Framework 3.5 SP1 first!) Unfortunately it’s not all plain sailing as a default security configuration in Virtual XP prevents the Enable-PSRemoting Cmdlet from succeeding:

PS C:\Documents and Settings\XPMUser> Enable-PSRemoting

WinRM Quick Configuration
Running command "Set-WSManQuickConfig" to enable this machine for remote management through WinRM service.
 This includes:
    1. Starting or restarting (if already started) the WinRM service
    2. Setting the WinRM service type to auto start
    3. Creating a listener to accept requests on any IP address
    4. Enabling firewall exception for WS-Management traffic (for http only).

Do you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.

Set-WSManQuickConfig : Access is denied. 
At line:50 char:33
+             Set-WSManQuickConfig <<<<  -force
    + CategoryInfo          : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand

Resolution

Thankfully, it’s a quick fix; log into VXP and perform Start > Run… “gpedit.msc” and navigate your way to:

Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options

…and change: Network access: Sharing and security model for local accounts

…to: Classic – local users authenticate as themselves.

Now run Enable-PSRemoting again and it should work. No need to reboot!

fix_gpo_security_network_access

posted on Friday, October 30, 2009 12:46:44 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] Trackback
Related posts:
PowerShell 2.0 – Partial Application of Functions and Cmdlets
PowerShell – The Patchwork of Paths, PSPaths and ProviderPaths
PowerShell - Why are keys in Hashtables sorted randomly?
PowerShell 2.0 - About Dynamic Parameters
PowerShell 2.0 – Introducing the PModem File Transfer Protocol
PowerShell 2.0 goes RTM for ALL Platforms

Referred by:
app:/index.html [Referral]
PowerShell (blogsearch.google.co.jp) [Referral]
http://twitter.com/ [Referral]
http://www.google.com/reader/view/ [Referral]
http://www.pageflakes.com/Default.aspx [Referral]
http://twitter.com/oising [Referral]
http://www.google.nl/ig?hl=nl&t=1 [Referral]
http://www.google.com/reader/view/?hl=en&tab=wy [Referral]
http://www.google.co.uk/reader/view/?tab=my [Referral]
http://twitter.com/LucD22 [Referral]
http://www.itf.se/templates/form.php?categoryID=202&id=1541 [Referral]
powershell (blogsearch.google.com) [Referral]
Microsoft PowerShell remoting xp (www.google.com.au) [Referral]
powershell remoting (www.google.com) [Referral]
http://twitter.com/ITFbloggen [Referral]
powershell 2.0 remoting security (www.google.com) [Referral]
Powershell 2.0 PowerShell Remoting (www.google.co.in) [Referral]
http://powershell-scripting.com/index.php?option=com_joomlab... [Referral]
xp powershell remoting (www.google.de) [Referral]
powershell 2.0 for xp sp2 (www.google.com) [Referral]
set-wsmanquickconfigcommand (www.google.com) [Referral]
enabling winrm 2 with powershell 2 (www.google.com) [Referral]
wsmanerror (www.google.de) [Referral]
powershell module virtual pc (www.google.co.il) [Referral]
set-WSManQuickConfig XP (www.google.com) [Referral]
virtual xp mode (www.google.com) [Referral]
powershell 2.0 xp (www.google.com) [Referral]
enable remote management in Powershell 2.0 (www.google.com) [Referral]
start powershell in xp (www.google.com) [Referral]
powershell 2.0 xp (www.google.com) [Referral]
powershell 2.0 and security concerns (www.google.com) [Referral]
powershell virtual restart (www.google.ca) [Referral]
powershell virtual 2008 restart (www.google.ca) [Referral]
powershell xp mode (www.google.co.jp) [Referral]
poweshell remoting (www.google.ca) [Referral]
winrm xp (www.google.com) [Referral]
powershell remoting error line 50 (www.google.se) [Referral]
powershell 2.0 + security issues (www.google.nl) [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
xp mode powershell (www.google.es) [Referral]
powershell 2 remoting xp (www.google.com) [Referral]
enable winrm windows xp powershell 2.0 (www.google.ch) [Referral]
installer powershell 2.0 xp (www.google.fr) [Referral]
powershell get local windows security settings (www.google.com) [Referral]
windows powershell 2.0 remoting (www.altavista.com) [Referral]
http://nigma.ru/index.php?s=powershell+2+XP+winrm&t=web&rg=t... [Referral]
"xp mode" gpedit (www.google.com) [Referral]
powershell remoting https (www.google.hu) [Referral]
powershell remoting windows xp (www.google.com) [Referral]
powershell 2 remoting enable-psremoting (www.google.de) [Referral]
powershell 2 xp remoting (www.google.co.uk) [Referral]
starting powershell 2.0 xp (www.google.nl) [Referral]
enable powershell 2.0 (www.google.com) [Referral]
enable winrm 2.0 (www.google.sk) [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
set-wsmanquickconfig invalidoperationexception (www.google.ca) [Referral]
powershell 2 remoting requirements (www.google.ca) [Referral]
Update powershell for XP2 (www.google.co.id) [Referral]
http://www.netvibes.com/ [Referral]
xp powershell (www.google.com) [Referral]
Enable-PSRemoting for all xp machines (www.google.co.uk) [Referral]
windows power shell on xp (www.google.com) [Referral]
powershell xp mode (www.google.com) [Referral]
enable winRM 2.0 for all xp clients (www.google.co.uk) [Referral]
powershell v2.0 xp (www.google.com.au) [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
enabling remote powershell (www.google.co.nz) [Referral]
how to start powershell 2.0 (www.google.com) [Referral]
windows xp powershell v 2.0 remote enable (www.google.be) [Referral]
windows powershell remoting xp (www.google.co.uk) [Referral]
http://www.scroogle.org/cgi-bin/nbbw.cgi [Referral]
powershell 2.0 set-service (www.google.com) [Referral]
powershell remoting v2 and xp (www.google.com) [Referral]
windows powershell+gpedit (www.google.co.th) [Referral]
remoting windows 2008 (www.google.com.tw) [Referral]
http://www.google.com/reader/view/user/-/state/com.google/re... [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
set-wsmanquickconfig (www.google.ca) [Referral]
winrm 2.0 for xp (www.google.ru) [Referral]
http://technorati.com/tag/remoting [Referral]
virtual xp mode (www.google.com.ph) [Referral]
enable powershell 2 remoting (www.google.com) [Referral]
powershell remoting autostart (www.google.com) [Referral]
windows 7 start menu favorites powershell (www.google.com) [Referral]
enable Windows PowerShell remoting features on XP (www.google.at) [Referral]
powershell 2.0 + xp service pack 2 (www.google.fr) [Referral]
Set-WSManQuickConfig : Access is denied. (www.google.gr) [Referral]
powershell 2.0 Remoting -CTP (www.google.ch) [Referral]
firewall powershell remote xp (www.google.de) [Referral]
powershell 2.0 xp (www.google.lt) [Referral]
powershell 2.0 windows xp remote (www.google.com) [Referral]
enable powershell remoting (www.google.com) [Referral]
powershell 2.0 for xp (www.google.com) [Referral]
Set-WSManQuickConfig : Access is denied (www.google.gr) [Referral]
powershell 2.0 xp (www.google.de) [Referral]
enable remote powershell (www.google.be) [Referral]
enabling powershell 2.0 remoting (www.google.com) [Referral]
virtualxp (www.google.com) [Referral]
.net framework "xp mode" (www.google.com.au) [Referral]
windows 7 powershell 2.0 firewall (www.google.com) [Referral]
powershell remoting (www.google.cz) [Referral]
http://technorati.com/tag/Monad [Referral]
Set-WSManQuickConfig invalid operation exception (www.google.com) [Referral]
powershell 2.0 windows xp sp2 (www.google.co.cr) [Referral]
powershell 2.0 windows xp remoting (www.google.com) [Referral]
powershell for xp (www.google.ch) [Referral]
powershell 2.0 xp sp2 (www.google.com) [Referral]
xp sp2 powershell (www.google.com) [Referral]
powershell local policies security (www.google.com) [Referral]
powershell remoting asynchronous -asjob (www.google.com) [Referral]
microsoft xp powershell 2.0 for xp (www.google.fr) [Referral]
http://ig.gmodules.com/gadgets/ifr?view=home&url=http://1o4.... [Referral]
"Set-WSManQuickConfig <<<< -force" (www.google.com) [Referral]
powershell remoting firewall settings (www.bing.com) [Referral]
WsManError, Microsoft.WSMan.Management.SetWsManQuickConfigCommand (www.google.com) [Referral]
enable-psremoting powershell 2.0 rtm (www.google.com) [Referral]
enable powershell 2 remoting (www.google.co.uk) [Referral]
VirtualXP-licensing-Enabled (www.google.com) [Referral]
Windows 7 "XP mode" How to move another location Power Shell (www.google.com) [Referral]
install .NET remoting on XP (www.google.co.uk) [Referral]
powershell 2.0 XP (www.google.de) [Referral]
powershell 2.0 remoting (www.google.com.tr) [Referral]
enable windows 7 local account powershell (www.google.com) [Referral]
windows xp remote powershell (www.google.com) [Referral]
xp powershell remoting (www.google.ca) [Referral]
powershell remoting xp (www.google.com) [Referral]
xp mode powershell (www.google.com) [Referral]
http://www.step-two.ru/ [Referral]
powershell 2.0 xp (www.google.es) [Referral]
VirtualXP-licensing-Enabled (www.google.com) [Referral]
Set-WSManQuickConfig InvalidOperationException (www.bing.com) [Referral]
powershell 2.0 remoting (www.google.se) [Referral]
powershell 2.0 xp sp2 (www.google.com) [Referral]
windows powershell 2.0 xp (www.google.com.ar) [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
xp powershell (www.google.com) [Referral]
power shell xp (www.google.cz) [Referral]
PSRemoting powershell (www.google.de) [Referral]
winrm xp access denied (www.google.com) [Referral]
winrm 2.0 windows wcf (www.google.fi) [Referral]
Authenticate Win Xp (technorati.com) [Referral]
powershell 2.0 xp (www.google.de) [Referral]
xp powershell (www.google.com) [Referral]
virtul xp (www.google.com.ph) [Referral]
remoting firewall settings "windows 7" (www.bing.com) [Referral]
powershell remoting firewall (www.google.com) [Referral]
http://images.google.com.mt/imgres?imgurl=http://www.nivot.o... [Referral]
powershell remoting network shares (www.google.com) [Referral]
"powershell 2.0" localized (www.google.com) [Referral]
how to run powershell as window xp mode (www.google.com) [Referral]
powershell from cgi (www.google.com) [Referral]
firewall settings for powershell xp sp2 (www.google.com) [Referral]
powershell remoting Windows XP (www.bing.com) [Referral]
powershell Error: Invalid use of command line. Type "winrm -?" for help. (www.google.co.in) [Referral]
xp winrm config access denied (www.google.de) [Referral]
enable remote powershell (www.google.com) [Referral]
enable remoting in xp (www.google.co.in) [Referral]
@shell.com.ph (search.yahoo.com) [Referral]
powershell 2.0 wcf (www.google.com) [Referral]
powershell 2 remoting (www.google.com) [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
windows powershell xp (www.google.com) [Referral]
how to reboot virtual xp mode (www.google.nl) [Referral]
powershell 2.0 xp (www.google.com) [Referral]
http://images.google.co.in/imgres?imgurl=http://www.nivot.or... [Referral]
enable secure virtual mode (www.google.de) [Referral]
http://polprav.blogspot.com/ [Referral]
powershell 2.0 windows xp (www.google.com.tw) [Referral]
PowerShell remoting WinXP (www.google.co.il) [Referral]
@shell.com.au (search.yahoo.com) [Referral]
windows xp mode powershell (www.google.com) [Referral]
enabling remoting (www.bing.com) [Referral]
enable powershell on windows 7 desktop (www.bing.com) [Referral]
windows 7 powershell denied (tw.search.yahoo.com) [Referral]
powershell gpedit (www.google.com) [Referral]
windows xp start powershell 2.0 (www.google.com) [Referral]
powershell 2.0 enable remoting windows xp (www.google.com) [Referral]
powershell 2.0 virtual pc (www.google.pl) [Referral]
gpedit.msc powershell psremoting (www.bing.com) [Referral]
powershell xp mode (www.google.co.uk) [Referral]
powershell cgi (www.google.co.uk) [Referral]
windows xp mode powershell (www.bing.com) [Referral]
http://yandex.ru/yandsearch?text=winrm+invalid+use+of+comman... [Referral]
virtual pc wsman (www.bing.com) [Referral]
remote powershell xp (www.google.nl) [Referral]
"powershell 2.0" "windows xp sp2" (www.google.com) [Referral]
powershell 2.0 remoting security (www.google.se) [Referral]
powershell microsoft xp (www.google.es) [Referral]
winrm set "Invalid use of command line" (www.google.ch) [Referral]
powershell 2 remoting (www.google.com) [Referral]
powershell remoting xp access denied (www.google.no) [Referral]
powershell 2.0 remoting network access (www.google.com) [Referral]
powershell 2.0 remoting (www.google.com) [Referral]
Set-WSManQuickConfig InvalidOperationException (www.google.co.jp) [Referral]
Set-WSManQuickConfig InvalidOperationException Firewall (www.google.co.jp) [Referral]
window power shell for window xp (www.bing.com) [Referral]
powershell 2.0 enable remoting (www.google.com) [Referral]
remote power shell xp (www.google.com) [Referral]
powershell 2.0 remoting (www.bing.com) [Referral]
xp Set-WSManQuickConfig access denied (www.google.pl) [Referral]
powershell 2.0 remoting windows xp (www.google.com) [Referral]
powershell 2 enable remoting (www.google.cz) [Referral]
powershell 2.0 remoting xp (www.google.hu) [Referral]
powershell 2.0 remoting https (www.google.ru) [Referral]
set-wsmanquickconfig access denied (www.google.hu) [Referral]
powershell virtual xp (www.google.co.uk) [Referral]
powershell remoting xp (www.bing.com) [Referral]
"virtual xp" enable remote desktop (www.bing.com) [Referral]
"virtual xp" enable remote desktop (www.bing.com) [Referral]
+winrm already "access denied" windows 2008 (www.bing.com) [Referral]
how to run windows powershell 2.0 in xp (www.bing.com) [Referral]
powershell gpedit (www.google.ca) [Referral]
"windows mobile" remoting (cn.bing.com) [Referral]
set-wsmanquickconfig "access denied" "windows 2008" (www.bing.com) [Referral]
Set-WSManQuickConfig : Access is denied. (www.bing.com) [Referral]
http://live.feedjit.com/news/CN/zhailing-1/?s=p [Referral]
set-wsmanquickconfig access is denied (www.bing.com) [Referral]
powershell xp mode (www.google.de) [Referral]
[Set-WSManQuickConfig], InvalidOperationException (www.google.com.co) [Referral]
winrm already is set upt o receive requests on this machine. Access is denied (www.bing.com) [Referral]
3 (yandex.ru) [Referral]
powershell 2 windows XP (www.bing.com) [Referral]
what to enable for virtual xp? (www.bing.com) [Referral]
powershell 2.0 remoting XP (www.google.com) [Referral]
VirtualXP-licensing-Enabled (www.google.co.uk) [Referral]
xp mode powershell (www.google.de) [Referral]
XP mode Powershell (www.google.com) [Referral]
powershell windows xp sp2 enable-psremoting (www.google.com) [Referral]
enable remote powershell xp (www.bing.com) [Referral]
how enable xp virtual mode (www.bing.com) [Referral]
Comments are closed.