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