PowerShell
| PowerShell | |
|---|---|
| PowerShell Core 6.0 icon.png | |
| Programska Paradigma | Imperative, pipeline, object-oriented, functional i reflective |
| Pojavio se | 14. novembar 2006 |
| Tvorac | Jeffrey Snover, Bruce Payette, James Truher (et al.) |
| Razvijač | Microsoft |
| Sistem tipovanja | Strong, safe, implicit i dynamic |
| Utjecali | Python, Ksh, Perl, C#, CL, DCL, SQL, Tcl, Tk,[1] Chef, Puppet |
| Operativni sistemi |
|
PowerShell je Microsoftov kostur za automatizaciju i konfiguraciju zadataka koji se koristi pomoću komandne linije i pripadajućeg skriptnog jezika. U početku dostupan samo za Windows, poznat pod imenom Windows PowerShell. Kasnije je objavljen kao softver otvorenog koda i za mnoge druge platforme 18. augusta 2016. pod imenom PowerShell Core.[2] Prvi Powershell napravljen je u .NET Frameworku dok je novi pisan u .NET Core.
Administrativni zadaci obično se izvode pomoću cmdlet-ova, koji su specijalizirane. NET klase koje izvršavaju određenu operaciju. Oni rade tako što pristupaju podacima u različitim skladištima podataka, kao što su datotečni sistem ili registry, koji su dostupni preko provajdera. Razvojni programeri drugih proizvođača mogu dodavati cmdlet komande i provajdere.[3] Skripte mogu koristiti cmdlet-ove a same skripte mogu se upakovati u module.
Skelet pruža potpuni pristup COM i WMI interfejsima, omogućavajući administratorima da obavljaju administrativne zadatke na lokalnim i udaljenim Windows sistemima.
Uključuje vlastitu konzolnu pomoć, dostupnu putem cmdleta Get-Help. Moguće je osvježiti lokalnu bazu pomoći sa interneta, putem Update-Help
Dizajn
Powershell jezik je baziran na POSIX 1003.2 Korn ljusci.[4]
Može izvršavati četiri vrste naredbi:[5]
- cmdlet (.NET Framework programi dizajnirani za interakciju s PowerShell-om)
- PowerShell skripte (datoteke sa sufiksom
.ps1) - PowerShell funkcije
- samostalni izvršni programi
Ekstenzije datoteka
- PS1 – Windows PowerShell skripta[6]
- PSD1 – Windows PowerShell datoteka (za verziju 2)[7]
- PSM1 – Windows PowerShell datoteka modula (za verziju 2)[8]
- PS1XML – Windows PowerShell Definicije formata i tipa[9][10]
- CLIXML – Windows PowerShell serijalizirani podaci [11]
- PSC1 – Windows PowerShell konzolna datoteka[12]
- PSSC – Windows PowerShel datoteka konfiguracije sesije[13]
Reference
- ^ Snover, Jeffrey (25. 5. 2008). "PowerShell and WPF: WTF". Windows PowerShell Blog. Microsoft.
- ^ Bright, Peter (18. 8. 2016). "PowerShell is Microsoft's latest open source release, coming to Linux, OS X". Ars Technica. Condé Nast.
- ^ "How Windows PowerShell Works". learn.microsoft.com (jezik: engleski). Pristupljeno 29. 8. 2025.
- ^
Payette, Bruce (2007). Windows PowerShell in Action. Manning Pubs Co Series. Manning. str. 27. ISBN 9781932394900. Pristupljeno 22. 7. 2016.
The core PowerShell language is based on the POSIX 1003.2 grammar for the Korn shell.
- ^ "about_Command_Precedence". TechNet. Microsoft. 8. 5. 2014.
- ^ "about_Script". TechNet. Microsoft. 8. 5. 2014.
- ^ "Import-LocalizedData". TechNet. Microsoft. 8. 5. 2014.
- ^ "about_Modules". TechNet. Microsoft. 8. 5. 2014.
- ^ "about_Format.ps1xml". TechNet. Microsoft. 8. 5. 2014.
- ^ "about_types.ps1xml". TechNet. Microsoft. 8. 5. 2014.
- ^ "Export-Clixml". TechNet. Microsoft. 8. 5. 2014.
- ^ "Export-Console". TechNet. Microsoft. 8. 5. 2014.
- ^ "about_Session_Configuration_Files". TechNet. Microsoft. 8. 5. 2014.
<ref> oznaka s imenom "how" definirana u <references> nije korištena u ranijem tekstu.Dalje čitanje
- Oakley, Andy (2005). Monad (AKA PowerShell). O'Reilly Media. ISBN 0-596-10009-4.
- Holmes, Lee (2006). Windows PowerShell Quick Reference. O'Reilly Media. ISBN 0-596-52813-2.
- Holmes, Lee (2007). Windows PowerShell Cookbook. O'Reilly Media. ISBN 0-596-52849-3.
- Watt, Andrew (2007). Professional Windows PowerShell. Wrox Press. ISBN 0-471-94693-1.
- Kumaravel, Arul; White, Jon; Naixin Li, Michael; Happell, Scott; Xie, Guohui; Vutukuri, Krishna C. (2008). Professional Windows PowerShell Programming: Snapins, Cmdlets, Hosts and Providers. Wrox Press. ISBN 0-470-17393-9.
- Kopczynski, Tyson; Handley, Pete; Shaw, Marco (2009). Windows PowerShell Unleashed (2nd izd.). Pearson Education. ISBN 978-0-672-32988-3.
- Jones, Don; Hicks, Jeffery (2010). Windows PowerShell 2.0: TFM (3rd izd.). Sapien Technologies. ISBN 978-0-9821314-2-8.
- Finke, Douglas (2012). Windows PowerShell for Developers. O'Reilly Media. ISBN 1-4493-2270-0.
- Wilson, Ed (2013). Windows PowerShell 3.0 Step by Step. Microsoft Press. ISBN 978-0-7356-6339-8.
- Wilson, Ed (2014). Windows PowerShell Best Practices. Microsoft Press. ISBN 978-0-7356-6649-8.
Vanjski linkovi
- Službeni sajt
- PowerShell na GitHub
- Windows PowerShell Survival Guide Arhivirano 15. 9. 2012. na Wayback Machine on TechNet Wiki
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.









