Hagaaji: cmdlets PowerShell oo saxeexan ayaa ka hooseeya cmdlets aan saxeexin

cmdlet waa amar(cmdlet) fudud oo lagu isticmaalo deegaanka Windows PowerShell . Runtime -ga Windows PowerShell wuxuu ku baaqayaa cmdlets-kan gudaha macnaha qoraallada otomaatiga ah ee lagu bixiyo khadka taliska. Windows PowerShell runtime waxay sidoo kale ugu yeertaa barnaamij ahaan iyada oo loo marayo Windows PowerShell APIs(Windows PowerShell APIs) . Maqaalka maanta, waxaan ku aqoonsan doonaa sababta ka dibna waxaan bixin doonaa xalinta arrinta ku saabsan cmdlets PowerShell(PowerShell cmdlets) ee saxeexan oo ka hooseeya cmdlets aan saxeexin Windows .

Cmdlets waxay qabtaan ficil waxayna caadi ahaan ku soo celiyaan shayga Qaabdhismeedka Microsoft .NET(Microsoft .NET Framework) amarka xiga ee dhuumaha. Si aad u qorto cmdlet, waa inaad fulisaa fasalka cmdlet kaas oo ka soo jeeda mid ka mid ah labada fasal ee cmdlet ee gaarka ah. Fasalka la soo saaray waa inuu:

  • Ku(Declare) dhawaaq sifada tilmaamaysa fasalka la soo saaray sidii cmdlet.
  • Qeex(Define) guryaha dad waynaha ee lagu qurxiyey sifooyin tilmaamaya hantida dadwaynaha inay yihiin cabbiraadaha cmdlet.
  • Tirtir mid ama in ka badan oo ka mid ah hababka habaynta wax gelinta si loo habeeyo diiwaannada.

cmdlets PowerShell(PowerShell) oo saxeexan waxay u socdaan si ka hooseeya cmdlets aan la saxeexin

Waxaad ogaan doontaa in cmdlets Windows PowerShell saxeexan ay si tartiib tartiib ah u socdaan marka loo eego cmdlets aan saxeexin.

Arrintani waxay dhacdaa sababtoo ah kumbiyuutarku kuma xidhmi karo ciwaannada soo socda si loo xaqiijiyo Liiska Kalsoonida Shahaadada(Certificate Trust List) ( CTL ):

http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/disallowedcertstl.cab

http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/authrootstl.cab

Tani waxay dhacdaa marka arin shabakadeed jirto. Tusaale ahaan, waxaa jira habayn wakiil oo khaldan.

Si arrintan looga shaqeeyo, samee waxyaabaha soo socda:

cmdlets PowerShell oo saxeexan waxay u socdaan si ka hooseeya cmdlets aan la saxeexin

Computer Configuration > Windows Settings > Security Settings > Public Key Policies

  • Qaybta tafaasiisha ee dhinaca midig, laba-guji Dejinta Xaqiijinta Jidka Shahaadada(Certificate Path Validation Settings) .
  • Dooro tab dib u soo celinta shabakada(Network Retrieval)
  • Hubi sanduuqa qeexida dejinta siyaasadahan(Define these policy settings) .
  • Ka saar si toos ah shahaadooyinka u cusboonaysii ee ku jira sanduuqa hubinta ee barnaamijka shahaadada xididka ee Microsoft (lagu taliyay)(Automatically update certificates in the Microsoft Root Certificate Program (recommended) ) .
  • Guji Codso(Apply) > OK.

Hadda waxaad ka bixi kartaa Tifaftiraha Siyaasadda Kooxda Maxaliga ah(Local Group Policy Editor) .

That’s it!



About the author

Waxaan ahay injineer software leh in ka badan 10 sano oo waayo-aragnimo ah horumarinta iyo dayactirka Windows 11 ama 10 codsiyada. Waxaan sidoo kale khibrad u leeyahay la shaqeynta Google Docs iyo Microsoft Edge. Xirfadahayga meelahan ayaa iga dhigaya musharax aad u wanaagsan doorarka injineernimada software mustaqbalka.



Related posts