1 / 21

PowerShell: Drink the Kool-Aid !

PowerShell: Drink the Kool-Aid !. Who we are…. HardBit Team. Wayne Pruitt The Lead Geek of the Hardbit Solutions team MCAD, MCSD, MCDBA, C|EH, E|CSA, C|HFI, and E|CIH.

helena
Download Presentation

PowerShell: Drink the Kool-Aid !

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PowerShell: Drink the Kool-Aid!

  2. Who we are…..

  3. HardBit Team Wayne Pruitt The Lead Geek of the Hardbit Solutions team MCAD, MCSD, MCDBA, C|EH, E|CSA, C|HFI, and E|CIH. Over the past 12 years he has held many jobs supporting a variety of roles within the Federal Government ranks; ranging from system administrator, security administrator, developer and several IT manager roles. Zack Wojton CTO of the Hardbit Solutions team Bachelors of Science in Information Technology (BSIT), MCSA, ICND, G2700, C|EH, E|CSA, and C|HFI certifications A night owl, that believes in life-long learning. Has over a decade of IT security under his belt, held more IT related jobs than they have certifications for, and believes security is where it all comes together.

  4. What this presentation is “NOT” Not intended to make you a programmer Not a deep-dive Will Not make you an expert We are not affiliated with any sweet rich vendors

  5. DRINK IT! OH YEAH!

  6. What is PowerShell? • Command-Line Shell • Built on .NET framework CLR • cmdlets? We don’t need no stinking cmdlets! • New tools for managing / configuring Windows • Some *nix folks even use it!

  7. Why should you care? • PowerShell is native • PowerShell can save you time • PowerShell can save you $ • PowerShell can be used for remote administration • Totally help you do sweet stuff • PowerShell rocks

  8. PowerShell: Head First • Where to begin • No book necessary (though there are some sweet ones) • Get-Help • Get-Help About_* • Get-Command • Get-Member • Get-PSDrive

  9. PowerShell Basic Syntax • Get-service • Get-service | where-object –FilterScript { $_.status –eq ‘Running’ } • {} used to add script • $_ = single row of data (exp: one line of get-process) • . = says work with one column (access particular method or data)

  10. PowerShell Example • Get-Process | sort-object –property VM –descending | select-object –first 10 | get-member • Get-Process | sort-object –property VM –descending | select-object –first 10 –property company, Name, ID , Path • *output is truncated, ‘enters: Out-Gridview’

  11. Cool coolcool trick! • Get-process | measure-object –property pm –sum –average –min -max

  12. PowerShell One Liners • Get-WMIObject -list • Gwmi–class win32_logicaldisk • Get-wmiobject win32_BIOS –computer PCName | select serialnumber • Get-wmiobject win32_operatingsystem –computer PCName | select ServicepackMajorVersion.buildnumber

  13. PowerShell Script Execution • Cannot run scripts by default • Set-executionpolicyremotesigned • Allows all local script to run without digital signature • *HKLM setting!* • Can be overridden by GPO

  14. Powershell for Admins:Putting it all together • System Inventory • System Management • Account Management • Log Review

  15. Powershellfor IR • Processes • Promiscuous Mode • Restore Points • File Info • User History

  16. Powershellfor Compliance • What server-roles are installed? • Is the computer joined to a domain? • Are security updates installed on a regular basis? • How many users are in the "administrator" group?

  17. PCAT Sneak Preview!

  18. CHEERS!

  19. Any Questions?

  20. Resources • HardbitSolutions.com • Newsgroup: Microsoft.Public.Windows.PowerShell • Team blog: • http://blogs.msdn.com/PowerShell/ • PowerShellCommunity.Org: • http://www.PowershellCommunity.Org • Channel 9 • http://channel9.msdn.com/tags/PowerShell • Wiki • http://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWiki • Script Center: • http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx • CodePlex: • http://codeplex.com/Project/ProjectDirectory.aspx?TagName=powershell • Many excellent books • Manning Press book by PowerShell Dev Lead Bruce Payette: PowerShell in Action • http://manning.com/powershell/ • O’Reilly book by PowerShell Dev Lee Holmes – Windows PowerShell Cookbook • http://www.oreilly.com/catalog/9780596528492/index.html

  21. http://www.Hardbitsolutions.com

More Related