0% found this document useful (0 votes)
20 views

3 Powershell Getting Started m3 Slides

Uploaded by

chatwithgpt2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

3 Powershell Getting Started m3 Slides

Uploaded by

chatwithgpt2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Gathering Information with PowerShell

Michael Bender
Itsallgeek2mike.com | @michaelbender
What We’ll Cover

Troubleshooting Made Simple


Using Get-
Gathering Information with PowerShell
Dealing with Errors in PowerShell
Troubleshooting Made Simple

Identify the
D
Issues
o
c
u
Verify
Troubleshooting
Find Root m
Results Cause
e
n
t
Determine
and
Implement
a Solution
Gathering Information with PowerShell
Computer
and Networking Registry
Hardware

Active
Files and
Directory
Printers
Objects
Gathering Info Process

Get-­‐Command

Help

Get-­‐Member
Gathering Operating System Information

WMI Repository
§ Windows Management
Instrumentation (WMI) CIMv2
- Get-WMIobject
§ Common Information Model (CIM) WIN32_Processor
- Get-CimInstance

Device ID Name
Gathering Operating System and
Hardware Information with PowerShell

Get-­‐Counter
Get-­‐WMIObject
Get-­‐CIMInstance
Get-­‐Eventlog
Gathering Networking Information

Ipconfig
Get-­‐NetIPAddressConfiguration
Get-­‐SMBMapping
New-­‐SMBMapping
Gathering Registry Information with
PowerShell

Get-­‐PSProvider
Get-­‐Item
Get-­‐ItemProperty
Set-­‐ItemProperty
This is a registry key
property. Use Get-­‐
ItemProperty to view

This is a registry key.


Use Get-­‐Item to view
Working with Files and Printers in
PowerShell
Get-­‐ChildItem
Copy-­‐Item
Move-­‐Item
Rename-­‐Item
Get-­‐Printer
Add-­‐Printer
Remove-­‐Printer
What is
Active Directory?
Working with Active Directory
Information in PowerShell
Get-­‐ADUser
Search-­‐ADAccount
Get-­‐ADComputer
Get-­‐ADGroup
Get-­‐ADGroupMember
Add-­‐ADGroupMember
More Information on Active Directory

Windows Server Administration


Fundamentals – Part 2
• Introduction to Active Directory
• AD Objects and Group Policy
By Michael Bender

http://www.pluralsight.com/courses/windows-server-administration-fundamentals-part2
Wrap Up

Have a set Get-Help


Don’t mess with the
methodology for Get-Command
Troubleshooting Get-Member registry!
Next Up

Gathering Information with PowerShell

You might also like