Script to deploy to switch KMS

Need a batch (script) to deploy Windows 7 clients to communicate one KMS from another KMS.  Same for Office 2010.
GTS-DCOAsked:
Who is Participating?
 
RobSampsonConnect With a Mentor Commented:
Hi Mike,

I would think that should work fine.  As stated in the MS article, sppsvc does need to be restarted, but you might need to use

slmgr.vbs /skms <value>:port
net stop sppsvc

I'm not sure at which point the change would take effect.

Try it out.  It looks like you could read the values from here in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

to determine whether it took effect.

Sorry for my vagueness, we haven't gone to KMS yet.

Regards,

Rob.
0
 
RobSampsonCommented:
Hi, I've never done it, or even tried it, but for Office, see here:
http://technet.microsoft.com/en-us/library/ee624350.aspx
specifically the
/sethst:value
switch.

For Windows 7, see here:
http://technet.microsoft.com/en-us/library/ff793409.aspx#EW
and try
slmgr.vbs /skms <value>:<port>

Regards,

Rob.
0
 
GTS-DCOAuthor Commented:
Hi Rob,

Here is the batch file I created.  Is that correct?

@echo off
REM - changing from host to another host
net stop sppsvc
slmgr.vbs /skms <value>:port
REM where value is either the KMS_FQDN, IPv4Address, or NetbiosName of the KMS host and port is the TCP port on the KMS host.
netstart sppsvc

Thanks,

Mike
0
 
GTS-DCOAuthor Commented:
Rob,

Many thanks.  I see it in the regedit.  Now I am going to deploy through our GPO.

Thanks,

Mike
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.