Share via

Local Groups Policies export and import on Windows 10 machines

Mohamed khairy 171 Reputation points
2024-08-04T09:50:27.33+00:00

hi gents

I have four workstations which will be configured using local group policies. I am searching for a way to export the configured group policies from one machine to the rest of the machine. I know the tool LGPO which is available with a policy analyzer. but could this export and import computer and user policy configuration from one machine to another? Could you support me to get the steps for this?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

Answer accepted by question author

  1. Marcin Policht 87,815 Reputation points MVP Volunteer Moderator
    2024-08-04T11:09:06.7966667+00:00

    Export Local Group Policy Settings

    1. Download LGPO Utility: Ensure you have the LGPO tool from the Microsoft Security Compliance Toolkit.
    2. Open Command Prompt: Open Command Prompt as an administrator.
    3. Export Group Policy: Run the following command to export the local group policies:

    LGPO.exe /b C:\Path\To\Backup

    Replace C:\Path\To\Backup with the path where you want to save the backup.

    Import Local Group Policy Settings

    1. Copy the Backup Folder: Copy the backup folder (e.g., on a USB drive) to the target machines.
    2. Open Command Prompt: Open Command Prompt as an administrator on each target machine.
    3. Import Group Policy: Run the following command to import the local group policies:

    LGPO.exe /g C:\Path\To\Backup

    Replace C:\Path\To\Backup with the path to the backup folder on the target machine.

    For more detailed instructions and options, you can refer to the official documentation:


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-08-05T01:29:32.5033333+00:00

    Hi,

    You can create GPO backups using LGPO.exe with the /b parameter and import GPO backups with the /g parameter.

    LGPO.exe /b path [/n GPO-name]

    /b path               Create GPO backup in "path"

    /n GPO-name           Optional GPO display name (use quotes if it contains spaces)

    /g path               import settings from one or more GPO backups under "path"

    Please refer to this link.

    https://techcommunity.microsoft.com/t5/microsoft-security-baselines/lgpo-exe-local-group-policy-object-utility-v1-0/ba-p/701045

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.