WinRM: Difference between revisions
Jump to navigation
Jump to search
No edit summary (change visibility) |
No edit summary (change visibility) |
||
Line 4: | Line 4: | ||
winrm get winrm/config | winrm get winrm/config | ||
$skipCN = New-PSSessionOption -SkipCNCheck -SkipCACheck | |||
enter-pssession tSFdemo2013-DC1 -UseSSL -SessionOption $skipcn | |||
Invoke-Command -ComputerName tsfdemo2013-dc1 -UseSSL -ScriptBlock {ipconfig} -SessionOption $skipcn |
Revision as of 13:52, 15 April 2015
winrm quickconfig -transport:https
- Note: this command requires a valid server authentication certificate present in machine MY store.
winrm get winrm/config
$skipCN = New-PSSessionOption -SkipCNCheck -SkipCACheck enter-pssession tSFdemo2013-DC1 -UseSSL -SessionOption $skipcn Invoke-Command -ComputerName tsfdemo2013-dc1 -UseSSL -ScriptBlock {ipconfig} -SessionOption $skipcn