Use 7zip which is open source.
If it something you just want to run once then we don’t need a script, we can just do it from the application GUI or command line.
Here is an example of my script.
---------------Begin---------------
md c:\GPO-Backups\GPOs
cscript "C:\Program Files\GPMC\Scripts\BackupAllGPOs.wsf" c:\GPO-Backups\GPOs /comment:"Weekly backup"
cd c:\GPO-Backups
del c:\GPO-Backups\GPOs.zip /q
"C:\GPO-Backups\7-zip\7za.exe" a C:\GPO-Backups\GPOs.zip c:\GPO-Backups\GPOs\*.* -r
rmdir c:\GPO-Backups\GPOs /s /q
---------------End-----------------
No comments:
Post a Comment