How to delete programs remotely on several PCs at once (~ 200)?

List of programs: Adobe Acrobat XI, WinRar, Adobe Photoshop CS6, etc.

Client machines: Windows 7, 8, 8,1, 10 software.

Active Directory is available to me.

  • 2
    Give at least some specifics. What exactly do you delete, what OS on workstations, what administrative tools are available to you. - Pavel Mayorov
  • The question is interesting, but we need details. Please answer Paul's questions. Edit the question using the edit button. - Nick Volynkin ♦
  • Yes. The question is interesting. There will be details - you can begin to advise. - don Rumata
  • Corrected thanks - Yerzhan Aktanov

1 answer 1

If these programs were installed via GPO

You can delete them through the same policy. To do this, go to the policy editor, expand the branch of the desired configuration Computer configuration\Policies\Software settings\Software instalation .

We find the necessary software there and make sure that in its properties on the Π Π°Π·Π²Π΅Ρ€Ρ‚Ρ‹Π²Π°Π½ΠΈΠ΅ (Deployment) tab, the Π£Π΄Π°Π»ΡΡ‚ΡŒ это ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅, Ссли Π΅Π³ΠΎ использованиС Π²Ρ‹Ρ…ΠΎΠ΄ΠΈΡ‚ Π·Π° Ρ€Π°ΠΌΠΊΠΈ, допустимыС ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΠΎΠΉ управлСния (Uninstall this application when it falls out of the scope of management) checkbox is checked Π£Π΄Π°Π»ΡΡ‚ΡŒ это ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅, Ссли Π΅Π³ΠΎ использованиС Π²Ρ‹Ρ…ΠΎΠ΄ΠΈΡ‚ Π·Π° Ρ€Π°ΠΌΠΊΠΈ, допустимыС ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΠΎΠΉ управлСния (Uninstall this application when it falls out of the scope of management) . set.

Next, exit the properties, right-click on the All tasks application -> Remove. In the window that opens, select НСмСдлСнноС ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠ΅ этого прилоТСния с ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€ΠΎΠ² всСх ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ (Immediately uninstall the software from users and computers) .

If not through GPO

First option:

We find on the target PC registry branch HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall there is a list of installed programs on the local machine. And there are directives called UninstallString approximately the MsiExec.exe /I{ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€} type: MsiExec.exe /I{ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€} is just a command that needs to be executed to remove a specific software. You need to find out these commands for each software that you want to remove, in theory, they do not differ from the same version of software.

The second option:

use built-in uninstallers. They usually lie in C:\Program Files\Имя софта\uninstall.exe but for them you need to look for the "silent start" keys in order to work without dialog boxes.

The third option:

Just google UninstallString for each software. They are often written in the official documentation, as well as on the forums on the topic.

Next you need to write a script that executes the commands found on powershell or vba and hang it on netlogon. Something like this, but with your startup strings:

 Set objWshShell = WScript.CreateObject("WScript.Shell") On Error Resume Next objWshShell.Run "msiexec.exe /X{00000000-0000-0000-0000-000000000000} /qn", 1, True WScript.quit 

Next, put the script file in a readable network folder.

Create a new policy, go to the branch Conputer configuration\Windows settiong\Scripts (Startup/Shutdown) and add it there.

We apply the policy to the target computers.

  • Thank you very much! - Yerzhan Aktanov