Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Can I remove applications with PowerShell with a no-restart flag?

$
0
0

I am removing Bloat from new HP laptops and would like it if after each HP Bloat software didn't restart the client when it finished uninstalling. There must be a no-restart flag or argument I am missing. Can't find much online.

Powershell
$myapps='Energy Star','Discover HO Touchpoint Manger','HP 3D DriveGuard','HP Connection Manger','HP Device Access Manager','HP Drive Encryption','HP Device Access Manager','HP Documentation','HP File Sanitizer','HP PageLift','HP Setup','HP SoftPaq Download Manager','HP Software Setup','HP Support Assistant','HP Support Infotmation','HP System Defualt Setup','HP Theft Recovery','HP Client Security Manager','Microsoft Office','Skype*','Validity Fingerprint Sensor Driver'foreach($programin$myapps){Get-WmiObject-ClassWin32_Product|Where-Object{$_.Name-eq"$program"}|...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>