Sida loo taxdo dhammaan adeegyada Windows adoo isticmaalaya PowerShell ama Line Command
Codsiyada socda ee aad ku aragto shaashaddaada waa qayb ka mid ah waxa ka dhacaya Windows . Laga soo bilaabo maaraynta wadayaasha aaladaha ilaa hubinta amniga, farabadan oo ka mid ah hababka asalka ah ayaa ilaaliya Windows PC shaqeeya.
Maamule kasta oo kormeeraya kombiyuutaro badan, waxaa muhiim ah in la awoodo in la eego heerka adeegyadan muhiimka ah. Habka Maareeyaha Hawshu(Task Manager) aad buu u gaabiyaa tan, oo kuma samayn kartid qoraal.
Xalka? Aaladaha taliska. Adigoo isticmaalaya Command Prompt ama PowerShell(Command Prompt or PowerShell) , waxaad si dhakhso ah u heli kartaa akhris ku saabsan adeegyada Microsoft ee ku shaqeeya nidaamka, kaa caawinaya inaad si dhakhso ah u ogaato arin kasta.
Liistada Adeegyada (Services)Daaqadaha(Windows) ee ku jira Amarka Talada(Command Prompt)
In kasta oo aanu u dabacsanayn ama u xoog badnayn sida Windows PowerShell , Talaabada Amarka(the Command Prompt) wali waa qalab aad u fiican maamulayaasha nidaamka. Waxaad isticmaali kartaa amarka queryex si aad u hesho heerka adeegyada firfircoon iyo kuwa naafada ah labadaba ka dibna adeegso amarka taskkill(use the taskkill command) si aad u soo afjarto geeddi-socodka xun.
- Si aad u isticmaasho amarka queryex, ku orod Command Prompt maamule(Administrator) ahaan . Waxaad ka heli kartaa abka adiga oo ka dhex raadiya cmd menu-ka bilawga ah.
- Waxaa jira siyaabo badan oo loo isticmaalo amarka sc queryex. Nooca iyo Gobolka(State) waa labada cabbir ee inta badan la isticmaalo. Tusaale ahaan, geli amarka soo socda si aad u aragto dhammaan hababka Windows :
sc queryex type=service state=all
- Aragtida caadiga ah waxay noqon kartaa xoogaa culus. Waxaad soo bandhigi kartaa kaliya magacyada hababka si aad ugu fududayso liiska:
sc queryex type=service state=all | find /i “SERVICE_NAME:”
- Sida caadiga ah, amarku wuxuu taxayaa dhammaan hababka firfircoon. Si aad u raadiso kuwa aan shaqayn, wax ka beddel xadka gobolka:
sc queryex type=service state=inactive
- Waxaad sidoo kale waydiin kartaa heerka nidaam gaar ah magaciisa. Tani waxay si cajiib ah faa'iido u leedahay maamulayaasha nidaamka, maadaama ay dejin karaan faylasha dufcada si ay u hubiyaan habab badan hal mar. Waa kan tusaale:
sc weydii DeviceInstall(sc query DeviceInstall)
Ku -qorista Adeegyada (Services)Windows ee PowerShell
PowerShell waxaa loola jeedaa in ay u noqoto khad-maskaxeed qolof ah oo loogu talagalay Windows casriga ah . Sidan oo kale, waxay ku siinaysaa marin u helitaan aad u badan qayb kasta oo ka mid ah nidaamka hawlgalka iyada oo loo marayo amarada, adeegyada Windows -na kama reebna.
Faa'iidada PowerShell(PowerShell) waa inaad si fudud si otomaatig ah ugu samayn karto. Dhammaan amarrada PowerShell waxaa lagu soo ururin karaa qoraallo adag, taasoo kuu oggolaanaysa inaad dejiso hawlaha maamulka nidaamka ee kombuyuutarro badan oo aan dhib lahayn.
- Ku bilow(Start) furitaanka PowerShell . Waxaad ka raadin kartaa menu-ka bilawga(Start Menu) ; kaliya iska hubi inaad wado tusaale sare (ie, maamule(Administrator) ahaan ).
- Amarka ugu fudud ee liiska adeegyada Windows ee (Windows)PowerShell waa Adeeg-hel(Get-Service) . Waxay tusinaysaa dhammaan adeegyada kombiyuutarkaaga, oo ay la socdaan xaaladdooda iyo magacyadooda. Dhibaatada kaliya ayaa ah in liiska adeegyadu uu noqon karo mid aad u dheer.
- Markaad isticmaalayso Get-Service , waxaa fiican inaad u dhoofiso liiska faylka qoraalka ah. Waxaad tan ku samayn kartaa adigoo isticmaalaya tuubooyinka, sida tan:
Get-Service | Out-File “C:\logs\All_Services.txt”
- Si aad u eegto heerka adeeg gaar ah, raac amarka Adeegga Hel oo(Get-Service) wata magaca adeegga. Waxaad codsan kartaa heerka habab badan adiga oo magacyadooda ku kala saaraya hakad.
Hel-Adeeg CryptSvc, COMSysApp(Get-Service CryptSvc, COMSysApp)
- Tuubooyinka waxa kale oo loo isticmaali karaa in lagu daro cmdlet - (Where-Object)ka Adeegga-(Get-Service) helka iyo shaqada Hal-Wax-yaabaha oo lagu sifeeyo natiijooyinka xaalad(Status) ahaan . Amarka soo socdaa wuxuu muujinayaa tan adoo helaya dhammaan adeegyada socodsiinta(Running) :
Get-Service | Where-Object {$_.Status -EQ “Running”}
Hubinta Ku-tiirsanaanta Adeegga
Nidaam kasta oo adag waxa loo qaybiyaa adeegyo badan oo isku xidhan. Tani waa sababta in si fudud loo helo heerka adeeg gaar ah inta badan kuma filna. Waxaad sidoo kale u baahan tahay inaad hubiso heerka adeegyada uu adeeggu ku tiirsan yahay.
- Si aad u aragto adeegyada uu u baahan yahay adeeg gaar ah, isticmaal calanka -RequiredServices oo leh cmdlet (-RequiredServices)-ka adeegga(Get-Service) . Waa kan tusaale:
Hel-Adeeg -Magaca CryptSvc -Adeegyada Loo Baahan Yahay(Get-Service -Name CryptSvc –RequiredServices)
- Sidoo kale, si aad u hesho liiska adeegyada ku xidhan adeeg gaar ah, ka faa'iidayso calanka -DependentServices .
Hel-Adeeg -Magaca CryptSvc -Adeegyada Ku-tiirsanaanta(Get-Service -Name CryptSvc -DependentServices)
Labadan calan ayaa muhiim u ah qorista qoraallada si ay si toos ah u bilaabaan ama u joojiyaan adeegyada Windows , maadaama ay ku siinayaan hab aad ula socoto dhammaan adeegyada ku xidhan adeegga ay saamaysay.
Liistada Adeegyada (Services)Daaqadaha(Windows) ee Kumbuyuutarada(Remote) fog
Habka PowerShell kuma koobna kombuyuutarrada maxalliga ah. Waxaad isticmaali kartaa cmdlet -ka Adeegga Get- ka oo leh isla ereyga kor lagu sharraxay si aad u weydiiso hab-socodka PC-yada fog-fog sidoo kale. (Get-Service)Kaliya(Just) ku dheji calanka -ComputerName dhamaadka si aad u qeexdo kumbuyuutarka fog ee aad xogta ka soo qaadanayso.
Waa kan tusaale:
Hel-adeegga CryptSvc -ComputerName Workstation7(get-service CryptSvc -ComputerName Workstation7)
Maareynta Adeegyada (Services)Windows ee PowerShell
Helitaanka heerka adeegyadu maaha waxa kaliya ee aad ku samayn karto Windows PowerShell . Sida jawi qoraaleed buuxa, waxay bixisaa beddelaad qoraal ah dhammaan xulashooyinka GUI .
Powershell cmdlets waxay joojin kartaa, bilaabi kartaa, dib u bilaabi kartaa, ama xitaa wax ka beddeli kartaa adeegyada. Marka lagu daro amarada Adeegga Hel ee(Get-Service) otomaatiga ah, qoraallada PowerShell waxaa loo qori karaa si ay si buuxda u habeeyaan hawlaha maaraynta nidaamka maalin kasta.
- Marka lagu daro weydiinta heerka adeegyada, waxaad sidoo kale isticmaali kartaa PowerShell si aad u maamusho. Bilaabidda ama joojinta adeegyada waxaa lagu samayn karaa hal amar, oo u baahan kaliya magaca adeegga. Tusaale ahaan, sidan ayaad u joojin kartaa adeegga:
Adeeg Joojin - Magaca Spooler(Stop-Service -Name Spooler)
- Bilaabidda adeeggu waxay u socotaa si la mid ah:
Adeeg Bilow - Magaca Spooler(Start-Service -Name Spooler)
- Haddii aanu adeeggu si sax ah u shaqayn, waxa kale oo aad dooran kartaa in aad dib u bilowdo:
Dib-u-bilow-Adeegga -Magaca Spooler(Restart-Service -Name Spooler)
- Waxa kale oo jira cmdlet Set-Service oo loo isticmaali karo in lagu beddelo sifooyinka adeegga. Halkan waxaanu ka joojinaynaa bilaabista tooska ah ee adeega Daabacaadda Spooler(Print Spooler) :
Set-Adeeg 'Spooler' -StartupType waa Naafo(Set-Service ‘Spooler’ -StartupType Disabled)
Waa maxay Habka ugu Wanaagsan ee lagu Taxay Adeegyada (Services)Daaqadaha(List Windows) ?
Haddii aad ku socoto Windows 10 ama Windows Server , awood u yeelashada inaad aragto liiska dhammaan adeegyada Windows waxay noqon kartaa mid waxtar leh. Waxaad ku ogaan kartaa arrimaha leh hawlaha nidaamka muhiimka ah ama waxaad joojin kartaa adeegyada Microsoft ee aan loo baahnayn si loo horumariyo waxqabadka.
Ujeedadaas awgeed, PowerShell waa ikhtiyaarka ugu fiican. Inta aad ka heli karto liiska adeegga ee Command Prompt , shaqeynta dheeraadka ah ee ay bixiso PowerShell ayaa faa'iido badan leh.
Waxaad isticmaali kartaa PowerShell cmdlets si aad u hesho heerka adeegga ee hababka Windows , iyaga oo ku shaandheynaya xaaladdooda ama cabbirro kale. Sidoo kale way fududahay in la go'aamiyo adeegyada ku tiirsanaanta oo la bilaabo ama la joojiyo sida loo baahdo.
Related posts
PowerShell vs Command Prompt: Faa'iidooyinka iyo khasaaraha
Sida loo dilo habka adoo isticmaalaya Line Command gudaha Windows 11/10
Sida loo tirtiro ama loo abuuro hawl la qorsheeyay ee PowerShell gudaha Windows 11
Sida loo uninstall darawalka iyadoo la isticmaalayo Command Prompt gudaha Windows 11
Sida loo dejiyo oo loo habeeyo Adeegyada Goobta gudaha Windows 11 -
36 ka ugu Fiican ee Talooyinka Keyboard-ka Tooska ah ee Daaqadaha
Ku tus ama ku qari astaamaha gudaha aagga qulqulka qulqulka ee geeska shaqada ee Windows 11
Sida loo beddelo cabbirka Taskbar ee Windows 11
Sida loo suurtageliyo ama loo joojiyo Heerka Dib-u-cusboonaynta Dynamic Refresh (DRR) gudaha Windows 11
Windows 11 Taariikhda Siideynta, Qiimaha, Shuruudaha Qalabka
Tifaftirayaasha Menu Context: Ku dar, Ka saar Shayada Menu ee ku jira Windows 11
Sida app kasta loogu dhejiyo Taskbar gudaha Windows 11
Sida loo rakibo Windows Subsystem-ka Linux ee Windows 11
Ma beddeli karo kanaalka Insider Windows Windows 11 - Dev ama Beta
Sida loo beddelo mawduuca kooxaha Microsoft Windows 11
Sida loo hagaajiyo iftiinka Webcam gudaha Windows 11
Mindida Faylka Swiss waa aalad khadka taliska faa'iido u leh Windows
Daabacaada Windows 11 kee baa laguu cusboonaysiin doonaa?
Gal Serverka FTP adoo isticmaalaya Command Prompt gudaha Windows 10
Sida loo isticmaalo FINDSTR iyo amarrada xargaha ee gudaha Windows 11/10