Skip to content

Commit

Permalink
Merge pull request StefanScherer#258 from jmdilly/my
Browse files Browse the repository at this point in the history
Fix debugging output in Check-WindowsUpdates
  • Loading branch information
StefanScherer authored May 8, 2020
2 parents 2aa6d28 + 4667505 commit 61cca94
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 61cca94

Please sign in to comment.