title: Powershell:In user right assignment how to get same output from script as from gui
body: <p>I'm new with powershell and I have this question. I exported list from gui and it looks like <a href="http://pastebin.com/P3xKFrnS" rel="nofollow">this</a> </p>
  
  <pre>
  Policy  Security Setting
  Access Credential Manager as a trusted caller  
  Access this computer from the network   Everyone,Administrators,Users,Backup Operators
  Act as part of the operating system
  Add workstations to domain 
  Adjust memory quotas for a process  LOCAL SERVICE,NETWORK SERVICE,Administrators
  Allow log on locally    Administrators,Users,Backup Operators
  Allow log on through Remote Desktop Services    Administrators,Remote Desktop Users
  Back up files and directories   Administrators,Backup Operators
  Bypass traverse checking    Everyone,LOCAL SERVICE,NETWORK SERVICE,Administrators,Users,Backup Operators,Window Manager\Window Manager Group
  Change the system time  LOCAL SERVICE,Administrators
  Change the time zone    LOCAL SERVICE,Administrators
  ... output truncated....
  </pre>
  
  <p>but from script I run<br>
   <code>secedit /export /areas USER_RIGHTS /cfg d:\policies.txt</code><br>
  code which gives me back <a href="http://pastebin.com/Cb3afzKW" rel="nofollow">this</a> </p>
  
  <pre>
  [Unicode]
  Unicode=yes
  [Privilege Rights]
  SeNetworkLogonRight = *S-1-1-0,*S-1-5-32-544,*S-1-5-32-545,*S-1-5-32-551
  SeTcbPrivilege = Pearl,*S-1-5-21-1042109134-4285797005-3901271436-1004,*S-1-5-21-1042109134-4285797005-3901271436-1006,*S-1-5-21-1042109134-4285797005-3901271436-1007,nx
  SeBackupPrivilege = Pearl,*S-1-5-32-544,*S-1-5-32-551
  SeChangeNotifyPrivilege = *S-1-1-0,*S-1-5-19,*S-1-5-20,*S-1-5-32-544,*S-1-5-32-545,*S-1-5-32-551
  SeSystemtimePrivilege = *S-1-5-19,*S-1-5-32-544
  SeCreatePagefilePrivilege = *S-1-5-32-544
  SeDebugPrivilege = *S-1-5-32-544
  SeRemoteShutdownPrivilege = *S-1-5-32-544
  SeAuditPrivilege = *S-1-5-19,*S-1-5-20
  SeIncreaseQuotaPrivilege = *S-1-5-19,*S-1-5-20,*S-1-5-21-1042109134-4285797005-3901271436-1004,*S-1-5-21-1042109134-4285797005-3901271436-1006,*S-1-5-21-1042109134-4285797005-3901271436-1007,nx,*S-1-5-32-544
  ... output truncated....
  </pre>
  
  <p>So is there any way to parse this data and get the same output from GUI by PowerShell or batch file or any other way?</p>