Backup and restore the Local GPO (Windows)


To totally unlock this section you need to Log-in


Login

In this article we'll introduce the method to backup and restore the Local GPO.

LOCALGPO, A handy tool to apply security setting to non-domain joined computers or Local GPO in your organization.

  • You may download Security Compliance Manager (SCM) from Microsoft.
  • Extract "Security_Compliance_Manager_Setup.exe" to a new folder A via 7zip or WinRAR;
  • Extract the "data.cab" to a new folder B;
  • In the new folder B, add the .msi extension to file named "LocalGPO";
  • Install the new MSI Installer "LocalGPO.msi";
  • Launch command-line here.cmd from C:\Program Files\LocalGPO on 32-bit systems or C:\Program Files (x86)\LocalGPO on 64-bit systems.
  • Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    Export Policy

    cscript LocalGPO.wsf /Path:C:\GPObackups /Export 
    

    Exports a GPO Backup based on the Local Policy configuration to a folder in the specified path.

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    At this point a new folder will be created:

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    Import Policy

    cscript LocalGPO.wsf /Path:C:\GPObackups\{GPO Backup GUID}
    

    Applies the contents of the GPO Backup stored in the specified path to the Local Policy of a Windows computer.

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    Create GPOPack

    Create GPOPack to deploy via Microsoft Deployment Toolkit (MDT) or Microsoft System Center Configuration Manager (SCCM).

    cscript LocalGPO.wsf /Path:C:\GPObackups /Export /GPOPack 
    

    [tweet]

    Creates a GPOPack and stores it in the specified path. GPOPacks can be copied to other computers, and applied by double-clicking GPOPack.wsf.

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    Copy the folder and double click GPOPack.wsf from other machine to apply the same policy.

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    You may notice that you get a pop-up message when you run this command.

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    This can be suppressed by adding the “/silentswitch.

    Script to deploy via MDT and SCCM

    GPOPack.wsf /silent
    
    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    Restore Policy to default

    cscript LocalGPO.wsf /Restore
    

    Restores the entire Local Policy to its default configuration.

    Backup and restore the Local GPO (Windows)

    Backup and restore the Local GPO (Windows)

    It’s FREE!

    You can get your hand on the LocalGPO tool right now as part of the Microsoft Security Compliance Manager.

    Download

    NOTE: this download will be available only for logged in users.
    [wpfilebase tag="file" id=129 /]

    1 thought on “Backup and restore the Local GPO (Windows)”

    Comments are closed.