Jump to content











Photo
- - - - -

Ace - My Useful PowerShell Scripts


  • Please log in to reply
5 replies to this topic

#1 AceInfinity

AceInfinity

    Frequent Member

  • Team Reboot
  • 228 posts
  • Location:Canada
  • Interests:Windows Security, Programming, Customizing & Crash Dump Analysis.
  •  
    Canada

Posted 14 October 2011 - 11:37 AM

Posted Image

File Name: Ace - My Useful PowerShell Scripts
File Submitter: AceInfinity
File Submitted: 14 Oct 2011
File Category: Miscellaneous

There's 3 scripts inside of this archive that i've included of my own written ones.
  • KillExplorer
  • GetTopProcess
  • GetServices

KillExplorer - This script basically finds the ProcID of explorer.exe by searching for it's name in your current running processes, and kills it. Upon killing the process explorer.exe is also restarted, nice and clean way of refreshing your system if you need to restart your explorer.exe to do something

GetTopProcess, this finds and sorts processes in descending order based upon CPU usage, and displays the top 5 most CPU hungry processes currently running on your system. Use it if you're curious about CPU consumage.

GetServices - Displays a full list of all running and stopped processes in a sorted organized view, with a statistical message before the script exits with a count of each running and stopped processes.

Click here to download this file
  • Nuno Brito likes this

#2 KoBE

KoBE

    Newbie

  • Developer
  • 23 posts
  •  
    United States

Posted 22 January 2012 - 03:19 AM

Showing some love for you Ace! Thanks for the scripts!

#3 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 22 January 2012 - 04:16 AM

To execute PowerShell scripts, what environment do we need to install?

#4 KoBE

KoBE

    Newbie

  • Developer
  • 23 posts
  •  
    United States

Posted 22 January 2012 - 05:41 PM

It's built on-top of the .Net Framework so you will need to be running windows with it installed. It comes installed by default on Win7 (Click Start, click Programs, click Accessories, click the Windows PowerShell folder, and then click the Windows PowerShell item).

If you do not have it installed, then it's really easy: Download Windows PowerShell 2.0

#5 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 22 January 2012 - 07:16 PM

Got it to work, thanks KoBE.

#6 AceInfinity

AceInfinity

    Frequent Member

  • Team Reboot
  • 228 posts
  • Location:Canada
  • Interests:Windows Security, Programming, Customizing & Crash Dump Analysis.
  •  
    Canada

Posted 23 January 2012 - 05:23 AM

KoBE's getting into Powershell? Pretty awesome :)

Also, that KillExplorer script is extended lol, there's a one liner variation of doing all of that, but I guess I just wanted to get carried away with it !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users