From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Pete Zerger
Sent: Friday, January 30, 2009 10:48 AM
To: msmom@lists.myitforum.com
Subject: Re: [msmom] Change management group on multiple agents

I seem to recall this is exactly how we dealt with this on the MOM 2005 platform as well.


Regards,

Pete Zerger, MS-MVP - Operations Manager 2007
Founder, System Center Forum: http://www.systemcenterforum.org
Founder System Center Virtual User Group http://www.systemcenterusergroup.com

On Fri, Jan 30, 2009 at 9:30 AM, Jeremy D. Pavleck <jeremy@pavleck.net> wrote:

Yep, I do what Marco suggests on a regular basis. It can be done with a simple batch file, I iterate through a list of servers and do

reg add "\\%%A\%rootKey%" /v AuthenticationName /t REG_SZ /d %Gateway% /f
reg add "\\%%A\%rootKey%" /v NetworkName /t REG_SZ /d %Gateway% /f
sc \\server stop HealthService
sc \\server start HealthService

Bob's your uncle.
-------------------------------------------
Jeremy D Pavleck

Pavleck.Com - Photos & Blog / Pavleck.Net - SCOM, PowerShell and more!

"And while some may see them as the crazy ones, we see genius because the people who are crazy enough to think they can change the world are the ones who do." -- Part of an old Apple ad, and a personal philosophy.



On Fri, Jan 30, 2009 at 9:06 AM, Marco Shaw <marco.shaw@gmail.com> wrote:

There is a possibility of trying to change the regkeys remotely using WMI with either VBScript or PowerShell.  Do you know if WMI is enabled to all of these systems?

I'm not sure what the regkeys are though, but they may be documented in the OpsMgr Unleashed book's appendix.

Marco

 

On Fri, Jan 30, 2009 at 10:24 AM, Wilch, Troy W CTR USSOCOM HQ <Troy.Wilch.ctr@socom.mil> wrote:

Does anybody know if there is a script already to change the management group that an agent is assigned with? I found out the server image team typo'ed the wrong management group name in the image, so new servers coming online are all unable to communicate. The image part is corrected but now the new servers to be re-assigned to the correct group now. There must be an easier way to do this that isn't coming to mind like changing the reg key or initiating a repair.

Thanks,

Troy


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/



--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com



==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/



==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/

Trackbacks

No Trackbacks

Comments

No Comments