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 via batch file?

01 Feb 2013   #11

Windows 7 Professional x64

Quote   Quote: Originally Posted by chev65 View Post
Quote   Quote: Originally Posted by nigelmercier View Post
Quote   Quote: Originally Posted by chev65 View Post
I'm pretty sure that the connectify software for creating a hosted wireless network, can be set to start up automatically when the machine is started. This should be easier for a Novice.

Connectify Hotspot - Connectify
It's a novice using it, not setting it up, so Connectify is a bit OTT.
That's as easy as it's going to get.
Yes, but Connectify will run automatically, I don't want it to do this.

This is all a red herring anyway, perhaps I gave too much detail or posted in the wrong forum. The bottom line is that I want to run an elevated command via a batch file, without going via the right click menu. It would be simple if the batch file had a tick box for Run as Administrator, but it is greyed out.

My System SpecsSystem Spec
01 Feb 2013   #12

Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP

Maybe if you describe the situation a little better we could help. It's not really making sense to me have a user that occasionally wants to use a certain PC, and this certain PC is going to act as a "virtual" router? To serve other PC's connections? Does this user know that their PC is intended to function this way?

Wouldn't it be easier just to buy an actual router?
My System SpecsSystem Spec
01 Feb 2013   #13

Windows 7 Professional x64

Strange how some folks question ones reasons for asking a question.

All sorted, the trick was to create a shortcut to the batch file, and select the Run as Administrator tick box for that. Now when this computer has an active Wi-Fi connection, it can be shared with local iPads etc.

[Later] Found this trick is already mentioned on the W7F, see here post #15, with another method at post #16
My System SpecsSystem Spec


 Elevated command via batch file?

Thread Tools

Similar help and support threads
Thread Forum
may have a batch file of this command?
each line, which is each command, is seperate, it would normally be typed in cmd, thanks netstop sppvc cd %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform rename tokens.dat cd %windir%\system32 net start sppsvc slui.exe dont know how...
General Discussion
In Need a batch file command
So, I need a command for batch files, or other things that a batch file can link to, that selects another window, say a text window(notepad) and then can be typed into. I've used the vbs scripting with Set oShell = CreateObject("WScript.Shell") oShell.AppActivate "Window name" ...
General Discussion
Issues with batch file to run MMC with elevated account
Hey all. I'm trying to create a batch file to run an MMC using an elevated account. I'm a novice when it comes to batch files, but this is what I have so far is: runas /user:domain\account "mmc C:\SuperConsole.msc" pause While I'm not including the domain or account info in this post, the...
General Discussion
programmatic way with BAT file determining if elevated command prompt
Is there any programmatic way within a BATch file of determining whether it has been started from an elevated command prompt (run as Administrator) or a normal command prompt? I note the difference between the Current Directory at start of the BATch file, but wonder if there is a better way. ...
General Discussion
Batch File - For Command??
<This post has now been solved> Hi, Sorry if this is not the place but does anyone know how to do the following? I am trying to create a batch file to search a directory for a specified file type and list it in a text file then get the batch file to read that text file and copy all the...
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 13:35.
Twitter Facebook Google+