Registry-Backup mit PowerShell
Hallo an alle Leser,
ich möchte ein Backup der aktuellen (lokalen) Registry erstellen. Dies soll ein Teil eines größeren PowerShell-Skripts werden.
Leider habe ich im Internet keinen Befehl finden können, der mir weitergeholfen hat.
Danke für eure Antworten
Gruß Timo
P.S.: Wenn ihr mehr Infos benötigt dann fragt einfach.
ich möchte ein Backup der aktuellen (lokalen) Registry erstellen. Dies soll ein Teil eines größeren PowerShell-Skripts werden.
Leider habe ich im Internet keinen Befehl finden können, der mir weitergeholfen hat.
Danke für eure Antworten
Gruß Timo
P.S.: Wenn ihr mehr Infos benötigt dann fragt einfach.
Please also mark the comments that contributed to the solution of the article
Content-Key: 310362
Url: https://administrator.de/contentid/310362
Printed on: April 24, 2024 at 15:04 o'clock
8 Comments
Latest comment
Save the files in the following path:
The user-registry part is saved in the following path for each user
There is now "specific" powershell command for this task.
Regards
C:\Windows\System32\config
%userprofile%\ntuser.dat
There is now "specific" powershell command for this task.
Regards
C:\Windows\System32\config
Einfach so geht das nicht. Wenn überhaupt, dann nur offline oder mittels VSS. Und beim Wiederherstellen geht es nur offline.Was Du natürlich auch machen könntest, wäre eine klassische Sicherung des Systemstatus. Dieser enthält auch die Registry mit allem was zum Computer gehört.
volume shadow copy service
Wie nur Offline (ohne internet oder wie)?
The files are in use by windows Wie Sichere ich den Systemstatus?
Wbadmin start systemstatebackup
Moin 112Timo,
falls du doch noch Interesse am Export per Powershell hast..Hatte da mal was in den Finger ..
http://blog.clearbyte.ch/registry-keys-exportieren-mit-powershell/
6
7
8
9
10
11# ==============================================================================================
$strExportRegKey = "HKCU\Software\clearbyte"
$strExportPath = $env:Temp
$strExportFileName = "clearbyte_$(get-date -f yyyyMMddhhmmss).reg"
reg export $strExportRegKey $strExportPath\$strExportFileName
gruß hagerino :>
falls du doch noch Interesse am Export per Powershell hast..Hatte da mal was in den Finger ..
http://blog.clearbyte.ch/registry-keys-exportieren-mit-powershell/
6
7
8
9
10
11# ==============================================================================================
- Purpose : export registry to reg file
- Author : clearByte GmbH
- Date : 18.09.2015
- ==============================================================================================
$strExportRegKey = "HKCU\Software\clearbyte"
$strExportPath = $env:Temp
$strExportFileName = "clearbyte_$(get-date -f yyyyMMddhhmmss).reg"
reg export $strExportRegKey $strExportPath\$strExportFileName
gruß hagerino :>