Article
Problem:
How to automatically remove the ZCM 10.0.3 agent (silently) via a script
Solution:
If you need to remove the 10.0.3 agent via a script (run as a batch file, placed in a login script or GPO in AD), here's some information you'll need first.
- This assumes that the user logging into the workstation has sufficient rights to remove software
- For some reason Novell has hard-coded the ZCM uninstaller to require that the MS Firewall service be ON and Active, during the uninstall. If you're using a third-party firewall, this assumes that the user on the workstation can stop/start services. If you already use the Windows XP Firewall and it's running, you don't need to use the net start and net stop statements.
- Your GUID numbers for the CASA and Novell CASA Authentication Token Client may be different.
- This also assumes you want to remove the agent from the workstation only via the -c switch. You can use a -h switch to get a list of all the command line switches.
Here's a batch file I created that will remove the agent silently and then reboot the workstation. This was only tested with ZCM 10.0.3 on Windows XP. It may work with ZCM 10.1, but I would expect the GUID numbers to be different. ZCM 10.1 also does appear to need the Windows Firewall to be active as well (again, for some strange reason).
@echo off
cd "C:\Program files\novell\zenworks\bin"
REM This starts the Windows XP Firewall Service
net start sharedaccess
REM This removes the ZCM agent from the workstation ONLY.
zenworksuninstall.exe -c -q
REM This removes the Novell CASA Authentication Token Client
MsiExec.exe /x{E016C7E1-AC80-4C90-9F8B-3EF16ABA2834} /qb!
REM This removes the CASA Client
MsiExec.exe /x{F5313E94-F17E-4AF6-8E46-6D97ECF4C370} /qb!
REM This stops the Windows XP Firewall Service
net stop sharedaccess
REM This reboots the workstation with a 30 second countdown
shutdown -r
Example:
@echo off
cd "C:\Program files\novell\zenworks\bin"
net start sharedaccess
zenworksuninstall.exe -c -q
MsiExec.exe /x{E016C7E1-AC80-4C90-9F8B-3EF16ABA2834} /qb!
MsiExec.exe /x{F5313E94-F17E-4AF6-8E46-6D97ECF4C370} /qb!
net stop sharedaccess
shutdown -r
Environment:
Windows XP with the XP Firewall Service shut off (ie, using third party firewall such as Cisco Security Agent)
ZCM 10.0.3
You want to remove the ZCM agent from the workstation only (ie, not remove it from the ZONE). Useful if the ZCM server is not working or no longer in existence anymore.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
Vista
Submitted by Anonymous on 5 November 2008 - 8:39am.
Hello, would this work with Vista Business?
- Be the first to comment! To leave a comment you need to Login or Register



1