in reply to Why doesn't GetOwner work?

These methods usually return string variants. Something like this should work: -
my ($strUser, $strDomain) = ( Variant(VT_BSTR|VT_BYREF, '<undef>'), Variant(VT_BSTR|VT_BYREF, '<undef>') ); $objWMIProcess->GetOwner($strUser, $strDomain); print 'Owner: ' . $strDomain->Value . '\\' . $strUser->Value, "\n";

Replies are listed 'Best First'.
Re^2: Why doesn't GetOwner work?
by solitaryrpr (Acolyte) on Jan 07, 2007 at 18:07 UTC
    Awesome...I had tried something "identical" from a different example but your code actually works...my sanity is saved.