Reply
Old November 1st, 2006 Top | #1
 
fixitchris's Avatar
OSNN Junior Addict
Joined: October 2006
Posts: 12
Reputation: 0
Power: 68

Default WMIC GetObject Permission Denied Err.Number = 70

What could be the possible causes of the permission denied error on this line?

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

Thanks
Chris
fixitchris is offline   Reply With Quote
Old November 1st, 2006 Top | #2

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: WMIC GetObject Permission Denied Err.Number = 70

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 is offline   Reply With Quote
Old November 2nd, 2006 Top | #3
 
fixitchris's Avatar
OSNN Junior Addict
Joined: October 2006
Posts: 12
Reputation: 0
Power: 68

Default Re: WMIC GetObject Permission Denied Err.Number = 70

yup... a domain admin
fixitchris is offline   Reply With Quote
Old November 2nd, 2006 Top | #4

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: WMIC GetObject Permission Denied Err.Number = 70

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?
fitz is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script Host: Permission Denied: 'GetObject' Punkrulz Web Design & Coding 12 March 17th, 2007 6:30pm
Windows Permission Jz1397-5 Windows Desktop Systems 3 March 15th, 2004 9:42pm
Write Permission in XP? Temperal Windows Desktop Systems 3 April 13th, 2003 4:36pm
Permission denied fluppel Windows Desktop Systems 4 August 20th, 2002 4:03pm
Permission denied to shared My Documents on network :( vladg Windows Desktop Systems 3 December 14th, 2001 2:48am