Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
driveletter = "z:" objSvc = ObjectGet("Winmgmts:\\.\root\cimv2") objEnum = objSvc.ExecQuery(StrCat("Select * from win32_logicaldisk where DeviceId = '", driveletter,"'"), "WQL", 48) ForEach obj in objEnum Message(driveletter, obj.providername ) next objEnum = 0 objSvc = 0However, I'm getting a "1129: OleInitiate Failed" on a couple of PCs when it hits the "objSvc = ObjectGet("Winmgmts:\\.\root\cimv2")" line. Any ideas?
As a follow up:
I've also noticed that I'm unable to do ADSI LDAP queries from this machine as well. I get an 'unable to parse' error. However, the error only happened on certain users while they only have 'user' level access on the PC. If I make them local admins, then all is fine.
I've tried deleting their local profile and then having it recreated upon logon, but no dice. Any ideas what security rights are needed for WBT to make ADSI LDAP queries or OLE calls?
http://help.lockergnome.com/windows/Unable-connect-WMI-service--ftopict195453.html
Article ID: W17084
File Created: 2012:12:10:14:04:02
Last Updated: 2012:12:10:14:04:02