Vous êtes sur la page 1sur 1

# course 6434A Module 2 Demo 8

# Misc. Collection of various items you can access with PowerShell


# First test to see if I have full admin rights
#
Get-EventLog Security -newest 20
Get-Acl
Get-Alias G*
Get-AuthenticodeSignature $PSHOME\Examples\profile.ps1
Get-Command -Verb Get
GCM | Measure-Object
Get-Content $env:SystemRoot\system32\drivers\etc\services
GC $env:SystemRoot\system32\Config\netlogon.dns
$Cred = Get-Credential
$Cred
Get-Culture
Get-Date
Get-Date | Get-Member
Get-ExecutionPolicy
Get-History
Get-Host
Get-Item $env:SystemRoot\system32\ntoskrnl.exe
Get-ItemProperty HKLM:\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerS
hell
Set-Location HKCU:\software\Microsoft\windows\currentversion\explorer
GP .
GCI
Get-ChildItem cert:\LocalMachine\AuthRoot
Get-PSDrive
Get-PSProvider
Get-PSSnapin
Get-TraceSource
Get-UICulture | Format-List
Get_Service
GSV | GM
Get-Process
GPS | Sort-Object | Get-Unique
Get-Variable
Get-WmiObject Win32_UserAccount
Gwmi query "SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3"
dir classroom:\
gci classroom:\DomainUsersOU -r | Sort Name
#====================================================================
# End of Demo
# Load next demo script.
CD Democode:
.\Start-Demo '6434A-Mod02-Demo09.txt'

Vous aimerez peut-être aussi