Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. net user` /domain [username]
  2.  
  3. Microsoft Windows [Version 6.1.7601]
  4. Copyright (c) 2009 Microsoft Corporation. All rights reserved.
  5.  
  6. C:Windowssystem32>net user /domain joneswac
  7. The request will be processed at a domain controller for domain MY.SCHOOL.EDU.
  8.  
  9. User name joneswac
  10. Full Name Wesley P Jones
  11. Comment
  12. User's comment
  13. Country code 000 (System Default)
  14. Account active Yes
  15. Account expires Never
  16.  
  17. Password last set 5/6/2013 3:51:33 PM
  18. Password expires Never
  19. Password changeable 5/6/2013 3:51:33 PM
  20. Password required Yes
  21. User may change password Yes
  22.  
  23. Workstations allowed All
  24. Logon script
  25. User profile
  26. Home directory \WONDERFULSCHOOLstudentsjoneswac
  27. Last logon 6/1/2013 3:31:50 PM
  28.  
  29. Logon hours allowed All
  30.  
  31. Local Group Memberships
  32. Global Group memberships *SOCIAL AND BEHAVIORAL*IT Boot Camp Admin
  33. *Students *Registered for Classe
  34. *Domain Users *90B SOC SCI TCH PLAN
  35. The command completed successfully.
  36.  
  37.  
  38. C:Windowssystem32>
  39.  
  40. DSQUERY USER -name %Username% | DSGET USER -memberof -expand | DSGET GROUP -sid -samid | more
  41.  
  42. DSQUERY USER -name <user name> | DSGET USER -memberof -expand | DSGET GROUP -sid -samid | more
  43.  
  44. DSQUERY GROUP -name "Nected Group Set of resources 1" | DSGET GROUP -memberof -expand | DSGET GROUP -sid -samid
  45.  
  46. DSQUERY GROUP -name "Nected Group Set of resources 1" | DSGET GROUP -members -expand | DSGET GROUP -sid -samid
  47.  
  48. GPRESULT /USER %username%
  49.  
  50. dsquery * -filter "(samAccountName=%username%)" -attr *
  51.  
  52. ([ADSISearcher]"(&(ObjectCategory=User)(cn=Luzik, Maksim))").FindOne().properties
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement