Can anyone please assist me with a custom inventory?
Basically the ideal results would only query the keys:
HKEY_USERS\S-1-5-21-* ( I don't know if wildcards are possible)
For each of those paths I would like to grab the following four keys:
HKEY_USERS\{S-1-5-21-entry here}
HKEY_USERS\{S-1-5-21-entry here}\Software\Microsoft\Windows\Current Version\Explorer "Logon User Name"
HKEY_USERS\{S-1-5-21-entry here}\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders "Personal"
HKEY_USERS\{S-1-5-21-entry here}\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders "Favorites"
In the end this will have iterated through all the S-1-5-21-* profiles on the machine and inventoried their My Documents and Favorites path. I can get this to work for each user as they log in but we would like to run it once on the machine and have a list of profiles and their settings
Like...
Select vc.name, pd.* from Inv_AeX_CI_Personal_Drives pd JOIN vComputer vc on vc.Guid = pd._ResourceGuid
Code:
Computer1 HKEY_USERS\S-1-5-21-23423423-2342-342-3423 user1 Z:\My Documents Z:\Favorites
Computer1 HKEY_USERS\S-1-5-21-787686787-2342-342-3342 user2 V:\My Documents v:\Favorites
I have looked through all the Altiris CI examples and have come close, but I am just not following what they do exactly. Any ideas/help would be much appreciated. Thanks.