Commit 853fa82 1 parent 276f712 commit 853fa82 Copy full SHA for 853fa82
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ Function Write-VerboseLog
74
74
Function Write-HostLog
75
75
{
76
76
$Message = $args [0 ]
77
- Write-Host $Message
77
+ Write-Output $Message
78
78
Write-Log $Message
79
79
}
80
80
@@ -196,8 +196,8 @@ $adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
196
196
# Check to see if we are currently running "as Administrator"
197
197
if (-Not $myWindowsPrincipal.IsInRole ($adminRole ))
198
198
{
199
- Write-Host " ERROR: You need elevated Administrator privileges in order to run this script."
200
- Write-Host " Start Windows PowerShell by using the Run as Administrator option."
199
+ Write-Output " ERROR: You need elevated Administrator privileges in order to run this script."
200
+ Write-Output " Start Windows PowerShell by using the Run as Administrator option."
201
201
Exit 2
202
202
}
203
203
You can’t perform that action at this time.
0 commit comments