how to execute powershell on workgroup machine – part 1

How To KB MS
how to execute powershell on workgroup machine – part 1

Powershell remoting which comes with Powershell V2 is great tool/option to do everything remotely, but PS remoting is not as simple as powershell local execution.

There are a number of extra steps to take to get V2 remoting to work on workgroup joined computers like the ones in your home or DMZ servers. 

Below script allow you to enable Powershell remoting on workgroup machine as well

# Configures the server for WinRM and WSManCredSSP 
Write-Host “Configuring PowerShell remoting…” 
$winRM = Get-Service -Name winrm 
If ($winRM.Status -ne “Running”) 
{Start-Service -Name winrm} 
Set-ExecutionPolicy Bypass -Force 
new-itemproperty -path HKLM:SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem` 
-name LocalAccountTokenFilterPolicy -propertyType DWord -value 1
Enable-PSRemoting -Force 
Enable-WSManCredSSP -Role Server -Force | Out-Null 
Set-Item wsman:localhostclienttrustedhosts * 

Enable-WSManCredSSP -Role client -DelegateComputer * 



http://www.indkb.com/2011/07/how-to-execute-powershell-on-workgroup.html


(Visited 10 times, 1 visits today)