Does WMI read user information from windows credentials manager? -
i wanted connect remote windows cluster using wmi read node information. user credentials stored in windows credentials manager. but, wmi not seem read user credentials windows credentials manager.i tried wmi explorer tool , below code (c#). idea how work?
{ connectionoptions options = new connectionoptions(); //options.username = username; //options.password = password; options.authority = "ntlmdomain:"; scope = new managementscope(@"\\windowscluster\root\cimv2", options); scope.connect(); } i access denied error if not pass username , password. tried possible authentication modes including default , packet privacy.
as far know not use windows credential manager. need fill out username , password when connecting remotely. also, if connecting machine domain account need add domain name after colon in authority field. otherwise if machine creds don't define authority @ all.
hope helps.
Comments
Post a Comment