版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、用WMI獲取遠(yuǎn)程系統(tǒng)信息WMI(Windows管理規(guī)范:Windows Management Instrumentation)是Microsoft基于Web的企業(yè)管理(WBEM)的實(shí)現(xiàn),同時(shí)也是一種基于標(biāo)準(zhǔn)的系統(tǒng)管理接口。WMI是一種輕松獲取系統(tǒng)信息的強(qiáng)大工具, 而且不依賴IPC$。 我把zzzevazzz的rs系列的幾個(gè)腳本用C寫了一遍,可以查/殺進(jìn)程、列舉系統(tǒng)信息、列舉/停止/啟動(dòng)服務(wù)、注銷用戶登陸/重啟目標(biāo)/關(guān)機(jī)/斷電、列舉用戶信息。WMI的應(yīng)用遠(yuǎn)不止這些,更多功能等你挖掘了。后附源代碼(ps:代碼結(jié)構(gòu)很差,將就著看吧)。 另:由于是用CC寫的,所所以需要.NNET Frramewoor
2、k 的支支持。 HYPERLINK 編譯好的可執(zhí)行行文件: ftp:inncominngWMIImwmii.exe .NET Frramewoork安裝文文件: ftp:inncominngWMIINET Frameework v1.0.3705 Setupp.exe -cut hhere- using SSystemm; using SSystemm.Manaagemennt; class MMWmi /幫助 publicc stattic vooid ussage() Consoole.WrriteLiine(); Consoole.WrriteLiine(MMWmi vv0.1 , by
3、 mmyld); Consoole.WrriteLiine(); Consoole.WrriteLiine(UUsage: ); Consoole.WrriteLiine( -psliist -LList pprocessses.); Consoole.WrriteLiine( -pskiill -Kill proceess.); Consolee.WritteLinee( -oosinfoo -Shoow SysstemInnfo.); Consoole.WrriteLiine( -shutt -Shuutdowmm systtem.); Consoole.WrriteLiine( -svc
4、llist -List serviice.); Consoole.WrriteLiine( -starrtsvc -Startt a seervicee.); Consoole.WrriteLiine( -stoppsvc -SStop aa servvice.); Consoole.WrriteLiine( -userrlist -Showw all userss.); Consoole.WrriteLiine(); / 應(yīng)用用程序的主入入口點(diǎn)。 publicc stattic vooid Maain(sttring arggs) if ( args.Lengtth 44 ) usagge(
5、); Enviironmeent.Exxit(0); if( aargs00 = -psllist) ConnnectioonOptiions Conn = new ConneectionnOptioons(); Connn.Userrname =argss2; if(aargs33=NNULL) Connn.Passswordd =; elsee Connn.Passsword =argss3; ManaagemenntScoppe ms = neww ManaagemenntScoppe( +args1+roottcimmv2, Conn ); try ms.Conneect(); Obj
6、jectQuuery QQuery = neww ObjeectQueery(SSELECTT ProccessIdd,Namee,ExeccutabllePathh FROMM Win332_Proocess); MannagemeentObjjectSeearcheer linnk = nnew MaanagemmentObbjectSSearchher(mss,Querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); Connsole.WriteeLine(); Connsole.WriteeLine(PI
7、D Name ExecuutableePath); forreach (ManaagemenntObjeect Prrocesss in CCollecction) Coonsolee.WritteLinee( Connvert.ToStrring(PProcesssPrrocesssId).PadRRight(6)+ Conveert.TooStrinng(ProocessNamee).PPadRigght(200)+ProocessExeccutabllePathh ); Connsole.WriteeLine(); catcch(Excceptioon exOObj) Connsole.
8、WriteeLine(); Connsole.WriteeLine(Failled! EError code: +exxObj.MMessagge); Connsole.WriteeLine(); / EEND -ppslistt else if( aargs00 = -pskkill ) if ( argss.Lenggth != 5 ) usaage(); Envvironmment.EExit(00); try ConnnectiionOpttions Conn = new ConneectionnOptioons(); Connn.Useernamee =arggs2; if(args
9、3=NULL) Coonn.Paassworrd =; elsse Connn.Passswordd =arggs3; /sstringg ProNName = argss4; MannagemeentScoope mss = neew MannagemeentScoope( + arrgs1 + roottcimmv2, Conn); ms.Conneect(); ObjjectQuuery QQuery = neww ObjeectQueery(SSELECTT * FRROM Wiin32_PProcesss); MannagemeentObjjectSeearcheer linnk =
10、 nnew MaanagemmentObbjectSSearchher(mss,Querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); forreach (ManaagemenntObjeect Prrocesss in CCollecction) iff ( Coonvertt.ToSttring(ProceessPProcesssId) = args4 ) sstringg Tpparas = 11; PProcesss.InvvokeMeethod(Termminatee, Tpparas); CCons
11、olle.WriiteLinne(); CConsolle.WriiteLinne(Kiill prrocesss 0 Succeessfull!, PProcesssNaame ); catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled! EError code: +exxObj.MMessagge ); Connsole.WriteeLine(); /ENND -psskill else if (aargs00 = -osiinfo) ConnnectioonOptiions Conn =
12、 new ConneectionnOptioons(); Connn.Userrname =argss2; if(aargs33=NNULL) Connn.Passswordd =; elsee Connn.Passsword =argss3; ManaagemenntScoppe ms = neww ManaagemenntScoppe( + arggs1 + rootcimvv2, CConn); try /WWin32_CompuuterSyystem ms.Conneect(); ObjjectQuuery QQuery = neww ObjeectQueery(SSELECTT Na
13、mee,UserrName,Domaiin,DommainRoole FRROM Wiin32_CComputterSysstem); MannagemeentObjjectSeearcheer linnk = nnew MaanagemmentObbjectSSearchher(mss,Querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); forreach (ManaagemenntObjeect OssInfo in Coollecttion) Coonsolee.WritteLinee(); Coons
14、olee.WritteLinee(OS Info:); Coonsolee.WritteLinee( Coomputeer Namme : + OsIInfoName ); Coonsolee.WritteLinee( Usser Naame : + OssInfoUserrName ); Coonsolee.WritteLinee( Doomain : + OsInffoDoomain ); Coonsolee.Writte( DDomainn Rolee : ); swwitch(Conveert.TooInt322( OsIInfoDomaiinRolee ) ) ccase 00: C
15、onsoole.WrriteLiine(SStandaalone Worksstatioon); breakk; ccase 11: Consoole.WrriteLiine(MMemberr Workkstatiion); breakk; ccase 22: Consoole.WrriteLiine(SStandaalone Serveer); breakk; ccase 33: Consoole.WrriteLiine(MMemberr Servver); breakk; ccase 44: Consoole.WrriteLiine(BBackupp Domaain Coontrollle
16、r); breakk; ccase 55: Consoole.WrriteLiine(PPrimarry Dommain CControoller); breakk; ddefaullt: breakk; /WWin32_OperaatingSSystemm ms.Conneect(); ObjjectQuuery QQuery11 = neew ObjjectQuuery(SELECCT * FFROM WWin32_OperaatingSSystemm); MannagemeentObjjectSeearcheer linnk1 = new MManageementOObjecttSear
17、ccher(mms,Queery1); MannagemeentObjjectCoollecttion CCollecction11 = liink1.GGet(); forreach (ManaagemenntObjeect OssInfo11 in CCollecction11) Coonsolee.WritteLinee( Caaptionn : + OsInnfo1Captiion ); Coonsolee.WritteLinee( Orrganizzationn : + OsInnfo1Organnizatiion ); Coonsolee.WritteLinee( Reegiste
18、eredUsser : + OssInfo11ReggisterredUseer ); Coonsolee.WritteLinee( BuuildTyype : + OssInfo11BuiildTyppe ); Coonsolee.WritteLinee( CSSDVerssion : + OOsInfoo1CSSDVerssion ); Coonsolee.WritteLinee( Veersionn : + OsInnfo1Versiion ); Coonsolee.WritteLinee( SeerviceePack : + OsInffo1SServiccePackkMajorrVe
19、rsiion +.+ OsInnfo1ServiicePacckMinoorVerssion ); Coonsolee.Writte( PProducctSuitte : ); swwitch( Convvert.TToInt332( OssInfo11OSPProducctSuitte ) ) ccase 11: Consoole.WrriteLiine(SSmall Businness); breakk; ccase 22: Consoole.WrriteLiine(EEnterpprise); breakk; ccase 44: Consoole.WrriteLiine(BBackOff
20、fice); breakk; ccase 88: Consoole.WrriteLiine(CCommunnicatiion Seerver); breakk; ccase 116: Consoole.WrriteLiine(TTerminnal Seerver); breakk; ccase 332: Consoole.WrriteLiine(SSmall Businness (Restrrictedd); breakk; ccase 664: Consoole.WrriteLiine(EEmbeddded NTT); breakk; ccase 1128: Consoole.WrriteL
21、iine(DData Centeer); breakk; ddefaullt: breakk; Coonsolee.Writte( IInstalllDatee : ); sttring id = Conveert.TooStrinng(OsIInfo1InsttallDaate); Consolee.WritteLinee(id.SSubstrring(00,4)+/+idd.Subsstringg(4,2)+/+id.Suubstriing(6,2) + +id.Suubstriing(8,2)+:+ idd.Subsstringg(10,22) ); Coonsolee.WritteLi
22、nee( Syystem Direcctory: + OOsInfoo1SyystemDDirecttory ); Coonsolee.WritteLinee( WiindowssDirecctory: + OOsInfoo1WiindowssDirecctory ); Coonsolee.WritteLinee( Booot Deevice : + OsInffo1BBootDeevice ); Coonsolee.WritteLinee( FrreeMemmory : + CConverrt.ToIInt32( OsInnfo1FreePPhysiccalMemmory)/10224+ M
23、MB ); / Win322_Proccessorr Connsole.WriteeLine(); Connsole.WriteeLine(Proccessorr Infoo :); ms.Conneect(); ObjjectQuuery QQuery22 = neew ObjjectQuuery(SELECCT * FFROM WWin32_Proceessor); MannagemeentObjjectSeearcheer linnk2 = new MManageementOObjecttSearccher(mms,Queery2); MannagemeentObjjectCoollec
24、ttion CCollecction22 = liink2.GGet(); forreach (ManaagemenntObjeect PrrocesssorInffo in Colleectionn2) Coonsolee.WritteLinee( PrrocesssorsNaame : + PrrocesssorInffoNaame ); Coonsolee.WritteLinee( CuurClocckSpeeed : + ProocessoorInfooCurrrentCClockSSpeed+ MMHz ); Coonsolee.WritteLinee( Deescripption
25、: + ProceessorIInfoDescrriptioon ); Coonsolee.WritteLinee( Maanufaccturerr : + ProccessorrInfoManuufactuurer ); /WWin32_LogiccalMemmoryCoonfiguuratioon Connsole.WriteeLine(); Connsole.WriteeLine(Memoory Innfo :); ms.Conneect(); ObjjectQuuery QQuery33 = neew ObjjectQuuery(SELECCT TottalPhyysicallMemo
26、rry FROOM Winn32_LoogicallMemorryConffiguraation); MannagemeentObjjectSeearcheer linnk3 = new MManageementOObjecttSearccher(mms,Queery3); MannagemeentObjjectCoollecttion CCollecction33 = liink3.GGet(); forreach (ManaagemenntObjeect MeemoryIInfo iin Colllectiion3) Coonsolee.WritteLinee( TootalMeemory
27、 : +CConverrt.ToIInt32(MemorryInfooTottalPhyysicallMemorry)/1024+ MB ); /WWin32_BIOS Connsole.WriteeLine(); Connsole.WriteeLine(BIOSS Infoo :); ms.Conneect(); ObjjectQuuery QQuery44 = neew ObjjectQuuery(SELECCT Desscripttion,VVersioon,Mannufactturer FROM Win322_BIOSS); MannagemeentObjjectSeearcheer
28、linnk4 = new MManageementOObjecttSearccher(mms,Queery4); MannagemeentObjjectCoollecttion CCollecction44 = liink4.GGet(); forreach (ManaagemenntObjeect BIIOSInffo in Colleectionn4) Coonsolee.WritteLinee( Deescripption : + BIOSIInfoDescrriptioon ); Coonsolee.WritteLinee( Veersionn : + BIOSSInfoVerssio
29、n ); Coonsolee.WritteLinee( Maanufaccturerr : + BIOSSInfoManuufactuurer ); /WWin32_DispllayConnfigurrationn Connsole.WriteeLine(); Connsole.WriteeLine(Dispplay CConfigguratiion :); ms.Conneect(); ObjjectQuuery QQuery55 = neew ObjjectQuuery(SELECCT * FFROM WWin32_DispllayConnfigurrationn); Mannagemee
30、ntObjjectSeearcheer linnk5 = new MManageementOObjecttSearccher(mms,Queery5); MannagemeentObjjectCoollecttion CCollecction55 = liink5.GGet(); forreach (ManaagemenntObjeect DiisInfoo in CCollecction55) Coonsolee.WritteLinee( Caaptionn : + DisIInfoCaptiion ); Coonsolee.WritteLinee( DeeviceNName : + DDi
31、sInffoDeeviceNName ); Coonsolee.WritteLinee( DrriverVVersioon : + DissInfoDrivverVerrsion ); Coonsolee.WritteLinee( DiispFreequenccy : + DissInfoDispplayFrrequenncy + Hzz ); Coonsolee.WritteLinee( Biits Peer Pell : + DisIInfoBitsPPerPell + Bitss ); Coonsolee.WritteLinee( Peels : +DissInfoPelssWidthh
32、+ X +DDisInffoPeelsHeiight ); /WWin32_DiskDDrive Connsole.WriteeLine(); Connsole.WriteeLine(Diskk Infoo :); ms.Conneect(); ObjjectQuuery QQuery66 = neew ObjjectQuuery(SELECCT * FFROM WWin32_DiskDDrive); MannagemeentObjjectSeearcheer linnk6 = new MManageementOObjecttSearccher(mms,Queery6); Mannagemee
33、ntObjjectCoollecttion CCollecction66 = liink6.GGet(); forreach (ManaagemenntObjeect DiiskInffo in Colleectionn6) Coonsolee.WritteLinee( DeeviceIID : + DisskInfooDevviceIDD ); Coonsolee.WritteLinee( Caaptionn : + DiskkInfoCapttion ); Coonsolee.WritteLinee( Innterfaace Tyype : + DiiskInffoInnterfaaceT
34、yppe ); Coonsolee.WritteLinee( SCCSI Buus : + DisskInfooSCSSIBus ); Coonsolee.WritteLinee( SCCSI Port : + DDiskInnfoSSCSIPoort ); Coonsolee.WritteLinee( SeectorssPerTrrack : + DDiskInnfoSSectorrsPerTTrack ); Coonsolee.WritteLinee( Paartitiions : + DDiskInnfoPPartittions ); Coonsolee.WritteLinee( Sii
35、ze : + Coonvertt.ToInnt64(DDiskInnfoSSize)/100000000000 + GB); /WWin32_LogiccalDissk Connsole.WriteeLine(); Connsole.WriteeLine( Vollume TType Size / Freee); ms.Conneect(); ObjjectQuuery QQuery77 = neew ObjjectQuuery(SELECCT * FFROM WWin32_LogiccalDissk); MannagemeentObjjectSeearcheer linnk7 = new M
36、ManageementOObjecttSearccher(mms,Queery7); MannagemeentObjjectCoollecttion CCollecction77 = liink7.GGet(); forreach (ManaagemenntObjeect DiiskInffo1 inn Colllectioon7) Coonsolee.Writte( +Connvert.ToStrring(DDiskInnfo1Captiion).PadRRight(8) ); swwitch(Conveert.TooInt166(DiskkInfo11DriiveTyppe) ) ccas
37、e 22: Consoole.WrriteLiine(RRemovaable DDisk ); breakk; ccase 33: Consoole.Wrrite(Locall Diskk ); Consoole.Wrrite( Conveert.TooStrinng(DisskInfoo1).PaddRightt(15) ); Consoole.Wrrite( Conveert.TooInt644(DiskkInfo11Sizze)/10000000+MMB Tottal ); Consoole.WrriteLiine( CConverrt.ToIInt64(DiskIInfo1FreeeS
38、pacee)/110000000+MBB Freee); breakk; ccase 44: Consoole.WrriteLiine(NNetworrk Driive); breakk; ccase 55: Consoole.WrriteLiine(CCD-ROMM); breakk; ccase 66: Consoole.WrriteLiine(RRAM Diisk); breakk; ddefaullt: breakk; catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled. EErro
39、r code : +eexObj.Messaage); / EEND -ppsinfoo else if (aargs00 = -shuut) if ( argss.Lenggth 5 ) Connsole.WriteeLine(); Connsole.WriteeLine( MWmmi -shhut ); Envvironmment.EExit(00); try ConnnectiionOpttions Conn = new ConneectionnOptioons(); Connn.Useernamee =arggs2; if(args3=NULL) Coonn.Paassworrd =;
40、 elsse Connn.Passswordd =arggs3; MannagemeentScoope mss = neew MannagemeentScoope( +argss1+roootciimv2, Connn ); ms.Conneect(); ObjjectQuuery qquery = neww ObjeectQueery(SSELECTT * FRROM Wiin32_OOperattingSyystem); MannagemeentObjjectSeearcheer linnk = nnew MaanagemmentObbjectSSearchher(mss,querry);
41、 MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); swiitch( args4 ) caase llogoutt: fforeacch( MaanagemmentObbject choisse in Colleectionn ) strinng sss = 0; choisse.InvvokeMeethod(Win332Shuttdown,ss); CConsolle.WriiteLinne(); CConsolle.WriiteLinne(Loogout Succeessfull!); bbreak; caase ss
42、hutdoown: fforeacch( MaanagemmentObbject choisse in Colleectionn ) strinng sss = 1; choisse.InvvokeMeethod(Win332Shuttdown,ss); CConsolle.WriiteLinne(); CConsolle.WriiteLinne(Shhutdowwn Succcessfful!); bbreak; caase rreboott: fforeacch( MaanagemmentObbject choisse in Colleectionn ) strinng sss = 2;
43、choisse.InvvokeMeethod(Win332Shuttdown,ss); CConsolle.WriiteLinne(); CConsolle.WriiteLinne(Reeboot Succeessfull!); bbreak; caase ppowerooff: fforeacch( MaanagemmentObbject choisse in Colleectionn ) strinng sss = 8; choisse.InvvokeMeethod(Win332Shuttdown,ss); CConsolle.WriiteLinne(); CConsolle.Wriite
44、Linne(PoowerOfff Succcessfful!); bbreak; deefaultt : CConsolle.WriiteLinne(); CConsolle.WriiteLinne(Innput EError!); EEnviroonmentt.Exitt(0); bbreak; catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled. EError code : +eexObj.Messaage); / END -shut else if (aargs00 = -svccli
45、st) try ConnnectiionOpttions Conn = new ConneectionnOptioons(); Connn.Useernamee =arggs2; if(args3=NULL) Coonn.Paassworrd =; elsse Connn.Passswordd =arggs3; MannagemeentScoope mss = neew MannagemeentScoope(+args1+roottcimmv2, Conn ); ms.Conneect(); ObjjectQuuery qquery = neww ObjeectQueery(SSELECTT
46、* FRROM Wiin32_SServicce); MannagemeentObjjectSeearcheer linnk = nnew MaanagemmentObbjectSSearchher(mss,querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); forreach(ManaggementtObjecct serrvice in Coollecttion) Coonsolee.WritteLinee(); Coonsolee.WritteLinee(SerrviceNName : + sservi
47、cceNaame); Coonsolee.WritteLinee(DissplayNName : + sservicceDiisplayyName); Coonsolee.WritteLinee(Staate : + seerviceeStaate); Coonsolee.WritteLinee(StaartModde : + serrviceStarrtModee); Coonsolee.WritteLinee(SerrviceTType : + sservicceSeerviceeType); Coonsolee.WritteLinee(PatthNamee : + servvicePat
48、hNName); catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled. EError code : +eexObj.Messaage); /ENND svcclist else if (aargs00 = -stoopsvc) if ( argss.Lenggth != 5 ) usaage(); Envvironmment.EExit(00); try ConnnectiionOpttions Conn = new ConneectionnOptioons(); Connn.Useerna
49、mee =arggs2; if(args3=NULL) Coonn.Paassworrd =; elsse Connn.Passswordd =arggs3; MannagemeentScoope mss = neew MannagemeentScoope( + arrgs1 + roottcimmv2, Conn); ms.Conneect(); ObjjectQuuery QQuery = neww ObjeectQueery(SSELECTT * FRROM Wiin32_SServicce); MannagemeentObjjectSeearcheer linnk = nnew Maa
50、nagemmentObbjectSSearchher(mss,Querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); forreach (ManaagemenntObjeect seervicee in CCollecction) iff ( Coonvertt.ToSttring( servviceName ) = arggs4 ) sstringg Tpparas = 11; sservicce.InvvokeMeethod(StoppServiice, Tparaas); CConsolle.Wriite
51、Linne(); CConsolle.WriiteLinne(Sttop Seervicee +seerviceeNamme + Succcessfful!); catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled. EError code : +eexObj.Messaage); else if (aargs00 = -staartsvcc) if ( argss.Lenggth != 5 ) usaage(); Envvironmment.EExit(00); try Connnectii
52、onOpttions Conn = new ConneectionnOptioons(); Connn.Useernamee =arggs2; if(args3=NULL) Coonn.Paassworrd =; elsse Connn.Passswordd =arggs3; MannagemeentScoope mss = neew MannagemeentScoope( + arrgs1 + roottcimmv2, Conn); ms.Conneect(); ObjjectQuuery QQuery = neww ObjeectQueery(SSELECTT * FRROM Wiin32
53、_SServicce); MannagemeentObjjectSeearcheer linnk = nnew MaanagemmentObbjectSSearchher(mss,Querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); forreach (ManaagemenntObjeect seervicee in CCollecction) iff ( Coonvertt.ToSttring( servviceName ) = arggs4 ) /(此處刪去若若干字), 要嚴(yán)格按照照服務(wù)名的大大小寫 ss
54、tringg Tpparas = 11; sservicce.InvvokeMeethod(StarrtServvice, Tparras); CConsolle.WriiteLinne(); CConsolle.WriiteLinne(Sttart SServicce 0 Succcessfuul!, serviiceNName); catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled. EError code : +eexObj.Messaage); else if (aargs00 =
55、-useerlistt) try ConnnectiionOpttions Conn = new ConneectionnOptioons(); Connn.Useernamee =arggs2; if(args3=NULL) Coonn.Paassworrd =; elsse Connn.Passswordd =arggs3; MannagemeentScoope mss = neew MannagemeentScoope( + arrgs1 + roottcimmv2, Conn); ms.Conneect(); ObjjectQuuery QQuery = neww ObjeectQue
56、ery(SSELECTT * FRROM Wiin32_UUserAcccountt); MannagemeentObjjectSeearcheer linnk = nnew MaanagemmentObbjectSSearchher(mss,Querry); MannagemeentObjjectCoollecttion CCollecction = linnk.Gett(); forreach (ManaagemenntObjeect usser inn Colllectioon) Coonsolee.WritteLinee(); Coonsolee.WritteLinee(UseerNa
57、mee : + userrNamme); Coonsolee.WritteLinee(Dommain : + uuserDomaiin); Coonsolee.WritteLinee(FulllNamee : + userrFulllNamee); Coonsolee.WritteLinee(SIDD : + userrSIDD); Coonsolee.WritteLinee(PSWWExpirres : + usserPPasswoordExppires); Coonsolee.WritteLinee(PSWWRequiired : + uuserPasswwordReequireed);
58、Coonsolee.WritteLinee(PSWWChanggeablee : + userrPasssworddChanggeablee); Coonsolee.WritteLinee(Locckout : + userLockkout); Coonsolee.WritteLinee(Dissabledd : + userrDissabledd); catcch(Excceptioon exOObj) Connsole.WriteeLine(); Connsole.WriteeLine(Failled. EError code : +eexObj.Messaage); else usage
59、e(); Usage: -pslistt -Lisst proocessees. -pskilll -Kiill prrocesss. -osinfoo -Shoow SysstemInnfo. -shut -Shutddowm ssystemm. -svclisst -Liist seervicees. -startssvc -Sttart aa servvice. -stopsvvc -Stoop a sservicce. -userliist -SShow aall ussers. /列舉進(jìn)程 G:mwmmi -psslist 192.1168.2.4 admmin NUULL 口令為空
60、空的用NULLL代替 PID Namme ExeecutabblePatth 0 Systeem Idlle Proocess 8 Systeem 160 smsss.exee C:WWINNTSysteem32ssmss.eexe 184 csrrss.exxe C:WINNTTsysttem32csrsss.exe 204 winnlogonn.exe C:WIINNTssystemm32wiinlogoon.exee 232 serrvicess.exe C:WIINNTssystemm32seervicees.exee 244 lsaass.exxe C:WINNTTsysttem32
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024-2030年全球及中國(guó)單級(jí)高速離心風(fēng)機(jī)行業(yè)供需現(xiàn)狀及前景規(guī)劃分析報(bào)告
- 2024-2030年全球及中國(guó)光纖數(shù)據(jù)通信行業(yè)發(fā)展前景及投資動(dòng)態(tài)分析報(bào)告
- 2024-2030年全球及中國(guó)恒溫分區(qū)系統(tǒng)行業(yè)發(fā)展動(dòng)態(tài)及應(yīng)用前景預(yù)測(cè)報(bào)告
- 2024-2030年全球與中國(guó)微型投影光引擎行業(yè)應(yīng)用領(lǐng)域分析及投資規(guī)劃研究報(bào)告
- 2024-2030年信希汀搬遷改造項(xiàng)目可行性研究報(bào)告
- 2024-2030年中國(guó)高速公路智能化行業(yè)發(fā)展模式規(guī)劃研究報(bào)告權(quán)威版
- 主軸箱課程設(shè)計(jì)
- 中班秋天戶外自然課程設(shè)計(jì)
- 機(jī)械cad cam課程設(shè)計(jì)
- 2019-2025年中國(guó)新能源汽車電池行業(yè)全國(guó)市場(chǎng)開拓策略研究報(bào)告
- 《MCGS嵌入版組態(tài)應(yīng)用技術(shù)》期末試卷及答案
- 崗位職等職級(jí)及對(duì)應(yīng)薪酬表
- 計(jì)量基礎(chǔ)知識(shí)試卷三附有答案
- 銀行安全保衛(wèi)工作知識(shí)考試題庫(kù)(濃縮500題)
- 吉利NPDS流程和PPAP介紹
- 男朋友無(wú)償贈(zèng)與車輛協(xié)議書怎么寫
- 汽車認(rèn)識(shí)實(shí)訓(xùn)課件
- 輪機(jī)工程材料18章總結(jié)
- 公路管理行業(yè)支撐性科研課題立項(xiàng)評(píng)審評(píng)分標(biāo)準(zhǔn)表
- 單招面試技巧范文
- GB/T 5195.1-2006螢石氟化鈣含量的測(cè)定
評(píng)論
0/150
提交評(píng)論