MSFN Forum: Code needed for help with SMS2003 Capinst.exe - To deploy SMS Clients - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Code needed for help with SMS2003 Capinst.exe - To deploy SMS Clients Rate Topic: -----

#1 User is offline   kev_147 

  • Junior
  • Pip
  • Group: Members
  • Posts: 99
  • Joined: 23-February 06

Posted 04 October 2006 - 01:57 PM

Guys, can you help me out? I am sure this is a right dumb question with a simple solution, but I haven't got an idea.

I want to run the following command from a logon script to install either SMS Advanced Client or Legacy Client, depending on the version of the OS:

%0\..\capinst.exe /SLP="slpname"/AUTODETECT=exit1.exe

The bit where it says exit1.exe is where I am having probs.

I need to write a script that can return a value of 0 if the PC is Windows 95, 98 or NT4 and to return a value of 1 if Windows 2000 or XP. This script should run silently, I have seen an example of a vbscript that just has 1 line, "Wscript.Quit 1" which will make the return value to be 1.

Now if this was to be written in VBScript, is there a way it can run on windows 98 machine without the need of windows scripting host, ie can it be compiled in a .exe that will work on all operating systems


#2 User is offline   Colonel 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 28-November 06

Posted 29 November 2006 - 02:02 AM

I just finished deploying SMS03 to 300 machines across five buildings, and found capist to be a pain. I ended up deploying the client via a GPO, and letting SMS decide the client site based of of the IP Subnet / AD Site Name.

Granted I went all out and extended the AD Schema, so it may not would without that.

As far as writing a script to run any where, you can use regular batch file commands to do this. Check KB190899 for how to determine the OS in a batch file, and based on that you can fill in the AUTODETECT value as needed.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy