Deploying the SCCM Client with a VMware Customization Spec

Since SCCM is our configuration management tool of choice, the SCCM client needs to get installed on all of our newly provisioned VMs. For this exercise I created a service account that only has read permission to the \\sccmserver\sms_sitecode\client share on the SCCM server. The client is installed from this location to ensure that we are always using the latest version and get rid of any need to manually copy files or put it in the template. I am using this in conjunction with vCAC, but it will also work just fine standalone.

1. Make sure that you have your customization spec configured to log in once as administrator:

custspecadmin

2. Add the following lines to you customization spec. This maps a drive to your SCCM share using the service account, installs the client, and then reboots the virtual machine. I put a timeout (sleep) for 60 seconds in there to make sure the install has time to do what it needs to do and it is working well at this point.

cmd.exe /c net use s: \\sccmserver\SMS_sitecode\Client /user:username password
cmd.exe /c s:\ccmsetup.exe <options>
timeout 60
cmd.exe /c shutdown -r -t 00

As always, if you know of another way to do this feel free to leave a comment, I’d love to hear about it.

Facebooktwittergoogle_plusredditpinterestlinkedinmail
This entry was posted in Microsoft, VMware. Bookmark the permalink.

One Response to Deploying the SCCM Client with a VMware Customization Spec

  1. tage manager says:

    I don’t know if it’s just me or if everybody else encountering problems with your site.

    It appears as if some of the written text on your content are running off
    the screen. Can someone else please comment and let me know if this is happening to
    them as well? This could be a issue with my internet
    browser because I’ve had this happen previously.
    Kudos

Leave a Reply

Your email address will not be published. Required fields are marked *