Share to:

PowerShell

PowerShell
PowerShell Core 6.0 icon.png
Programska ParadigmaImperative, pipeline, object-oriented, functional i reflective
Pojavio se14. novembar 2006; prije 19 godina (2006-11-14)
TvoracJeffrey Snover, Bruce Payette, James Truher (et al.)
RazvijačMicrosoft
Sistem tipovanjaStrong, safe, implicit i dynamic
UtjecaliPython, 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

  1. ^ Snover, Jeffrey (25. 5. 2008). "PowerShell and WPF: WTF". Windows PowerShell Blog. Microsoft.
  2. ^ Bright, Peter (18. 8. 2016). "PowerShell is Microsoft's latest open source release, coming to Linux, OS X". Ars Technica. Condé Nast.
  3. ^ "How Windows PowerShell Works". learn.microsoft.com (jezik: engleski). Pristupljeno 29. 8. 2025.
  4. ^ 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.
  5. ^ "about_Command_Precedence". TechNet. Microsoft. 8. 5. 2014.
  6. ^ "about_Script". TechNet. Microsoft. 8. 5. 2014.
  7. ^ "Import-LocalizedData". TechNet. Microsoft. 8. 5. 2014.
  8. ^ "about_Modules". TechNet. Microsoft. 8. 5. 2014.
  9. ^ "about_Format.ps1xml". TechNet. Microsoft. 8. 5. 2014.
  10. ^ "about_types.ps1xml". TechNet. Microsoft. 8. 5. 2014.
  11. ^ "Export-Clixml". TechNet. Microsoft. 8. 5. 2014.
  12. ^ "Export-Console". TechNet. Microsoft. 8. 5. 2014.
  13. ^ "about_Session_Configuration_Files". TechNet. Microsoft. 8. 5. 2014.
Greška kod citiranja: <ref> oznaka s imenom "how" definirana u <references> nije korištena u ranijem tekstu.

Dalje čitanje

Vanjski linkovi

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.

  1. 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:
  2. 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.
  3. 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.
  4. 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.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya