Skip to content

Commit 56d93cd

Browse files
Remove test-path (ChrisTitusTech#2585) (#3)
Co-authored-by: CodingWonders <[email protected]>
1 parent 5c9f42b commit 56d93cd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: functions/public/Invoke-WPFMicrowin.ps1

+1-4
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ public class PowerManagement {
263263
# reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null
264264

265265
# When in Offline Image
266-
if (Test-Path "HKLM:\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_")
267-
{
268-
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
269-
}
266+
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
270267
}
271268

272269
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f

0 commit comments

Comments
 (0)