开发者

WMI call to a different domain

开发者 https://www.devze.com 2023-04-09 10:46 出处:网络
Is it poss开发者_如何学Cible to read registry key of a remote machine which belongs to a different domain using WMI calls?Yes it\'s possible, only you must ensure to set the credentials of the connect

Is it poss开发者_如何学Cible to read registry key of a remote machine which belongs to a different domain using WMI calls?


Yes it's possible, only you must ensure to set the credentials of the connection according to the remote machine to access, and then use the StdRegProv wmi class which allow you to access the registry in local and remote machines. A key point is the namespace where the class is located, that depends of the version of windows installed in the remote machine. so for Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95 the StdRegProv class is available in the root\default namespace and for others versions like windows Vista/7 the namespace is root\CIMV2. check the accepted answer in this question to see a sample.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号