IT tutorials
 
Windows
 

Windows XP : Launching Applications - Creating Application-Specific Paths & Restricting Program Launches for Users

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/1/2012 4:37:02 PM

Running a Program as a Different User

Some applications—especially installation programs—might fail because the current user account has insufficient privileges to support some program operations. Similarly, a user account might have privileges that are too high to safely run a program. For either case, you can run a program as a different user with any of the following techniques:

  • Use the Run As menu command— Right-click the executable file and then click Run As in the shortcut menu. In the Run As dialog box, activate The Following User and then choose a user from the User Name list. Enter the user’s Password and click OK.

  • Prompt for a user— Create a shortcut to the executable file, right-click the shortcut, and then click Properties. In the Shortcut tab, click Advanced and then activate the Run with Different Credentials check box. Click OK. When you launch the shortcut, Windows XP will display the Run As dialog box so that you can choose a user.

  • Use RUNAS command-line tool— You use RUNAS at the command prompt to specify the username, and Windows XP then prompts you to enter the user’s password. Here’s the basic syntax (type RUNAS /? for the complete list of switches):

       RUNAS /user:domain\user program
    /user:domain\userThe user name under which you want the program to run. Replace domain with either the computer name (for a standalone or workgroup machine) or the domain name.
    programThe full path and filename of the application. You need only use the file’s primary name if the application resides within the current folder, the %SystemRoot% folder, the %SystemRoot%\System32 folder, or a folder in the PATH variable.

Creating Application-Specific Paths

Application-specific paths enable you to launch almost any 32-bit application simply by typing the name of its executable file, either in the Run dialog box or at the command prompt. You don’t need to spell out the complete pathname. This pathless execution is handy, but it doesn’t work in the following two situations:

  • 16-bit applications— These older programs don’t store the paths to their executables in the Registry.

  • Documents— You can’t load a document just by typing its filename in the Run dialog box or at the command prompt unless the document is in the current folder.

To solve both these problems, and to handle the rare case when a 32-bit application doesn’t create its own application-specific path, you can edit the Registry to add a path to an executable file (an application-specific path) or to a document (a document-specific path).

In the Registry Editor, open the following key:

HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths

The App Paths key has subkeys for each installed 32-bit application. Each of these subkeys has one or both of the following settings:

Default— This setting spells out the path to the application’s executable file. All the App Paths subkeys have this setting.

Path— This setting specifies one or more folders that contain files needed by the application. An application first looks for its files in the same folder as its executable file. If it can’t find what it needs there, it checks the folder or folders listed in the Path setting. Not all App Paths subkeys use this setting.

To create an application-specific path, select the App Paths key, create a new subkey, and assign it the name of the application’s executable file. For example, if the program’s executable filename is OLDAPP.EXE, name the new subkey OLDAPP.EXE. For this new subkey, change the Default setting to the full pathname of the executable file.

Tip

You don’t have to give the new App Paths subkey the name of the executable file. You can use any name you like as long as it ends with .exe and doesn’t conflict with the name of an existing subkey.

Why does it have to end with .exe? Unless you specify otherwise, Windows XP assumes that anything you enter in the Run dialog box or at the command prompt ends with .exe. So, by ending the subkey with .exe, you need to type only the subkey’s primary name. For example, if you name your new subkey OLDAPP.EXE, you can run the program by typing oldapp in the Run dialog box or at the command prompt.


You create document-specific paths the same way. (However, the document’s file type must be registered with Windows XP.) In that case, though, the Default setting takes on the full pathname of the document. Again, if you want to load the document just by typing its primary name, make sure that the new App Paths subkey uses the .exe extension.

Restricting Program Launches for Users

Windows XP has several group policies that enable any member of the Administrators group to restrict the usage of Windows programs for each logged-on user. For example, you can prevent users from running the System Configuration Utility, a program that—in the wrong hands—can do much damage to a system. You can also prevent users from accessing the command prompt (where they could start unauthorized programs) or the Registry Editor.

In the Group Policy editor, select User Configuration, Administrative Templates, System. There are five policies:

Prevent Access to the Command PromptEnable this policy to prevent the current user from getting to the command prompt.
Prevent Access to Registry Editing ToolsEnable this policy to prevent the current user from running the Registry Editor.
Run Only Allowed Windows ApplicationsEnable this policy to specify a list of executable file names that the current user is allowed to run. Note that this policy doesn’t prevent users from starting other programs at the command prompt, so you should also disable command prompt access.
Don’t Run Specified Windows ApplicationsEnable this policy to specify a list of executable file names that the current user is not allowed to run. Again, users can still run these programs via the command prompt.
Turn Off AutoPlayEnable this setting to disable the AutoPlay feature for inserted CD or DVD discs.
 
Others
 
- Windows XP : Launching Applications and Scripts at Startup
- Windows Small Business Server 2011 : Working with Groups
- Windows Small Business Server 2011 : Creating Groups
- Windows Server 2003 : Computer Accounts - Managing Computer Accounts & Troubleshooting Computer Accounts
- Windows Server 2003 : Computer Accounts - Joining a Computer to a Domain
- Windows Vista : Creating Basic Windows Images - Creating Unattended Answer Files
- Windows Vista : Creating Basic Windows Images - Building a Deployment Server
- Windows 7 : Installing a Local Printer
- Windows 7 : Installing and Configuring a Printer
- Windows Server 2008 R2 : Understand Active Directory Replication
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us