PowerShell
From ICO wiki
Jump to navigationJump to search
Tutvustus
- Windows PowerShell Owner’s Manual http://technet.microsoft.com/et-ee/library/ee221100(en-us).aspx
- Introducing Windows PowerShell http://msdn.microsoft.com/en-us/library/ms714418(v=VS.85).aspx
- Scripting with Windows PowerShell http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx
Paigaldus
- Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0) http://support.microsoft.com/kb/968929
Seaded
- Using the Set-ExecutionPolicy Cmdlet http://technet.microsoft.com/et-ee/library/ee176961(en-us).aspx
- Windows PowerShell Shortcut Keys http://technet.microsoft.com/et-ee/library/ee176868(en-us).aspx
- Windows PowerShell Profile http://technet.microsoft.com/et-ee/library/ee692764(en-us).aspx
- Customizing the Console http://technet.microsoft.com/et-ee/library/ee156814(en-us).aspx
Praktika
- Loo alias Get-Process cmdleti jaoks: prots
- Loo funktsioon näitamaks kõiki printereid nimega printerid
- Ekspordi alias
- Salvesta loodud funktsioon profiili
Näited
Esimese loengu näited: PowerShell
PowerShell skriptimiskeskkonna alus- ja põhimõisted
Sissejuhatus
- Getting Started With Windows PowerShell http://technet.microsoft.com/et-ee/library/ee177003(en-us).aspx#ECAA
- Piping and the Pipeline in Windows PowerShell http://technet.microsoft.com/et-ee/library/ee176927(en-us).aspx
Muutujad ja massiivid
- Set-Variable http://technet.microsoft.com/en-us/library/dd347562.aspx
- Variables, Arrays, and Hash Tables http://www.powershellpro.com/powershell-tutorial-introduction/variables-arrays-hashes/
If, kordused ja konveierid
- Conditional Logic Using Loops http://www.powershellpro.com/powershell-tutorial-introduction/logic-using-loops/
- Piping and the Pipeline in Windows PowerShell http://technet.microsoft.com/et-ee/library/ee176927(en-us).aspx
- PowerShell Parameters, Objects, and Formatting http://www.powershellpro.com/powershell-tutorial-introduction/powershell-parameters-objects-and-formatting/
Praktika
- Võta system EventLog'ist 25 viimast sündmust ja ekspordi need CSV faili
- Leia application EventLog'ist enim kirjeid loonud rakendus
- Käivita Internet Explorer ning leia seejärel vastav protsess ja tee kindlaks PID
- Leia enim mäluruumi kasutav protsess ja sulge see