Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Export Registry Baseline to text file
- $RegHive=@("HKCR","HKCU","HKLM","HKU","HKCC")
- Foreach ($Hive in $RegHive){
- Get-ChildItem -Path Registry::$Hive -Recurse -ErrorAction SilentlyContinue | Out-File -FilePath c:
- }
- 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