I would like to have a script that uninstall the defrag agent in the workstations in windows domain if the agent exist in the workstation.
I looked on the help pages of the winternal defrag manager and I found this help I would like to have some help from you guys on how to uninstall winternal from computers under a certain OU.
this is the help content:
Using TCP/IP with the Preinstalled Agent
You can use TCP/IP with a preinstalled agent to defragment computers on any TCP/IP network, including networks without File and Printer Sharing. The Defrag Manager agent allows the Schedule Console to copy the Defrag Manager files to the client systems by means of TCP/IP in the absence of File and Print sharing.
To configure a schedule to use TCP/IP with a preinstalled agent:
Select the Client tab of the Schedule Properties dialog box or open the Client Settings page of the New Schedule Wizard.
Select Use TCP/IP with preinstalled agent.
If you select this option you can also set TCP/IP port number and agent password options.
To install the Defrag Manager agent
Copy the TCP/IP agent dfrgmgr.exe from the Defrag Manager installation directory.
Install the agent on computers in the schedule using the following command syntax.
dfrgmgr.exe -i [-s Server | IPAddress] [-p Port] [-k Password [-n ComputerName]]
Install the agent.
Allow connections only from a specified computer name or IP address. The computer name can be a fully qualified DNS name or a NetBIOS name.
Specify the port number. You should enter a value only if you want to override the default port number 52322.
-k Password [-n ComputerName]
Specify a password. If not entered no password is used. If you enter a password, use the -n parameter to specify the name of the client computer as it appears in the schedule if that name is different from the NetBIOS name.
Uninstall the agent.
You can use a software deployment tool such as Microsoft SMS to install the agent, or build a custom Microsoft Windows Installer package file (.msi) to deploy the agent via logon scripts or group policy.
After you install the Defrag Manager agent you can delete the instance dfrgmgr.exe just executed, as a copy is made in the %Systemroot% directory of the computer.
You can run the command again to update any settings. This action stops agent service, uninstalls the agent, and reinstalls it with the new configuration.