• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 628
  • Last Modified:

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.
0
GTS-DCO
Asked:
GTS-DCO
  • 2
  • 2
1 Solution
 
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
 
RobSampsonCommented:
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
 
GTS-DCOAuthor Commented:
Rob,

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

Thanks,

Mike
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now