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 3 times, 1 visits today)

By Arun Sabale

Arun is a Solution Architect on enterprise client management with more than 14 years of experience in IT. Arun Sabale is Blogger and tech enthusiast. His main focus is on Azure cloud infra, Cloud automation with powershell, python, ARM terraform and all cloud infra services like compute, storage, network, automation, function api etc... LinkedIN - https://www.linkedin.com/in/arun-sabale/