diff options
-rw-r--r-- | examples/scripts/ConfigureRemotingForAnsible.ps1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/scripts/ConfigureRemotingForAnsible.ps1 b/examples/scripts/ConfigureRemotingForAnsible.ps1 index 4c3e52b5d4..29dc888fb6 100644 --- a/examples/scripts/ConfigureRemotingForAnsible.ps1 +++ b/examples/scripts/ConfigureRemotingForAnsible.ps1 @@ -74,7 +74,7 @@ Function Write-VerboseLog Function Write-HostLog { $Message = $args[0] - Write-Host $Message + Write-Output $Message Write-Log $Message } @@ -196,8 +196,8 @@ $adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator # Check to see if we are currently running "as Administrator" if (-Not $myWindowsPrincipal.IsInRole($adminRole)) { - Write-Host "ERROR: You need elevated Administrator privileges in order to run this script." - Write-Host " Start Windows PowerShell by using the Run as Administrator option." + Write-Output "ERROR: You need elevated Administrator privileges in order to run this script." + Write-Output " Start Windows PowerShell by using the Run as Administrator option." Exit 2 } |