AGPM and Powershell
hello. have implemented agpm in our environment , looking automate few of steps our change control folks.
as of right now, when deploys gpo via agpm, email sent our ticketing system generates change request. goal when change request approved cab, can execute powershell command approve change request in agpm , complete deployment.
i stuck trying use powershell deploy gpo via agpm. aware of cmdlets, , have read documentation on of them, main issue running follows.
if gpo checked-in or out,
get-controlledgpo | {$_.name -eq "name of gpo"}
this gives me relevant information of gpo, correct state.
if gpo deployed, command returns nothing. basically, if in deployed state, can't seem find in powershell. end result of command should be
get-controlledgpo -domain "contoso.com" | {$_.name -eq "name of gpo"} | publish-controlledgpo -comment "chg00001234 approved" -passthru
i did verify can publish other test gpos not in deployed state.
thanks help!
hi,
i stuck trying use powershell deploy gpo via agpm.
>>>to achieve goal, may try use new-gpo , new-gplink.
here article below agpm reference.
advanced group policy object management 4.0
https://araihan.wordpress.com/2011/06/11/advanced-group-policy-object-management-4-0/
best regards,
jay
please remember mark replies answers if help.
if have feedback technet subscriber support, contact tnmff@microsoft.com.
Windows Server > Group Policy
Comments
Post a Comment