Steven has a good idea of connecting to IPC$ on the remote machine providing your creds. Have you tried impersonating another account before the WMI call (like using Win32::AdminMisc)?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Manross Sent: Monday, May 24, 2004 1:58 PM To: Harlan Carvey; [EMAIL PROTECTED] Subject: RE: WMI and Win32::OLE issue Your code works well on a remote system in my test network. But then I know I have the proper credentials on that box. What's this about making an admin login using net use? Are you connecting to the IPC$ to do a type of RunAs to manipulate what credentials you have? Steven -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harlan Carvey Sent: Monday, May 24, 2004 1:44 PM To: [EMAIL PROTECTED] Subject: WMI and Win32::OLE issue All, I'm running the attached Perl script in an effort to retrieve information from a remote system via WMI. The script works fine on the local machine. However, when I run it against a remote system (script run from XP against a Win2K box) after making an admin login using "net use", I get the following error: Error connecting to 10.1.1.15: Win32::OLE(0.1403) error 0x80070005: "Access is d enied" after character 0 in "WinMgmts:{impersonationLevel=Impersonate}!//10.1.1.15/root/cimv2" I've looked this up and seen that others have had this issue, but to this point, I haven't seen any resolutions to the issue. Any help would be appreciated. Thanks, Harlan _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
