Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Undo-WinRMConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Function Setup-Undo {
If ($RunImmediately)
{
Write-Output 'Undoing WinRM Config Right Now (do NOT execute this over remoting or this code will not complete)...'
Invoke-Command -ScriptBlock [Scriptblock]::Create($UndoWinRMScript)
Invoke-Command -ScriptBlock ([Scriptblock]::Create($UndoWinRMScript))
exit 0
}
else
Expand Down