Month: March 2010
Counting User Profiles on a Computer
This is a custom solution that I created to count the number of user profiles on a computer, and have it kept automatically up-to-date. If you would prefer to have a list of all the actual profiles, then I recommend using Sherry Kissinger’s solution in her Mini Monster Mof Builder. Or you can use both, just depends upon your needs…
The high-level, general process overview is
Server
- Update the SMS_def.mof file to inventory the custom item (or use DCM to get the value)
Get the Full Code Here
Clients – deploy a package that will
- Count the number of existing profiles (from the registry), but exclude accounts like localservice, networkservice, admin, default user, etc
- Write the count into a custom registry key
- Compile a mof on the client such that the key can be inventoried
- Run the advertisment on a regular interval
Get the Full Code Here