Jump to content


BWDenver

Pushing a BAT file to servers and workstations, KMS repoint

Recommended Posts

I run an SCCM 2012 system managing about 250 clients, and can deploy applications and Win Updates but my experience so far is limited to just those two items. (Read no formal training)

 

I need to send a BAT file out to my clients to switch them from MAK to KMS Licensing. The file needs to execute on the servers as a “Admin”.

 

The batch file is pretty straight forward:

 

1) slmgr /ipk 489J6-VHDMP-X63PK-3K798-CPX3Y (installs the MS Published KMS key replacing the MAK key)

 

2) slmgr /ato Forces the system to do a DNS lookup for the KMS server SRV record ID and port.

 

I’ve set up the appropriate collections based on a WMI query, specifically the “Caption” in the Win32_OperatingSystem class, ie “Microsoft Windows Server 2008 R2 Enterprise “

 

As I said my experience in this particular area is very limited. Digging on the Internet so far has not uncovered the "fix" for this specific issue.

 

  • Thanks in advance,
  • Bryan

Share this post


Link to post
Share on other sites

you can do it in many ways, if you want to use a batch file then create a package in software library, in that package create a program, the program should point to your batch file, here's an example

 

you have no error checking in your batch file though and that might be a good thing, why not use vbs or powershell instead ?

 

once you've created a working script, and packaged it as a package/program, distribute that package to at least one of your distribution points, once done, test it by deploying the package to a test virtual machine, monitor the behaviour and confirm it's doing what you want, if so, deploy it to a collection containing more computers, and so on...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.