Microsoft KB Archive/891768

= How to use a script to install the Windows Services for UNIX 3.5 password synchronization component on a domain controller =

Article ID: 891768

Article Last Modified on 11/5/2007

-

APPLIES TO


 * Microsoft Windows Services for UNIX 3.5

-





INTRODUCTION
This article contains a script that you can use to install the Microsoft Windows Services for UNIX 3.5 password synchronization component on a domain controller.

The Windows Services for UNIX 3.5 password synchronization component must be installed on all the domain controllers in a domain. You can use this script to remotely install the password synchronization component.



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To remotely install the Windows Services for UNIX 3.5 password synchronization component, run a script that is similar to the following.

Note You can run this script from a member server. However, you must use an account with domain administrator rights to log on to the server. 'set variables Computer = InputBox(&quot;Domain controller name&quot;) MSIlocation = &quot;sfusetup.msi&quot; 'must be complete path of package CmdLineOptions = &quot;ADDLOCAL=PasswdSync&quot; PIDKEY= SFUDIR= /q AllUsers = FALSE 'install for current user only; set to TRUE to install for all users

'bind to winmgmnt Set WMI = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; & Computer & &quot;\root\cimv2&quot;)

'obtain an instance of the products object Set WMIapp = WMI.Get(&quot;Win32_Product&quot;)

'install the program WMIApp.Install MSIlocation, CmdLineOptions, AllUsers Note You can modify this script to loop through a list of domain controllers.

