Update New-ToastNotification.ps1
Reboot button action do not install updates pending reboot. See https://github.com/imabdk/Toast-Notification-Script/issues/30
This commit is contained in:
parent
9064a66938
commit
e0c1f9329d
1 changed files with 15 additions and 15 deletions
|
|
@ -946,7 +946,7 @@ exit 0
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$GetCustomScriptPath = $PathInfo.FullName
|
$GetCustomScriptPath = $PathInfo.FullName
|
||||||
[String]$Script = 'shutdown /r /t 0 /d p:0:0 /c "Toast Notification Reboot"'
|
[String]$Script = 'USOClient.exe RestartDevice ResumeUpdate && shutdown.exe /r /t 0 /d p:0:0 /c "Toast Notification Reboot"'
|
||||||
if (-NOT[string]::IsNullOrEmpty($Script)) {
|
if (-NOT[string]::IsNullOrEmpty($Script)) {
|
||||||
Out-File -FilePath $GetCustomScriptPath -InputObject $Script -Encoding ASCII -Force
|
Out-File -FilePath $GetCustomScriptPath -InputObject $Script -Encoding ASCII -Force
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue