Skip to content

Commit 128b2ad

Browse files
authored
Update Get-Registry.psm1
1 parent 3e2ea70 commit 128b2ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Get-Registry.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function Get-Registry {
204204
### Garbage collection and closing of ntuser.dat ###
205205

206206
[gc]::Collect()
207-
reg unload HKU\$($User.SID) > nul 2> nul
207+
reg unload HKU\$($User.SID) *> $null
208208
}
209209
}
210210

0 commit comments

Comments
 (0)