WMIC GetObject Permission Denied Err.Number = 70

fixitchris

OSNN Junior Addict
Joined
Oct 31, 2006
Messages
12
What could be the possible causes of the permission denied error on this line?

Set objWMIService = GetObject("winmgmts:\\pc_name\root\CIMV2")

Thanks
Chris
 

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,084
hmm.. maybe not having permission to the computer you are trying to connect to?

Are you running the script under an account that has admin rights to the remote computer?
 

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,084
And are you sure the domain admins group has rights to access to the remote computer?

What OS is the remote computer running? What OS is the system you are running the script on? Are there firewalls involved? Client side or network side?

Are you trying to do double hop authentication?

What is the exact error message you are getting (ie: err.number and err.description)?

Is it just one computer? or all computers throwing this error back? Does it work connecting to the local computer?

Have you tried just connecting to the computer and not specifiing the namespace (ie: not \root\CIMV2)?)

Have you tried explicitly defining the authentication/impersonation level?
and/or explicitly defining username/password in your connection?

Have you tried just using IP address instead of computername?

Can you provide a little more info to try to help?
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
61,975
Messages
673,270
Members
89,047
Latest member
hargadetocline