Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 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:
  5. }
  6.  
  7.  
  8.  
  9. Compare-Object -ReferenceObject $(Get-Content C:\test\testfile1.txt) -DifferenceObject $(Get-Content C:\test\testfile2.txt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement