Has Administrator Privilege (GPL)
"HasAdminPrivilege.cmd" is a Windows batch program that can helps you determine whether your script is running as administrator or not. "HasAdminPrivilege.cmd" outputs 1 (for true) when it is running with admin privilege. Otherwise, it outputs 0 (for false).
"HasAdminPrivilege.cmd" takes advantage of the "SetNumberOfArguments.bat" (GPL) script that is also available on this web site. So to use "HasAdminPrivilege.cmd", you'll have to download "SetNumberOfArguments.bat", if you don't already have it.
"HasAdminPrivilege.cmd" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
The following screen shot shows the output of the "HasAdminPrivilege.cmd" script when running in the default Command Prompt mode.
The following screen shot shows the "HasAdminPrivilege.cmd" script running in a "Administrator: Command Prompt".
Seems like Microsoft changed its system operation slightly, because this script no longer works on my Windows 10 Home. Not sure which Windows update caused the change in behavior. But I've modified the script slightly to make it work on the latest update.
Found that Windows 10 Pro and Windows 10 Home operates differently, producing different results. Updated the script so that it now operates reliably on both Windows 10 Pro and Windows 10 Home.
Did your message disappear? Read the Forums FAQ.
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
Title: Run As Administrator (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
26 Users Online
Copyright © 1996 - 2021. All Rights Reserved.