Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\stevo> $wmi=Get-WmiObject Win32_UserProfile
- $wmi|select *;
- $wmi|select SID;
- $wmi|select LocalPath;
- __GENUS : 2
- __CLASS : Win32_UserProfile
- __SUPERCLASS :
- __DYNASTY : Win32_UserProfile
- __RELPATH : Win32_UserProfile.SID="S-1-5-21-3941088199-1763358985-15756
- 08658-1000"
- __PROPERTY_COUNT : 12
- __DERIVATION : {}
- __SERVER : STEVO-PC
- __NAMESPACE : root\cimv2
- __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-21-39410
- 88199-1763358985-1575608658-1000"
- LastDownloadTime :
- LastUploadTime :
- LastUseTime : 20130208213546.125000+000
- Loaded : True
- LocalPath : C:\Users\stevo
- RefCount : 9
- RoamingConfigured : False
- RoamingPath :
- RoamingPreference :
- SID : S-1-5-21-3941088199-1763358985-1575608658-1000
- Special : False
- Status : 0
- Scope : System.Management.ManagementScope
- Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-21-39410
- 88199-1763358985-1575608658-1000"
- Options : System.Management.ObjectGetOptions
- ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
- Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
- SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
- Qualifiers : {dynamic}
- Site :
- Container :
- __GENUS : 2
- __CLASS : Win32_UserProfile
- __SUPERCLASS :
- __DYNASTY : Win32_UserProfile
- __RELPATH : Win32_UserProfile.SID="S-1-5-20"
- __PROPERTY_COUNT : 12
- __DERIVATION : {}
- __SERVER : STEVO-PC
- __NAMESPACE : root\cimv2
- __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-20"
- LastDownloadTime :
- LastUploadTime :
- LastUseTime :
- Loaded : True
- LocalPath : C:\Windows\ServiceProfiles\NetworkService
- RefCount :
- RoamingConfigured : False
- RoamingPath :
- RoamingPreference :
- SID : S-1-5-20
- Special : True
- Status : 0
- Scope : System.Management.ManagementScope
- Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-20"
- Options : System.Management.ObjectGetOptions
- ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
- Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
- SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
- Qualifiers : {dynamic}
- Site :
- Container :
- __GENUS : 2
- __CLASS : Win32_UserProfile
- __SUPERCLASS :
- __DYNASTY : Win32_UserProfile
- __RELPATH : Win32_UserProfile.SID="S-1-5-19"
- __PROPERTY_COUNT : 12
- __DERIVATION : {}
- __SERVER : STEVO-PC
- __NAMESPACE : root\cimv2
- __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-19"
- LastDownloadTime :
- LastUploadTime :
- LastUseTime :
- Loaded : True
- LocalPath : C:\Windows\ServiceProfiles\LocalService
- RefCount :
- RoamingConfigured : False
- RoamingPath :
- RoamingPreference :
- SID : S-1-5-19
- Special : True
- Status : 0
- Scope : System.Management.ManagementScope
- Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-19"
- Options : System.Management.ObjectGetOptions
- ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
- Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
- SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
- Qualifiers : {dynamic}
- Site :
- Container :
- __GENUS : 2
- __CLASS : Win32_UserProfile
- __SUPERCLASS :
- __DYNASTY : Win32_UserProfile
- __RELPATH : Win32_UserProfile.SID="S-1-5-18"
- __PROPERTY_COUNT : 12
- __DERIVATION : {}
- __SERVER : STEVO-PC
- __NAMESPACE : root\cimv2
- __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-18"
- LastDownloadTime :
- LastUploadTime :
- LastUseTime :
- Loaded : True
- LocalPath : C:\Windows\system32\config\systemprofile
- RefCount : 1
- RoamingConfigured : False
- RoamingPath :
- RoamingPreference :
- SID : S-1-5-18
- Special : True
- Status : 0
- Scope : System.Management.ManagementScope
- Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-18"
- Options : System.Management.ObjectGetOptions
- ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
- Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
- SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
- Qualifiers : {dynamic}
- Site :
- Container :
- SID : S-1-5-21-3941088199-1763358985-1575608658-1000
- SID : S-1-5-20
- SID : S-1-5-19
- SID : S-1-5-18
- LocalPath : C:\Users\stevo
- LocalPath : C:\Windows\ServiceProfiles\NetworkService
- LocalPath : C:\Windows\ServiceProfiles\LocalService
- LocalPath : C:\Windows\system32\config\systemprofile
- ____________________________________________________________________________
- PS C:\Users\stevo> $wmi=Get-WmiObject Win32_UserProfile
- $wmi|select LocalPath;
- $wmi|select SID;
- $wmi|select LocalPath;
- LocalPath
- ---------
- C:\Users\stevo
- C:\Windows\ServiceProfiles\NetworkService
- C:\Windows\ServiceProfiles\LocalService
- C:\Windows\system32\config\systemprofile
- C:\Users\stevo
- C:\Windows\ServiceProfiles\NetworkService
- C:\Windows\ServiceProfiles\LocalService
- C:\Windows\system32\config\systemprofile
- ____________________________________________________________________________
- PS C:\Users\stevo> Get-WmiObject Win32_UserProfile|select SID;
- "separator";
- gwmi win32_UserProfile|select LocalPath;
- "separator"
- gwmi Win32_UserAccount|select *;
- SID
- ---
- S-1-5-21-3941088199-1763358985-1575608658-1000
- S-1-5-20
- S-1-5-19
- S-1-5-18
- separator
- separator
- S-1-5-21-3941088199-1763358985-1575608658-500
- S-1-5-21-3941088199-1763358985-1575608658-501
- S-1-5-21-3941088199-1763358985-1575608658-1006
- S-1-5-21-3941088199-1763358985-1575608658-1000
- ____________________________________________________________________________
- PS C:\Users\stevo> $wmi=Get-WmiObject Win32_UserProfile
- $wmi.Count
- ($wmi | select SID).Count
- 4
- 4
- ____________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement