fbpx
1-888-310-4540 (main) / 1-888-707-6150 (support) info@spkaa.com
Select Page

Trigger UAC to Ensure Scripts are run As Administrator in Windows 7

windchill features best plm software
Written by SPK Blog Post
Published on April 10, 2014
I wanted to post this solution since we run into this problem all the time:

Often, our .bat scripts include making registry changes or copying files which require Administrative access. This code will cause the .bat file to trigger a UAC prompt before running AsAdministrator — allowing us to make those registry changes instead of getting permission errors.

Be careful, though – make sure you map network drives or make environment changes at the end of the file; relaunching a file as Administrator means you will not have the same Environment or Map Drives as the User in Windows 8.

Download our How-To Guide to Trigger UAC to Ensure Scripts are run As Administrator in Windows 7 below.

Latest White Papers

Model-Based Definition Capabilities in Creo

Model-Based Definition Capabilities in Creo

Model-based definition (MBD) is a design approach that revolves around creating, organizing, and managing a 3D Model. Explore how PTC Creo utilizes MBD to help you achieve an efficient design.  What You Will Learn In this eBook,...

Related Resources

Service Excellence: Jira Service Management Best Practices

Service Excellence: Jira Service Management Best Practices

Jira Service Management is a powerful tool from Atlassian, designed to streamline service desk operations. It helps IT and software teams deliver efficient support and manage incidents. When using JSM, following a set of best practices can increase successful outcomes...

Five Major Downsides of Changing Software Tools

Five Major Downsides of Changing Software Tools

Switching to new software tools can often seem like an exciting opportunity to streamline processes, increase efficiency, and modernize operations. Some executives seem to think that simply buying a new software tool will solve many problems at once. However, with...

The Pitfalls of Outdated Tools in Managing Global Teams

The Pitfalls of Outdated Tools in Managing Global Teams

The dynamics of product development have shifted dramatically in the past 5 years.  Teams are no longer confined to a single location or even a single time zone.  Instead, they span continents, collaborating across borders to bring products to market faster than ever...