Skip to content

Commit

Permalink
Fix debugging output in Check-WindowsUpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdilly committed May 7, 2020
1 parent 2aa6d28 commit 4667505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/win-updates.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function Install-WindowsUpdates() {
function Check-WindowsUpdates() {
LogWrite "Checking For Windows Updates"
$Username = $env:USERDOMAIN + "\" + $env:USERNAME
LogWrite "Script: " + $ScriptPath + "`nScript User: " + $Username + "`nStarted: " + (Get-Date).toString()
LogWrite "Script: $script:ScriptPath `nScript User: $Username `nStarted: $(Get-Date)"

$script:UpdateSearcher = $script:UpdateSession.CreateUpdateSearcher()
$script:successful = $FALSE
Expand Down

0 comments on commit 4667505

Please sign in to comment.