How Tos > Uninstall Agents using script

Uninstall Agents using script

Tags:   [+]

Silently Uninstall Agents using Script

Follow the below given steps to silently (without the knowledge of the end user) uninstall the Desktop Central Agent from the remote desktops:
  1. Create a Network share [eg.: \\Myserver\Myshare].
  2. Download the attached script uninstallscript.txt.
  3. Rename it to .vbs extension. Save the vb script in the network share created in step1 [\\Myserver\Myshare\uninstallscript.vbs]
  4. Download the PsExec utility from http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx and save it, for example, C:.
  5. Download the attached uninstall.bat and save it in the same folder where you the PsExec utility is available, that is C:
  6. Create a .txt file called computernames.txt. Enter the computer names in which you want to install the agent, each machine name in a single line and save the file in C:(Find attached sample computernames.txt).
  7. Run the batch file using the following command from the dos prompt passing username and password as arguments
    C:\>uninstall.bat <domain>/<username> <password>

Note: You can edit the UnInstall.bat according to your requirements (say if you have saved the computernames.txt in some other directory or if you want to change the share directory name open the batch file and change the parameters accordingly).






 RSS of this page

rtttrrb