How do I check if the current batch script has admin rights?
I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs.
|
How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs. | |||||
feedback
|
|
You could always do something like this
Not the best of ways but works for me all the time. | |||
|
feedback
|
|
This is the best kludge I could think of, using standard commands:
| |||||||
feedback
|