Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #Export Registry Baseline to text file
  2. $RegHive=@("HKCR","HKCU","HKLM","HKU","HKCC")
  3. Foreach ($Hive in $RegHive){
  4. Get-ChildItem -Path Registry::$Hive -Recurse -ErrorAction SilentlyContinue | Out-File -FilePath c:\users\john.huntsman\regbaseline.txt
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement