Guest User

Untitled

a guest
Jul 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. powershell "([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties.memberof -replace '^CN=([^,]+).+$','$1'"
  2.  
  3. RunProcess[$SystemShell,
  4. "StandardOutput",
  5. "powershell ([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties.memberof"]
  6.  
  7. RunProcess[$SystemShell,
  8. "StandardOutput",
  9. "whoami /groups"]
  10.  
  11. RunProcess[{"whoami", "/groups"}, "StandardOutput"]
  12.  
  13. RunProcess[{"powershell", "Get-Help"}, "StandardOutput"]
  14.  
  15. RunProcess[$SystemShell, "StandardOutput", "powershell Get-Help"]
  16.  
  17. ReadList["!powershell Get-Help", String]
  18.  
  19. RunProcess[{"gpresult", "/r", "/scope:user"}, "StandardOutput"]
Add Comment
Please, Sign In to add comment