欢迎来到天天文库
浏览记录
ID:52240209
大小:203.01 KB
页数:16页
时间:2020-03-25
《Windows脚本编程核心技术精解Chapter14.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、4684-8ch14.f.qc3/3/009:39AMPage407Chapter14GettingAccesstotheRegistryInThisChapterFindoutwhytheRegistryissoimportantandhowtobackupitscontentsFindouthowtheRegistryorganizestheinternalWindowssettingsintodifferentbranchesUsescriptcommandstoreadandwritetotheRegistry,a
2、ndlearnhowtosafelyexchangetheregisteredownerinformationStoreyourownvaluesintotheRegistryanddeleteRegistryinformationyounolongerneedEnumerateentireRegistrybranchesandlistallentrieshiddeninsideakeyTheWindowsRegistryistheultimateplacetocontrolWindowsataverygranularlev
3、el.LearnhowtoaccessandmanipulatetheRegistrybyscript,anduseacustomCOMcontroltoaddRegistrymethodsnotfoundinthestandardWScript.Shellobject.GettingtoKnowtheRegistryTheRegistryisanincrediblesourceofpower—it’sherethatWindowsstoresallitsinternalsettings.YoucancontrolmanyReg
4、istrysettingsthroughsystemdialogboxes,butmanymoreWindowsoptionsarehiddenandavailableonlythroughdirectRegistryaccess.Let’stakealookattheRegistry’sanatomyfirst.Then,I’llshowyouhowtobackupyourRegistry.OnceyouknowtheRegistrybetter,it’ssafetousescriptstomanipulateRegistry
5、entriesandcreateyourowndialogboxesforanyWindowsoptionmissingintheofficialdialogboxes.WheredoestheRegistrylive?TheRegistryactuallyisadatabase.It’smerelydatastorage,andit’sorganizeddifferentlyforWindows9.xandWindowsNT/2000.4684-8ch14.f.qc3/3/009:39AMPage408408PartIV:Ac
6、cessingtheOperatingSystem■■RegistryonWindows9.xOnWindows9.xsystems,theRegistryconsistsoftwofiles—USER.DATandSYSTEM.DAT.TheyarestoredintheWindowsfolderandmarkedashidden.SYSTEM.DATcontainsallcommonsettings,andUSER.DATcontainsuser-relatedinformation.IfyouhavesetupyourWi
7、ndows9.xtosupportmultipleuserprofiles,theRegistrystillusesthecentralSYSTEM.DAT.Fortheuserinformation,itusesindividualUSER.DATfilesstoredintheprofilessubfolder.RegistryonWindowsNT/2000WindowsNT/2000organizestheRegistrydifferently.Here,onlyuserswithAdministratororPower
8、Usermembershiphaveaccesstothefiles.Thecommonmachine-relatedinformationisstoredinthesubfolderSYSTEM32CONFIGandconsistsofthesefiles:
此文档下载收益归作者所有