Quote (Derek @ Apr 13 2014 12:32pm)
Looking for someone who could write the script and explain what each part is doing so i can try an understand how powershell works i have a few more assignments ill prob need help with too
Man, first AD and now powershell. Sounds like some pretty awesome classes!! Not really a job for a real script here, more just running through some of the commands to see what they can do. Lots of pipe use here.
Here's a few places to start.
Use get-member to see all the properties you can examine in the get-process and get-psdrive cmdlets.
Run this:
Get-Process | Get-Member
Create a command to show the free space for each drive on your system. Show just the two columns for drive name and free space, and sort it by the free space.
Get-Volume | select DriveLetter,SizeRemaining | Sort-Object SizeRemaining
Create a command that shows the 5 processes using the most cpu and shows their name and how much cpu they are using.
Get-Process | select CPU,ProcessName | Sort-Object CPU | select -last 5
Use the out-gridview cmdlet to show the current processes and try sorting on the different columns.
get-process | Out-GridView | Sort-Object Name
Use the get-alias cmdlet to view the predefined aliases on the system.
get-alias