Script to install SCCM Client
Hi guys, I need you help with deploying (using GPO) client sccm. the batch file will check if the folder of the installtion exist, if not it will execute the installation... Best regards, Nahum. Israel.
April 4th, 2012 8:54am

why are you not using the sccm console and manually installing clients to a perticular collection or using the client push installation methord. If you want to do it via group policy then you can use the ccmsetup.msi file since exe cannot be deployed via grouppolicy. Regards, Amim Muhammad Khan AMIM MUHAMMAD KHAN | CTTCNET USER GROUP LEAD | EVENT SPEAKER, MCT, MCTS, MCITP-ENTERPRISE, MCSA http://amimkhan.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2012 8:57am

Hi, I always use a startup script, like this excellent one from Jason Sandys, http://blogs.catapultsystems.com/jsandys/archive/2010/10/19/configmgr-client-startup-script.aspx It will install the SCCM client and more for you. Regards, Jrgen-- My System Center blog ccmexec.com -- Twitter @ccmexec
April 4th, 2012 9:22am

You shouldn't need a batch file. Just do this: http://technet.microsoft.com/en-us/library/bb633010.aspx John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2012 9:45am

Hi Nilsson, I just need a simple batch that will include the "if" format, and will check if specific folder is exist then it will not install the client, but if the specific folder won't be on the windows computer, then it will intall. I don't know how to read the vbscript you sent me from the link...
April 4th, 2012 10:23am

Hi John... some of the clients already have the clients installed, my purpose is to install the ccm client on machines that DO not have the client already istalled on them, that's why i need a simple batch tht will check if the folder of the CCM client installation exist. i hope that now understand why i need a batch file -:) Best regards, Nahum
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2012 10:34am

Hi John... some of the clients already have the clients installed, my purpose is to install the ccm client on machines that DO not have the client already istalled on them, that's why i need a simple batch tht will check if the folder of the CCM client installation exist. i hope that now understand why i need a batch file -:) Best regards, Nahum I assumed. I just hate batch files. :-)John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|
April 4th, 2012 10:56am

hi John... do you know hot to make this batch file that i need?
Free Windows Admin Tool Kit Click here and download it now
April 5th, 2012 5:30am

hi John... do you know hot to make this batch file that i need? Sorry but I don't.John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|
April 5th, 2012 9:14am

Why would you like to use a script to check if the installation folder is existed? You may use a query to create a collection which the clients not installed and install the agent on this collection. See the query in the following link: Collection Query: Clients that do not have a ConfigMgr agent installed Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.Sabrina TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2012 4:45am

Why would you like to use a script to check if the installation folder is existed? You may use a query to create a collection which the clients not installed and install the agent on this collection. See the query in the following link: Collection Query: Clients that do not have a ConfigMgr agent installed Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information. Sabrina TechNet Community Support He's trying to install the client with a GPO not client push. John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|
April 12th, 2012 9:09am

so, something like: if not exist c:\windows\system32\ccm\* \\path\share\folder\ccmsetup.exe /<ccmsetup properties> MSIPROPERTY1=VALUE1 MSIPROPERTY2="VALUE 2" The problem is that the CCM folder might exist, and there might be contents... It might be somewhat niggling to find something to query in the file system that will guarantee the result you're looking for. You should consider using a "Client = NULL" query based collection.
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2012 12:11pm

Just copy this to notepad and rename .cmd ... Then just launch it from the server you want the client installed on. YourSccmServerrName = The name of your SCCM server YoursiteCodeName = Whatever you named your site code @echo off "\\YourSCCMServerName\C$\Program Files (x86)\Microsoft Configuration Manager\Client\ccmsetup.exe" /mp:YourSccmServerName SMSSITECODE=YoursiteCodeName SMSSLP=YourSccmServerName SMSMP=YourSccmServerName DISABLECACHEOPT=TRUE DISABLESITEOPT=TRUE
April 12th, 2012 2:52pm

This is not an answer to the posted question. SPECIFICALLY, posted said "the batch file will check if the folder of the installtion exist, if not it will execute the installation...". The proposed solution IS an effective installer but there is NO detection of if the client actually exists.
Free Windows Admin Tool Kit Click here and download it now
April 16th, 2012 5:20pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics