Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Win32 Sample Code for checking if a user is in the group "Power Users" on a Windows (XP) machine?

by romandas (Pilgrim)
on Oct 24, 2009 at 17:08 UTC ( [id://803055]=note: print w/replies, xml ) Need Help??


in reply to Win32 Sample Code for checking if a user is in the group "Power Users" on a Windows (XP) machine?

An additional module you can use is Win32::OLE for tapping into the Windows Management Interface (WMI).

As for providing sample code.. it wouldn't be very kind of you to ask for code without providing some of your own first. Might I suggest using a search engine, such as Google, to search for the terms 'perl', 'wmi', and 'groups'. There are tons of examples out there.

If you're really stuck, check out Microsoft's Scriptomatic. It can create the code you're looking for, and will even do it in Perl!

  • Comment on Re: Win32 Sample Code for checking if a user is in the group "Power Users" on a Windows (XP) machine?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2026-02-11 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.