0

The requirement is, in a shared PC admin want to install the software for selected users if AppData folder exist for the user. Users can be local or remote but the profile data should exist in the local PC

I have tried few solution from SO, but couldn't figured out a right solution

Solution 1 : This returns all the remote users, many doesn't have profile data in the local PC

Solution 2 : Iteratre through all the profiles available under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList in the registry

Is there any better efficient way than Soultion 2?

gamcad
  • 11
  • 3
  • Got your question @MartinPrikryl, it copies the files to AppData folder only nothing to do with registry keys – gamcad May 23 '22 at 06:30
  • And do you find inefficient about the *"Solution 2"*? – Martin Prikryl May 23 '22 at 06:52
  • @MartinPrikryl instead of Solution 2, I am thinking to loop through %SystemDrive%\Users drive and find the user folders and display it for selection – gamcad May 23 '22 at 12:22
  • Well, your choice. I just do not see what is more efficient about iterating subfolders than about iterating registry keys. – Martin Prikryl May 23 '22 at 12:49

0 Answers0