lordofremixes
Goto Top

Alle Programme mit bestimmtem Namen automatisch (per GPO) deinstallieren

Hallo zusammen,

gibt es eine Möglichkeit, alle Programme beginnend mit z.B. "Dell..." im Namen per Script und somit per GPO zu deinstallieren oder muss ich für jede Programmdeinstallation den Uninstall String raussuchen, und für jede Softwaredeinstallation eine eigene GPO erstellen?

Clients sind Windows 10 falls das wichtig sein sollte.

Bin für jede Hilfe dankbar..

Gruß
lordofremixes

Content-Key: 356025

Url: https://administrator.de/contentid/356025

Printed on: April 19, 2024 at 18:04 o'clock

Mitglied: 134464
134464 Nov 24, 2017 updated at 14:27:16 (UTC)
Goto Top
gwmi Win32_Product -Filter "Caption like 'Dell%'" | %{$_.Uninstall()}  
Denk mal über ein Deployment-Tool nach, z.B. WSUS Package Publisher.
Member: lordofremixes
lordofremixes Nov 24, 2017 updated at 14:44:04 (UTC)
Goto Top
Hallo Specht,

das kommt, aber erst 2018 face-sad
Wie müsste man deine Zeile anpassen, um Programme mit dem Namen "Dell Command..." von der Deinstallation auszuschließen?
Sprich: Alle Programme mit "Dell" beginnend aber nicht "Dell Command"?
Mitglied: 134464
Solution 134464 Nov 24, 2017 updated at 14:34:29 (UTC)
Goto Top
gwmi Win32_Product -Filter "Caption like 'Dell %'" | ?{$_.Caption -notlike 'Dell Command'} | %{$_.Uninstall()}  
Member: lordofremixes
lordofremixes Nov 24, 2017 at 14:33:51 (UTC)
Goto Top
Teste es kurz....
Member: lordofremixes
lordofremixes Nov 24, 2017 at 14:56:16 (UTC)
Goto Top
Hallo Specht,

habe es in einer administrativen Powershell ausgeführt und den Rechner dann auch neugestartet..


Er hat zwar gerödelt, die Programme sind aber immer noch da.


Hast du ne Erklärung warum?
powershell
software
Member: lordofremixes
lordofremixes Nov 24, 2017 at 14:59:57 (UTC)
Goto Top
Habe auch mal

gwmi Win32_Product -Filter "Caption like 'FreePDF%'" | %{$_.Uninstall()}

ausprobiert, deinstalliert sich leider auch nicht..
Mitglied: 134464
134464 Nov 24, 2017 at 15:32:16 (UTC)
Goto Top
Nicht mit elevated Shell ausgeführt.
Member: lordofremixes
lordofremixes Nov 24, 2017 at 15:40:01 (UTC)
Goto Top
Sorry dass ich das nicht weiß,

habe jetzt
Cmd /c powershell.exe -ExecutionPolicy Bypass \\server1\Dell_deinstall\deinstall.ps1

ausgeführt.

In der Liste habe ich jetzt noch:


Wo liegt mein Fehler?
adm
Mitglied: 134464
134464 Nov 24, 2017 updated at 15:43:19 (UTC)
Goto Top
Wo liegt mein Fehler?
Check die MSI Logs!
https://support.microsoft.com/de-de/help/223300/how-to-enable-windows-in ...
https://support.microsoft.com/de-de/help/834484/you-receive-an-error-160 ...

Fehler 1603 is common!

habe jetzt
Cmd /c powershell.exe -ExecutionPolicy Bypass \\server1\Dell_deinstall\deinstall.ps1
Ist nicht automatisch elevated ....
Member: lordofremixes
lordofremixes Nov 24, 2017 at 15:43:58 (UTC)
Goto Top
OK,

-notlike 'Dell Command'} | %{$_.Uninstall()}

schließt auch Dell Command Dreck und Dell Command Fuck aus oder? (weil da ein % fehlt)?
Mitglied: 134464
Solution 134464 Nov 24, 2017 updated at 15:47:09 (UTC)
Goto Top
-notlike 'Dell Command'} | %{$_.Uninstall()}
schließt auch Dell Command Dreck und Dell Command Fuck aus oder? (weil da ein % fehlt)?
Nein dort darf kein % stehen das % ist nur im WMI Filter ein Wildcard un im Where Object kannst du nur das * als Wildcard verwenden!!
Och mensch, lesen min jung ...
https://blogs.technet.microsoft.com/heyscriptingguy/2011/12/14/use-power ...
Member: lordofremixes
lordofremixes Nov 24, 2017 at 15:51:33 (UTC)
Goto Top
Ok Specht, dann werde ich jetzt mal die ganze Links studieren.
Ich denke, ich komme dann soweit zurecht.
Vielen Dank erstmal!!!!