Posts

Showing posts from June, 2017

Windows Remote Registry Backup

Image
Time for another code snippet. Had to take some registry backups for a rollback plan and here I am with a PowerShell script that enables to backup registry hives from remote computers. I am still in search of a better and easier method as the method which I used makes a lot of assumptions and copying of files here and there. Some interesting points I have to take care when I wrote this script was regarding the encoding in out-file cmdlet and argument passing in an invoke-command script block. Please feel free to add in your suggestions. Function Export-RemoteRegistry () { <# . SYNOPSIS Enables to backup/Export registry hives from remote servers. . DESCRIPTION Enbles to create backup of registry hives from remote servers and copy it to a centralized location. User needs to have admin privilages to the system and registry keys. . PARAMETER ComputerName Accepts a computer nam...