Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on user in control panel, registry, system tray

Status
Not open for further replies.

fcjm

Programmer
Jan 15, 2001
19
0
0
PH
Hello,


Does any one have any ideas on how to write a script in VBScript which will do the following:

1) Lists all the users in the Control Panel
2) Check if a specific data is in the registry
3) Lists all the software enabled in the system tray.

Is VBScript the best way to do these? I know that it can be done in VB.net or C# but I want something that can easily be deployed.


Thanks.
 
#2 is easily done. Pretty sure #3 is possible but I've never done it. Not sure what #1 means.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
For #1, you could shell out and run the following command.

net user > C:\AllUsers.txt

Then, open the file, parse out the users name, and you end up with a list of users.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top