|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
只要你想学,就没什么优缺点,上面那位大哥已经把网上的评论说了,但我认为想学哪个都一样,不然它就不可能在当今时代数字艺术方面存活到今天WMI:WindowsManagementInstrument
WMITasks:
1、AccountsandDomains
①determinethedomaininwhichacomputerbelongs:
strComputer="."
SetobjWMIService=GetObject("winmgmts:"_
&"{impersonationLevel=impersonate}!"_
&strComputer&"ootcimv2")
SetcolSettings=objWMIService.ExecQuery_
("Select*fromWin32_ComputerSystem")
ForEachobjComputerincolSettings
msgbox"SystemName:"&objComputer.Name
msgbox"Domain:"&objComputer.Domain
Next
②determinewhetheracomputerisaserveroraworkstation:
strComputer="."
SetobjWMIService=GetObject("winmgmts:"_
&"{impersonationLevel=impersonate}!"_
&strComputer&"ootcimv2")
SetcolComputers=objWMIService.ExecQuery_
("SelectDomainRolefromWin32_ComputerSystem")
ForEachobjComputerincolComputers
SelectCaseobjComputer.DomainRole
Case0
strComputerRole="StandaloneWorkstation"
Case1
strComputerRole="MemberWorkstation"
Case2
strComputerRole="StandaloneServer"
Case3
strComputerRole="MemberServer"
Case4
strComputerRole="BackupDomainController"
Case5
strComputerRole="PrimaryDomainController"
EndSelect
msgboxstrComputerRole
Next
③determinethecomputername:
</p>缺乏可以共同遵循的行业标准,ASP还处在发展初期,大家对它的理解不同,如产品和服务标准,收费标准等,不利于行业的健康发展。 |
|