How to get service logon user

How to get service logon user

am 31.01.2006 15:36:49 von amir.miller

Hi,

Can anyone tell me how to get the logon user of a service in windows?
Win32::Services dosn't seem to have that information and I failed to
find a different module in cpan that does.

Thanks,

Amir.

Re: How to get service logon user

am 01.02.2006 13:11:00 von Thomas Kratz

amir.miller@gmail.com wrote:
> Hi,
>
> Can anyone tell me how to get the logon user of a service in windows?
> Win32::Services dosn't seem to have that information and I failed to
> find a different module in cpan that does.

Have a look at Win32::Lanman. It has a function called QueryServiceConfig
that should have this information.

Thomas

--
$/=$,,$_=,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~...... >r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k ^.-