Find Computers by Primary or Logged on User
As we all know, Client Management Suite deals with computers, not users. So the problem we're all faced with when a user opens a helpdesk ticket is "what PC are they on?"
This tool makes it easy to find the computer(s) a user is using. Just type their logon name and click one button! Bam, a list of their computers.
You can select either the "Primary User" or "Logged on User" radio button to search by either method. You even add parameters when calling the web page to immediately start a search! Add "?Name=logonname" where logonname is the name you searching for, and the page will open with the results already displayed. In the event you find more than one computer, all computers are placed in a dropdown list, and as you select each an item from the list, it auto-populates a text box below it, letting you copy/paste the computer name anywhere you need. I've added some nice AJAX to my own personal page to give my textbox a watermark and added an autocomplete extender to finish up my search terms for me :)
I strongly urge you read up on the training articles provided by Screenbert to get a better understanding of the code going on in here. Although the ASDK is not required for this, it was my inspiration to create web pages utilizing the ASDK and this just happened to be something that didn't need it. However, as long as you have some C# knowledge, or at least vbscript knowledge, you should be able to get this to work.
You will need to modify these lines in the cs. file to make this work in your environment:
string Server = "localhost";
string Username = "username";
string Password = "password";
string Database = "database";
Edit "localhost" to be the name of server hosting your Altiris SQL database, edit "username" and "password" to supply the credentials you need to access your altiris database, and edit "database" to enter the name of the altiris database (it's usually named "Altiris").
Big thanks to Screenbert for showing me the ASDK and web ropes long ago. I hope this provides help to anyone out there who's had trouble resolving computers to users.
| License: | AJSL By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License |
| Support: | User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab. |
| Attachment | Size |
|---|---|
| GetComputersbyUser.zip | 2.78 KB |
- Login or register to post comments
- 1768 reads
- Printer-friendly version















