For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2006 > How to get service logon user









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to get service logon user
amir.miller@gmail.com

2006-01-31, 6:56 pm

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.

Thomas Kratz

2006-02-01, 7:55 am

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

--
$/=$,,$_=<DATA>,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^.-
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com