![]() ![]() PS C:\> Get-CimInstance -ClassName win32_userprofile | Select-Object -First 1ĪppDataRoaming : Win32_FolderRedirectionHealthĭocuments : Win32_FolderRedirectionHealthĭownloads : Win32_FolderRedirectionHealthįavorites : Win32_FolderRedirectionHealth You’ll notice many useful tidbits of information like LastUseTime, SID and so on. Using PowerShell, you can access this CIM class with the Get-CimInstance command.īelow, I’m finding the first user profile on the the local computer. This class contains all of the profiles that exist on a machine and lots of other useful information that a simple file system folder won’t tell you. In CIM, a class exists called Win32_UserProfile. There’s a better way and that’s through WMI or CIM. But not only are you not getting the full picture when you do this, it’s also troublesome due to potential file system access problems. It’s easy to take a peek at user profiles on the file system on a single Windows computer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |