Windows – whoami /priv for another user

scriptingwindows

Is there a way to see the privileges for any (local or domain) user in Windows ?
whoami /priv works for the current user.
Not clear from the docs: https://technet.microsoft.com/en-us/library/cc771299(v=ws.11).aspx
Need to check this for other users (example: service account for SQL Server). And use what's included in Windows, not rely on Sysinternals tools that might not be installed on all servers. There also a complex way of doing it with secedit, not happy about it as it involves writing a result file to disk. Powershell maybe ?

Best Answer

This has been asked & answered on sister-site superuser. The suggestion was to use AccessChk which is EXE provided by Microsoft (when they purchased sysinternals)