Get Profile Image Paths

Description

Lists each user profile directory on the system.

Overview

This cmdlet lists each user profile directory on the system as defined in the registry.

Example Output

Name                                           ProfilePath                              
----                                           -----------                              
S-1-5-18                                       C:\Windows\system32\config\systemprofile 
S-1-5-19                                       C:\Windows\ServiceProfiles\LocalService  
S-1-5-20                                       C:\Windows\ServiceProfiles\NetworkService
S-1-5-21-3175321519-4186628844-3469316858-1001 C:\Users\helpdesk    

Example Json

[
  {
    "Name": "S-1-5-18",
    "ProfilePath": "C:\\Windows\\system32\\config\\systemprofile"
  },
  {
    "Name": "S-1-5-19",
    "ProfilePath": "C:\\Windows\\ServiceProfiles\\LocalService"
  },
  {
    "Name": "S-1-5-20",
    "ProfilePath": "C:\\Windows\\ServiceProfiles\\NetworkService"
  },
  {
    "Name": "S-1-5-21-3175321519-4186628844-3469316858-1001",
    "ProfilePath": "C:\\Users\\helpdesk"
  }
]
Scroll to Top