Carletto
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dear Dorababu,
I'm going to test it in the afternoon and Let you Know .
Bye
Carlo
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
My understanding is that it should be domain joined, but its worth trying .
Joe
ASKER
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
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
ASKER
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 ?
ASKER
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
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 ?
Does the exported format is .XML or some other file that can be easily imported manually to the working domain controllers ?
ASKER
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