1+1 #:) get-command get-alias #Preddefinovane aliasiy (dir, cd, type, cls...) get-member #umi vzit objekt a ukazat jeho tridu get-process | get-member get-process -id 0,4 get-process -name lsass,smss get-help get-process -full #/ -detail / -examples get-process notepad get-process notepad | kill get-process | export-csv C:\procesy.csv get-process | select-object name,id,vm |export-csv C:\procesy2.csv #omezeni poli pri exportu $pshome #+profily: %windir%\system32\WindowsPowerShell\v1.0\profile.ps1 # #This profile applies to all users and all shells. %windir%\system32\WindowsPowerShell\v1.0\ Microsoft.PowerShell_profile.ps1 #This profile applies to all users, but only to the Microsoft.PowerShell shell. %UserProfile%\My Documents\WindowsPowerShell\profile.ps1 #This profile applies only to the current user, but affects all shells. %UserProfile%\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 #This profile applies only to the current user and the Microsoft.PowerShell shell. Get-ExecutionPolicy set-executionpolicy remotesigned get-psdrive #(ukaze seznam "disku" - provideru, se kterymi se da pracovat - disky, hkcu, env, cert....)Např. registr nema "soubory" ale "properties" get-host get-host |format-table get-host |format-list get-host |out-file c:\vystup.txt #vystup presmeruje do souboru get-process|convertto-html|out-file c:\htm.htm #vystup do souboru ve formatu html $now = Get-Date $currentMonth = (Get-Date).Month Get-Variable dir env: 5,9,50,1,20,15 |Sort-Object 5,9,50,1,20,15 |Sort-Object -Descending