Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Authentication with WinMgmts

by slloyd (Hermit)
on Jun 23, 2004 at 22:18 UTC ( [id://369193]=perlquestion: print w/replies, xml ) Need Help??

slloyd has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to pass in authentication using Win32::ole and WinMgmts? The username and password on the remote machine differs.
#!perl use strict; use Win32::OLE; use Win32::OLE::Variant; my $exe='calc.exe'; my $user="admin"; my $pass="admin"; my $server="machineName"; my $obj = Win32::OLE->GetObject("WinMgmts:{impersonationLevel=imperson +ate}!//$server/root/cimv2:Win32_Process");

Replies are listed 'Best First'.
Re: Authentication with WinMgmts
by maa (Pilgrim) on Jun 24, 2004 at 06:32 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://369193]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found