Guest User

Untitled

a guest
Aug 8th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. PS C:\Documents and Settings\Administrator> Get-User -UserId $u.UserId | convert
  2. to-xml -as string -depth 5 ; $n.GetRoles() | convertto-xml -as string -depth 5
  3. <?xml version="1.0"?>
  4. <Objects>
  5. <Object Type="RhevmCmd.CLIUser">
  6. <Property Name="UserId" Type="System.String">13762fd9-261f-4658-a420-0db05d
  7. 3577b5</Property>
  8. <Property Name="Department" Type="System.String" />
  9. <Property Name="Domain" Type="System.String">rhevm22.local</Property>
  10. <Property Name="Email" Type="System.String" />
  11. <Property Name="Groups" Type="System.String[]">
  12. <Property Type="System.String">Group Policy Creator Owners@rhevm22.local/
  13. Users</Property>
  14. <Property Type="System.String">Domain Admins@rhevm22.local/Users</Propert
  15. y>
  16. <Property Type="System.String">Enterprise Admins@rhevm22.local/Users</Pro
  17. perty>
  18. <Property Type="System.String">Schema Admins@rhevm22.local/Users</Propert
  19. y>
  20. <Property Type="System.String">Administrators@rhevm22.local/Builtin</Prop
  21. erty>
  22. </Property>
  23. <Property Name="Name" Type="System.String">test1</Property>
  24. <Property Name="Status" Type="System.String">Active</Property>
  25. <Property Name="LastName" Type="System.String" />
  26. <Property Name="UserName" Type="System.String">test1@rhevm22.local</Propert
  27. y>
  28. <Property Name="IsLoggedIn" Type="System.Boolean">False</Property>
  29. </Object>
  30. </Objects>
  31. <?xml version="1.0"?>
  32. <Objects>
  33. <Object Type="RhevmCmd.CLIRole">
  34. <Property Name="Id" Type="System.String">00000000-0000-0000-0001-0000000000
  35. 01</Property>
  36. <Property Name="Description" Type="System.String">RHEVM user</Property>
  37. <Property Name="Name" Type="System.String">RHEVMUser</Property>
  38. </Object>
  39. </Objects>
Add Comment
Please, Sign In to add comment