The purpose of this document is to help Network Administrators deploy the CurrentWare client to workstations on using a batch file and Window’s Group Policy. This procedure is targeted to Network Administrators familiar with deploying software through Group Policies in an Active Directory environment.Requirements:
- Windows Server Active Directory
- CurrentWare Server installed
- A shared location and ensure that all the users in AD have permission to access these files from the location
Step 1: Editing the Batch File
The cwClientDeploy.bat Batch file can be downloaded from: http://www.currentware.com/downloads/tools/cwClientDeploy.zip
1. Right click on cwClientDeploy.bat and edit.
2. You will find the following commands in the batch file. Please edit the Red Coloured portions only with your required credentials.
Set DomainAdmin=Enter a Domain Administrator in the format DOMAIN\USER
Set DomainPass=Enter the Domain Administrator's password.
SET NewcwPass=Enter the new cwAgent password or enter 'Admin' (default password)
SET cwServer=Enter the CurrentWare Server's computer name or IP address
3. After entering the credentials, save the file without changing the name.
Step 2: Running cwClientDeploy.bat via GPO
1. Open Active Directory and move the required computers to a new group or OU.
2. Open Group Policy Management Console.
3. Expand and navigate to the newly created AD OU.
4. Right click on that OU and click ‘Create a GPO in this domain and link it here’.
5. Enter a name for the new GPO and hit OK.
6. Click on the newly created policy to get its properties.
7. Navigate to the settings tab on the right side screen and right click on computer configuration.
8. Click edit and you will be redirected to the Group Policy Editor window.
9. On the GP Edit window, expand and navigate to the windows settings. Click Scripts (Startup/Shutdown).
10. From the right side screen double click Startup and you will get the startup properties window.
11. Click Show Files to get the startup scripts folder (C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup). And paste cwClientDeploy.bat in that folder.
12. Click add to set scripts.
13. Click and browse for the cwClientDeploy.bat from the above mentioned folder.
14. In the script parameters field Type in:
Runas /profile /user:domainname\administrator cwClientDeploy.bat
And hit OK. (Put the exact domain name only in the given command line. Nothing else need to be changed.)
15. Apply the property settings and hit OK.
16. Close GP Editor and refresh the Group Policy Management console.
17. Again navigate to the newly created policy and click on Settings tab. Verify that the Script execute policy is showing active underneath the computer setting tree.
18. Go to Scope tab and enforce this policy to its group. Add and apply the same settings to any particular users or groups, if you wish to.
19. Restart the client computers and wait for around 10 minutes to complete the task.
20. Once a computer is connected to the CurrentWare Console, remove the computer from the OU.
21. Once all the computers are connected to the CurrentWare Console, disable the start-up script.