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
nigelmercier

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
doubled822

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 personally...you 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
nigelmercier

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
.

Reply

 Elevated command via batch file?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Problem with batch file command to edit registry
reg add HTLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DontDisplayLastUserName /t REG_DWORD 00000001 /f I am trying to hide all users at logon and I know this is where you change it but for some odd reason the syntax is wrong and I can not figure it out. Can someone please...
Customization
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
Batch file not waiting for command to finish before moving on
Hiya, i wasn't really sure where to put this, and i have Googled it but i can't find a reason why my batch file no longer does what it used to do. According to everything i've read, my batch should stop at IE, until i close IE, whereupon it should continue. This is how it used to behave. Here it...
Software
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 15:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App