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

Could this be done shorter/neater

$
0
0

I yanked a script from Git-Hub to install 7-Zip with Powershelland pieced the rest as I was learning it. It's simple and more for learning than anything else.

Here's what the total of the script does:

1. Creates a cleanup folder under C:\ (If it doesn't already exist)
2. Installs 7-Zip (If not done already)
3. Downloads virus/malware cleanup tools. (ADWCleaner, Combofix, Junkware Removal Tool, MBAM, and CCleaner.)
4. Zips them into a package to copy through a Remote Control software such as Teamviewer.

It would also silently run them but they don't have the switches for that.

Powershell
#Hides progress bar for reading and writing web requests. $ProgressPreference='silentlycontinue'#This creates a Cleanup folder, if one does not exist. if(!(Test-Path-PathC:\Cleanup)){New-Item-ItemTypedirectory-PathC:\Cleanup}#This installs 7-Zip for...

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

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