dvě varianty zde:
https://stackoverflow.com/questions/7985755/how-to-detect-if-cmd-is-running-as-administrator-has-elevated-privileges
(osobně používám tu poweshellovou)
třetí varianta: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights