Link to home
Start Free TrialLog in
Avatar of GTS-DCO
GTS-DCOFlag for United States of America

asked on

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.
Avatar of RobSampson
RobSampson
Flag of Australia image

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.
Avatar of GTS-DCO

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GTS-DCO

ASKER

Rob,

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

Thanks,

Mike