Link to home
Start Free TrialLog in
Avatar of Carletto
CarlettoFlag for Italy

asked on

Remotely Backup of Group Policy

Hello to all of you.
I started using Microsoft SCM 4.0 in order to audit our servers with a baseline previously assigned. Thank you to this great community all is working fine.

Next step is to automate this activity remotely doing a remote policy backup using poweshell.

Has someone already implemented it? could you please advice?
Thank you
Carlettus
ASKER CERTIFIED SOLUTION
Avatar of Dorababu M
Dorababu M
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Carletto

ASKER

Hi, thank you,
scm 4.0 has been installed on a workgroup laptop, if i install RATS on it will I be able to use the backup-gpo command to backup my policies ?
Thank you
Carlo
Dear Dorababu,
I'm going to test it in the afternoon and Let you Know .
Bye
Carlo
Hi Carlo

My understanding is that it should be domain joined, but its worth trying .

Joe
Hi Dorababu,
I made a test and it worked. I created a shared folder on my pc called carloshare and then I was able to create the backup on my workstation (joined on the domain)

$PsSession = New-PSSession -ComputerName plabdc01 -ErrorAction Stop
$param = @{Session=$PsSession }
Invoke-Command @param -ScriptBlock {Backup-gpo -all -path \\workstation1\carloshare}

I need to test it with a workstation on a workgroup, doing in the afternoon.
Thank you
Carlo
Works on both when connected to an Active Directory domain. Doesn't work if the client is in a workgroup.
So what the exported Group Policy format will be after running the script ?
I have 2 GpoId folders corresponding to the default domain policy and default domain controller policy.

ps: I changed the $ComputerName with the Domain controller host name .

I hope this is what you wanted to know .
Bye
Carlettus
Hi Carlettus,

Does the exported format is .XML or some other file that can be easily imported manually to the working domain controllers ?