vista

MKS Toolkit and Windows Vista/7/2008 

Miscellaneous Information


DESCRIPTION

This page outlines specific behaviors related to using MKS Toolkit on Windows 8.1/2012R2/10/2016/2019/11/2022.

User Access Control

On Windows 8.1/2012R2/10/2016/2019/11/2022, when you have User Access Control (UAC) enabled (and disabling is not recommended for security reasons), your process tokens are restricted. This means that for many operations Windows will prompt you about elevating your permisions. All MKS Toolkit utilities (with the exception of su) are designed to run as the invoking user and so, if you wish to perform an operation using your unrestricted token, it is recommended that you run the command from an unrestricted shell or command interpreter. To launch an unrestricted shell or command interpreter, use the shexec command. For example:

shexec -v runas -a -L sh.exe

starts an unrestricted login shell from which you can run other utilities as you would have in earlier versions of Windows (such as Windows XP). Similarly, you can launch an unrestricted login version of csh with:

shexec -v runas -a -l csh.exe

Finally, you can launch an unrestricted version of the cmd.exe command interpreter with the command:

shexec -v runas cmd.exe

The more general form of the shexec line used to run utilities unrestricted is:

shexec -v runas -a arguments utility

where utility is the utility you wish to run and arguments is the string of arguments to be passed to utility when it is executed. If arguments contains spaces, it should be placed inside double quotes.

When running an unrestricted shell, you may find that your mapped drives are not available. These missing drives may be mapped using the mount utility or cmd.exe's net command.

Also, if you need to add priveleges to your account (for example, with the priv utility, you must be running an unrestricted shell. You cannot add privileges when running a shell with the restricted token.

Similarly, several MKS Toolkit utilities (such as ps, member, userinfo, groupinfo, registry, eventlog, and perl) may require Administrator privileges (as is usually noted on the utility's reference page). You will likely find it necessary to run such utilities from an unrestricted shell or command interpreter.


PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
csh, sh, shexec, su


PTC MKS Toolkit 10.4 Documentation Build 39.