Menene Windows PowerShell

windows powershell

Masu gudanar da tsarin suna da kayan aiki mai ban sha'awa wanda ba koyaushe ake amfani da su ba: Windows PowerShell. Godiya gare shi, yana yiwuwa a sarrafa ayyuka da yawa ko aƙalla aiwatar da su cikin tsari da tsari.

An haifi wannan ra'ayin ne a shekara ta 2003 da sunan MONAD sannan bayan shekaru uku aka kaddamar da shi ga jama'a da sunan da ake yi a yanzu domin gabatar da shirin. Windows Vista. Daga baya, an kuma haɗa shi a cikin nau'ikan Windows 7, Windows 8 da Windows 10. Bugu da ƙari, ana iya shigar da Powershell akan tsarin Linux da MacOS.

A cikin ɗan gajeren lokaci an san cewa ra'ayin ƙaddamar da Windows Powershell ya yi nasara. Daga Microsoft an tabbatar da cewa sarrafa wannan kayan aikin zai kasance mafi mahimmancin fasaha mai sarrafa zai buƙaci a nan gaba. Don haka kawai yana da kyau a kula da shi.

Windows Powershell: kayan aiki mai ƙarfi

Windows PowerShell kayan aiki ne wanda aka haife shi tare da kyakkyawan ra'ayi na sauƙaƙe rayuwa ga masu shirye-shirye. A cikin kwamfuta, an ba shi suna harsashi zuwa layin umarni wanda babban aikinsa shine tattara bayanai da aiwatar da shirye-shirye. A zahiri, Windows PowerShell harsashi ne na umarni na zamani wanda aka ƙirƙira ta hanyar ɗaukar mafi kyawun fasalulluka na wasu harsashi.

Wannan harsashi mai ƙarfi daga Microsoft yana amfani da shi harshen rubutun, yin waɗannan ayyuka har ma da sauƙin aiwatarwa. A daya bangaren kuma, tana amfani da yaren shirye-shirye da aka samar a cikin tsarin .NET Framework na Microsoft, daya daga cikin mafi yawan amfani da shi a duniya.

A halin yanzu akwai kusan kayan aikin layin umarni 130 a cikin PowerShell. Godiya ga su, ana samun mafi girman ƙarfin aiki yayin aiwatar da ayyuka daban-daban, duka a cikin tsarin gida da na nesa.

Menene Windows PowerShell don?

menene windows powershell

Babu shakka wannan yana ɗaya daga cikin mafi kyawun mafita da Microsoft ya tsara a cikin 'yan lokutan nan. PowerShell na iya zama babban taimako ga masu amfani da ke neman cimma wani takamaiman mataki na sarrafa ayyukansu, daga bincike zuwa fitar da bayanai akan kwamfutocin da ke hanyar sadarwa.

Ana aiwatar da duk ayyukan ta hanyar hadewar umarni (umarni da damar o cmdlets) da kuma ta hanyar rubutun. Ga wasu daga cikin abubuwan amfaninta:

Samun bayanai

PowerShell yana ba mu damar shiga tsarin fayil ɗin kwamfuta, har ma da isa ga mafi ƙarancin bayanai da bayanai, kamar rajistar Windows. Wannan "hanyar" ta kasance a buɗe ta hanyar amfani da tushe .NET Framework. Hakanan, duk bayanin shine samuwa ga mai amfani guda umarni line. Jimlar sarrafawa da ganuwa.

Ƙarfin sarrafa kansa

Wataƙila mafi kyawun al'amari na PowerShell, wanda ya haɗa da yawa cmdlets asali, umarnin ayyuka masu sauƙi da aka gina a cikin harsashi. Ana iya ƙara wasu a cikin waɗannan cmdlets mallaka. Ana iya amfani da kowane ɗayan waɗannan umarni ɗaya ɗaya ko a hade don aiwatar da ayyuka masu rikitarwa., kai wani gagarumin mataki na sarrafa kansa.

Alade da wannan shine iyawa scalability Windows Powershell ya bayar. Ta hanyar rubutun cmdlet guda ɗaya, ana iya aiwatar da nau'in nau'in aiki na yau da kullun (kamar sabunta tsarin aiki) don aiwatar da shi akan hanyar sadarwar kwamfutoci kowane takamaiman lokaci.

Haɗin nesa

Hakanan abin lura shine ikon PowerShell zuwa haɗa nesa zuwa wani tsarin. Misali na iya zama mai gudanarwa wanda ke son haɗawa da uwar garken da ke cikin wani wuri na zahiri inda zai iya aiwatar da umarni daidai da yana aiki kai tsaye.

Wasu umarni na PowerShell masu amfani

windows ƙarfin wuta

Don fara aiki tare da kayan aikin PowerShell, dole ne ku sami damar aikin Run da aka haɗa a cikin Windows ta bin waɗannan matakan:

  1. A lokaci guda danna maɓallan Windows + R.
  2. A cikin akwatin Run da ke buɗe gaba, muna buga "PowerShell" kuma danna kan "Don karɓa".

Anan akwai jerin cmdlets masu amfani waɗanda za a iya amfani da su a cikin PowerShell, kodayake ƙananan samfurin su ne kawai:

Samu-Taimako

Ɗaya daga cikin abubuwan farko da za a koya don sarrafa PowerShell da kyau, tun da wannan umarnin zai ba mu duk takardun da muke buƙatar sani game da ayyuka, cmdlets, umarni da rubutun. Alal misali, don neman ƙarin bayani game da Get-Service cmdlet, rubuta "Sabis-Help Get-Service".

Kwafi Abun

Amfani da wannan umarni zaka iya kwafin manyan fayiloli ko fayiloli. Hakanan yana ba ku damar kwafa da sake suna.

Samu Sabis

An yi amfani da shi san abin da ayyuka aka shigar a kan tsarina, da wadanda ke gudu da wadanda aka riga aka tsayar.

Kira-Kira

Ana amfani da shi don aiwatar da rubutun ko umarnin PowerShell akan kwamfutoci ɗaya ko fiye. Ana amfani da ita ta rubuta Invoke-Command kusa da rubutun tare da ainihin wurinsa.

Cire Abun

Umurnin share kowane abu kamar manyan fayiloli, fayiloli da ayyuka. Yana ba da damar zaɓin gogewa bisa jerin takamaiman sigogi.

Samun tsari

Amfani da PowerShell kuma zaku iya gano wadanne matakai ne ke gudana (aikin sa yayi kama da na umarnin Sabis-Sabis).

ƙarshe

Ɗauka ɗaya bayan ɗaya, duk waɗannan umarni na iya zama kamar ba su da amfani sosai. Ana bayyana yuwuwar sa na gaskiya lokacin da aka haɗa umarnin tare da wasu sigogi. Anan ne suke gano cikakken damar su.

A ƙarshe, idan muna so mu san duk samuwan PowerShell cmdlets, duk abin da za mu yi shi ne aiwatar da umarnin "Nuna-Umurni", wanda zai buɗe taga yana nuna jerin jerin duk umarni.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

2 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Boris m

    Yawan fi'ili da wuyar narkewa. Ban san me ake nufi ba

  2.   Marcelo Doctorovich m

    Ta yaya zan sabunta shi?