Add Comment
|
Related Links
|
TrackBack
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. UsageHasAdminPrivilege.cmd Chieh Cheng Example 1The following screen shot shows the output of the "HasAdminPrivilege.cmd" script when running in the default Command Prompt mode. Chieh Cheng Example 2The following screen shot shows the "HasAdminPrivilege.cmd" script running in a "Administrator: Command Prompt". Chieh Cheng 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. Chieh Cheng 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. Chieh Cheng
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites. Send Ping | TrackBack URL | Spam Control Title: Run As Administrator (GPL) Add CommentSpam Control | * indicates required field Messages, files, and images copyright by respective owners. |
Products
|
Services
81 Users Online
|
Copyright © 1996 - 2024. All Rights Reserved. |