电源外壳 all groups user is a member of.
1. 打开 电源外壳 (in elevated mode);
笔记: You must open the 电源外壳 ISE with a user account that has the right to query the AD you are connected to.
2. Paste in the next code:
dsquery user domainroot -samid USER | dsget user -memberof | sort
笔记: If you have an updated 电源外壳 with AD 电源外壳 Tools installed you can also run the following instead
Get-ADUser USER -Properties memberof | select -expand memberof | sort
3. Change USER to users logon ID and run;
笔记: Just make sure the USER is replaced with the user’s login account ID, ie if their login is like domain\username …. replace the USER in the script with the username and then run.