Commit 378a3e1
Fix HKU PSDrive creation failing under -WhatIf in EOMT
New-PSDrive supports ShouldProcess, so when EOMT.ps1 is run with
-WhatIf the drive creation is skipped and Get-ChildItem HKU: fails.
Adding -WhatIf:$false ensures the read-only PSDrive is always created.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 38224a7 commit 378a3e1
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments