Update Group resource script
Hi! I need a powershell script to update a group by stating the old and the new AccountName. I have looked in the scriptbox, but as far as I can see, there is no script for searching for a group. Could anyone give me a hint on how to do this? Thanks.
April 15th, 2011 4:51am

Hi Soren, what do you want to do exactly? Change the account name of a group? Basically, what you need to do is to get the group object somehow, with $groupAccountName = "myGroup" $group = Export-FIMConfig -CustomConfig "/Group[AccountName=$groupAccountName]" -OnlyBaseResources At that point you can modify / add / remove attributes creating an ImportObject and attaching ImportChanges to it, much like in the examples you find in the scriptbox... Cheers, PaoloPaolo Tedesco - http://cern.ch/idm
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2011 9:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics