DSC. Заметки на полях
01 Jan 2016The test whether powershell remoting is enabled or not can be done using:
- Check if winrm service is running: Get-Service winrm.
- Check if endpoint is setup: Invoke-WsManAction -Action analyze -ResourceURI winrm/config/service
- Check if PS Plugin is registered: dir WSMan:\localhost\Plugin\microsoft.powershell
If any of the test fails, you need to run Enable-PSRemoting to enable remoting.