Advertisement
Guest User

Untitled

a guest
Feb 8th, 2013
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.13 KB | None | 0 0
  1. PS C:\Users\stevo> $wmi=Get-WmiObject Win32_UserProfile
  2. $wmi|select *;
  3. $wmi|select SID;
  4. $wmi|select LocalPath;
  5.  
  6.  
  7. __GENUS : 2
  8. __CLASS : Win32_UserProfile
  9. __SUPERCLASS :
  10. __DYNASTY : Win32_UserProfile
  11. __RELPATH : Win32_UserProfile.SID="S-1-5-21-3941088199-1763358985-15756
  12. 08658-1000"
  13. __PROPERTY_COUNT : 12
  14. __DERIVATION : {}
  15. __SERVER : STEVO-PC
  16. __NAMESPACE : root\cimv2
  17. __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-21-39410
  18. 88199-1763358985-1575608658-1000"
  19. LastDownloadTime :
  20. LastUploadTime :
  21. LastUseTime : 20130208213546.125000+000
  22. Loaded : True
  23. LocalPath : C:\Users\stevo
  24. RefCount : 9
  25. RoamingConfigured : False
  26. RoamingPath :
  27. RoamingPreference :
  28. SID : S-1-5-21-3941088199-1763358985-1575608658-1000
  29. Special : False
  30. Status : 0
  31. Scope : System.Management.ManagementScope
  32. Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-21-39410
  33. 88199-1763358985-1575608658-1000"
  34. Options : System.Management.ObjectGetOptions
  35. ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
  36. Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
  37. SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
  38. Qualifiers : {dynamic}
  39. Site :
  40. Container :
  41.  
  42. __GENUS : 2
  43. __CLASS : Win32_UserProfile
  44. __SUPERCLASS :
  45. __DYNASTY : Win32_UserProfile
  46. __RELPATH : Win32_UserProfile.SID="S-1-5-20"
  47. __PROPERTY_COUNT : 12
  48. __DERIVATION : {}
  49. __SERVER : STEVO-PC
  50. __NAMESPACE : root\cimv2
  51. __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-20"
  52. LastDownloadTime :
  53. LastUploadTime :
  54. LastUseTime :
  55. Loaded : True
  56. LocalPath : C:\Windows\ServiceProfiles\NetworkService
  57. RefCount :
  58. RoamingConfigured : False
  59. RoamingPath :
  60. RoamingPreference :
  61. SID : S-1-5-20
  62. Special : True
  63. Status : 0
  64. Scope : System.Management.ManagementScope
  65. Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-20"
  66. Options : System.Management.ObjectGetOptions
  67. ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
  68. Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
  69. SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
  70. Qualifiers : {dynamic}
  71. Site :
  72. Container :
  73.  
  74. __GENUS : 2
  75. __CLASS : Win32_UserProfile
  76. __SUPERCLASS :
  77. __DYNASTY : Win32_UserProfile
  78. __RELPATH : Win32_UserProfile.SID="S-1-5-19"
  79. __PROPERTY_COUNT : 12
  80. __DERIVATION : {}
  81. __SERVER : STEVO-PC
  82. __NAMESPACE : root\cimv2
  83. __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-19"
  84. LastDownloadTime :
  85. LastUploadTime :
  86. LastUseTime :
  87. Loaded : True
  88. LocalPath : C:\Windows\ServiceProfiles\LocalService
  89. RefCount :
  90. RoamingConfigured : False
  91. RoamingPath :
  92. RoamingPreference :
  93. SID : S-1-5-19
  94. Special : True
  95. Status : 0
  96. Scope : System.Management.ManagementScope
  97. Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-19"
  98. Options : System.Management.ObjectGetOptions
  99. ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
  100. Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
  101. SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
  102. Qualifiers : {dynamic}
  103. Site :
  104. Container :
  105.  
  106. __GENUS : 2
  107. __CLASS : Win32_UserProfile
  108. __SUPERCLASS :
  109. __DYNASTY : Win32_UserProfile
  110. __RELPATH : Win32_UserProfile.SID="S-1-5-18"
  111. __PROPERTY_COUNT : 12
  112. __DERIVATION : {}
  113. __SERVER : STEVO-PC
  114. __NAMESPACE : root\cimv2
  115. __PATH : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-18"
  116. LastDownloadTime :
  117. LastUploadTime :
  118. LastUseTime :
  119. Loaded : True
  120. LocalPath : C:\Windows\system32\config\systemprofile
  121. RefCount : 1
  122. RoamingConfigured : False
  123. RoamingPath :
  124. RoamingPreference :
  125. SID : S-1-5-18
  126. Special : True
  127. Status : 0
  128. Scope : System.Management.ManagementScope
  129. Path : \\STEVO-PC\root\cimv2:Win32_UserProfile.SID="S-1-5-18"
  130. Options : System.Management.ObjectGetOptions
  131. ClassPath : \\STEVO-PC\root\cimv2:Win32_UserProfile
  132. Properties : {LastDownloadTime, LastUploadTime, LastUseTime, Loaded...}
  133. SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
  134. Qualifiers : {dynamic}
  135. Site :
  136. Container :
  137.  
  138. SID : S-1-5-21-3941088199-1763358985-1575608658-1000
  139.  
  140. SID : S-1-5-20
  141.  
  142. SID : S-1-5-19
  143.  
  144. SID : S-1-5-18
  145.  
  146. LocalPath : C:\Users\stevo
  147.  
  148. LocalPath : C:\Windows\ServiceProfiles\NetworkService
  149.  
  150. LocalPath : C:\Windows\ServiceProfiles\LocalService
  151.  
  152. LocalPath : C:\Windows\system32\config\systemprofile
  153.  
  154.  
  155.  
  156.  
  157. ____________________________________________________________________________
  158.  
  159.  
  160. PS C:\Users\stevo> $wmi=Get-WmiObject Win32_UserProfile
  161. $wmi|select LocalPath;
  162. $wmi|select SID;
  163. $wmi|select LocalPath;
  164.  
  165. LocalPath
  166. ---------
  167. C:\Users\stevo
  168. C:\Windows\ServiceProfiles\NetworkService
  169. C:\Windows\ServiceProfiles\LocalService
  170. C:\Windows\system32\config\systemprofile
  171.  
  172.  
  173.  
  174.  
  175. C:\Users\stevo
  176. C:\Windows\ServiceProfiles\NetworkService
  177. C:\Windows\ServiceProfiles\LocalService
  178. C:\Windows\system32\config\systemprofile
  179.  
  180.  
  181.  
  182. ____________________________________________________________________________
  183.  
  184.  
  185. PS C:\Users\stevo> Get-WmiObject Win32_UserProfile|select SID;
  186. "separator";
  187. gwmi win32_UserProfile|select LocalPath;
  188. "separator"
  189. gwmi Win32_UserAccount|select *;
  190.  
  191. SID
  192. ---
  193. S-1-5-21-3941088199-1763358985-1575608658-1000
  194. S-1-5-20
  195. S-1-5-19
  196. S-1-5-18
  197. separator
  198.  
  199.  
  200.  
  201.  
  202. separator
  203. S-1-5-21-3941088199-1763358985-1575608658-500
  204. S-1-5-21-3941088199-1763358985-1575608658-501
  205. S-1-5-21-3941088199-1763358985-1575608658-1006
  206. S-1-5-21-3941088199-1763358985-1575608658-1000
  207.  
  208.  
  209.  
  210. ____________________________________________________________________________
  211.  
  212.  
  213. PS C:\Users\stevo> $wmi=Get-WmiObject Win32_UserProfile
  214. $wmi.Count
  215. ($wmi | select SID).Count
  216. 4
  217. 4
  218.  
  219. ____________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement