Sida loo damiyo ama loo damiyo fulinta qoraalka Windows PowerShell

Haddii aad rabto inaad shido ama aad damiso Windows PowerShell script fulinta(turn on or off Windows PowerShell script execution) Windows 10(Windows 10) , raac tillaabadan hage tallaabo ah. Waxaan isticmaali doonaa Tifaftiraha Diiwaanka(Registry Editor) iyo Tifaftiraha Siyaasadda Kooxda Maxaliga(Local Group Policy Editor) si aan awood ugu yeesho ama u baabi'iyo shaqadan.

Windows PowerShell waa qalab lagama maarmaan ah oo anfacaya oo ku jira nidaamka hawlgalka Windows . Inta badan waxa jira laba nooc oo qoraal ah – Waxa saxeexay daabacaad la aamini karo iyo qoraallo Maxali ah. Qoraallada maxalliga ah waa waxa aad ku abuurto kombayutarkaaga gaarka ah, halka ka kale uu yahay waxa daabacaad lagu kalsoon yahay u saxeexay si uu u qabto hawl gaar ah.

Daar ama dami fulinta qoraalka Windows PowerShell

Si aad u damiso ama u damiso fulinta qoraalka Windows PowerShell adoo isticmaalaya (Windows PowerShell)tifaftiraha Siyaasadda Kooxda(Group Policy Editor) , raac tillaabooyinkan-

  1. Ka raadi gpedit.msc gudaha sanduuqa raadinta Taskbar.
  2. Guji siyaasadda kooxda wax ka beddel(Edit group policy) ee natiijada raadinta.
  3. Tag Windows PowerShell oo ku jira Habaynta Kombiyuutarka(Computer Configuration) .
  4. Laba jeer dhagsii Daar fulinta qoraalka(Turn on Script Execution) .
  5. Dooro ikhtiyaarka karti leh.(Enabled)
  6. Ka dooro siyaasadda fulinta(Execution Policy) liiska hoos-u-dhaca.
  7. Dooro ikhtiyaarka Disabled si aad u damiso fulinta qoraalka.
  8. Guji Codso(Apply) oo OK .

Aynu si faahfaahsan u eegno tillaabooyinkan.

Marka hore, waa inaad ka furto kombayutarkaaga Tifaftiraha Siyaasadda Kooxda Deegaanka(Local Group Policy Editor) . Taas awgeed, gpedit.mscka raadi sanduuqa raadinta Taskbar oo guji  Tafatirka siyaasada kooxda (Edit group policy ) ee natiijada raadinta. Markaad furto qalabkan, u gudub jidka soo socda-

Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell

Galka  Windows PowerShell  , waxaad ku arki doontaa meel la yiraahdo  Daar Script Execution(Turn on Script Execution) . Laba jeer ku dhufo oo dooro  ikhtiyaarka karti (Enabled ) leh.

Daar ama dami fulinta qoraalka Windows PowerShell

Taas ka dib, ka dooro siyaasadda fulinta liiska hoos-u-dhaca. Waxaad arki doontaa saddexdan doorasho-

  • Oggolow kaliya qoraallada saxeexan
  • Oggolow(Allow) qoraallada maxalliga ah iyo qoraallada saxeexan ee fog
  • Oggolow dhammaan qoraallada

Haddii aad rabto in aad damiso fulinta qoraalka ee Windows PowerShell , dooro  ikhtiyaarka Disabled  .

Si kastaba ha noqotee, dhagsii  Codso (Apply ) iyo  OK  si aad u badbaadiso isbeddelka.

Sidii hore loo sheegay, waxaa suurtogal ah in la sameeyo isbeddel isku mid ah iyadoo la adeegsanayo Tifaftiraha Diiwaangelinta(Registry Editor) . Taas ka hor, waxaa lagula talinayaa in la  sameeyo barta Soo celinta Nidaamka  iyo  kaydinta dhammaan faylasha Diiwaangelinta(backup all Registry files) .

Daar ama dami fulinta qoraalka Windows PowerShell adoo isticmaalaya (Windows PowerShell)Diiwaanka(Registry)

Si aad awood ugu yeelato ama u joojiso fulinta qoraalka Windows PowerShell , raac tillaabooyinkan-

  1. Riix Win+R .
  2. Ku qor regedit oo taabo badhanka Gelida .(Enter)
  3. Guji badhanka Haa(Yes)
  4. Tag Windows gudaha furaha HKLM(HKLM key) .
  5. Midig ku dhufo Windows> Cusub> Furaha.
  6. U magacaw sida PowerShell .
  7. Midig ku dhufo(Right-click) PowerShell PowerShell > New DWORD (32-bit) Qiimaha(Value) .
  8. U magacow sida EnableScripts .
  9. Laba jeer ku dhufo si aad u dejiso xogta Qiimaha sida (Value)1 .
  10. Right-click PowerShell > New > String Value .
  11. U magacaw sida Siyaasadda Fulinta(ExecutionPolicy) .
  12. Laba jeer ku dhufo si aad u dejiso xogta Qiimaha(Value) sida hoos ku xusan.

Haddii aad rabto inaad wax badan ka barato, sii wad wax akhriska.

Si aad u bilowdo, taabo  Win+R , ku qor regeditoo ku dhufo  badhanka Gelida  . (Enter )Haddii aad aragto degdegga UAC , dhagsii  badhanka Haa (Yes ) si aad u furto Tifaftiraha Diiwaanka(Registry Editor) kombuyutarkaaga. Intaa ka dib, u gudub jidka soo socda-

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows

Midig ku dhufo Windows, dooro  New > Key,  oo u  magacow PowerShell(PowerShell) .

Sida loo damiyo ama loo damiyo fulinta qoraalka Windows PowerShell

Waa inaad ku abuurtaa DWORD (32-bit) Qiimaha(Value) iyo Qiimaha(String Value) Xargaha furaha  PowerShell  . Taas awgeed, midig-guji PowerShell > New > DWORD (32-bit) Value oo u magacow sida  EnableScripts .

Sida loo damiyo ama loo damiyo fulinta qoraalka Windows PowerShell

Laba jeer ku dhufo(Double-click) EnableScripts si(EnableScripts) aad u dejiso  xogta Qiimaha (Value data ) sida  ama  0 . Haddii aad rabto inaad awood u yeelatid shaqadan, ka dhig  1 . Haddii kale, ha ahaato  0 .

Sida loo damiyo ama loo damiyo fulinta qoraalka Windows PowerShell

Hadda, waa inaad dejisaa siyaasadda fulinta. Taas awgeed, midig-guji PowerShell > New > String Value , oo u  magacow Xeerka Fulinta(ExecutionPolicy) .

Sida loo damiyo ama loo damiyo fulinta qoraalka Windows PowerShell

Intaa ka dib, laba jeer guji oo geli  xogta qiimaha (Value data ) sida hoos ku qoran-

  • AllSigned:  Oggolow kaliya qoraallada saxeexan
  • RemoteSigned : Oggolow qoraallada maxalliga ah iyo qoraallada saxeexan ee fog
  • Aan xaddidnayn:(Unrestricted:)  Oggolow dhammaan qoraallada

Sida loo damiyo ama loo damiyo fulinta qoraalka Windows PowerShell

Ugu dambeyntii, dhagsii  badhanka OK  si aad u badbaadiso isbeddelka.

Waa intaas! Rajo in ay ku caawin



About the author

Waxaan ahay horumariye mareegaha iyo injineer maqal ah oo leh khibrad 10 sano ka badan. Waxaan ku takhasusay horumarinta barnaamijyada Chrome/Web Audio, iyo sidoo kale codsiyada Discord. Xirfadayda labada dhinacba waxay ii ogolaataa inaan abuuro alaab tayo leh oo ay fududahay in la isticmaalo lana ilaaliyo. Intaa waxaa dheer, waxaan ahay isticmaale khibrad leh oo Discord waxaanan ka shaqaynayay abka in ka badan laba sano hadda.



Related posts