Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: elevated command administrator password

16 Jan 2013   #1

w7 64
elevated command administrator password

I am writing a vba script for a standard user to run a program in elevated mode. Is there a way to program in the administrative password?

ie..elevate "cmd /k mkdir "newfolder"

The goal is to enable the standard user to create a new subfolder within a directory they don't have permission to do so as standard user.

My System SpecsSystem Spec

16 Jan 2013   #2
Microsoft MVP

64-bit Windows 10 Pro build 10586

Hello sausepan, and welcome to Seven Forums.

You might see if the method used in the tutorial below may be able to help with this. You could use the tutorial below to create an elevated shortcut to run your script file.

Elevated Program Shortcut - Create for Standard User

Hope this helps,
My System SpecsSystem Spec

 elevated command administrator password

Thread Tools

Similar help and support threads
Thread Forum
No administrator privileges in elevated command prompt
Hi, I'm trying to setup a WiFi Hotspot on my Laptop running Windows 7. When I enter the command: netsh wlan set hostednetwork mode=allow "ssid=myssid" "key=mykey” keyUsage=persistent in an elevated command prompt, it says: "You must run this command from a command prompt with administrator...
General Discussion
Use elevated command mode within Win 7
This is a question on file and folder location. The program being used creates a file in a directory. From my use of Win 7 I can only navigate to the file in elevated command mode in the DOS box. Is there a way to permanently reveal all folders to the Win 7 interface? Part of the...
General Discussion
Elevated Command Prompt
How to Open an Elevated Command Prompt in Windows 7 This will show you how to open an elevated command prompt with administrator rights (Run as administrator) instead of the default command prompt without administrator rights in Windows 7. If you opened the elevated command prompt from a...
Elevated command prompt over SSH
Not sure if this is the proper forum for my question, but here it goes. I'm using a SSH server to remotely access my notebook from work. It works well for SFTP and remote command line access using a dedicated, non-admin, user account. Problem is when I want to run something that requires...
Network & Sharing
Tip for Elevated Command Prompt
This probably is not new to many, but I find it useful. There are times I want an elevated command prompt. I usually type in "cmd", right click on it and run as administrator. If you need an elevated command prompt now and then, simply create a shortcut to "cmd". Right click on the shortcut,...
General Discussion
Open elevated command window here
I could prolly figure it out but does anyone know offhand how to add an "Open elevated command window here" option in addition to the "Open command window here" shift+context menu for a folder?
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 23:35.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App