Over 1 million tech questions and answers.

elevated command prompt...huh?

Q: elevated command prompt...huh?

how do I open an elevated command prompt?

RELEVANCY SCORE 200
Preferred Solution: elevated command prompt...huh?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: elevated command prompt...huh?

Right click the bottom left corner of the screen and select Command Prompt (Admin)

Elevated Command Prompt - Open in Windows 8

Read other 2 answers
RELEVANCY SCORE 90.8

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 admin permission under that connection. The server runs cmd.exe under the context of a non-admin user I've created for it, so I'm limited in what I can do. Question is, how can I "elevate" that remote command prompt to execute admin-only programs and commands? UAC of course will not help under that conditions.

Thanks!

A:Elevated command prompt over SSH

before you enter the command you can use the runas command first. You can also save the credentials so you dont have to enter them in every time.

Runas

Example:

Code:
runas /noprofile /user: username "command"

Read other 5 answers
RELEVANCY SCORE 90.8

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, left click on properties. Click the shortcut tab and select "advanced". Finally, you can select "run as administrator".

Like I said, just something I didn't think about before, but it's handy to have.

A:Tip for Elevated Command Prompt

Elevated Command Prompt

As a sysadmin trying to roll out an image of windows7 to other machines, not having cmd parameters to automate an elevated cmd really annoys the hell out of me.

Read other 6 answers
RELEVANCY SCORE 90

Hi friends !
Uber Philf told me to start a new thread with my problem. I cannot open an Elevated Command Prompt, Dont know why. I know that I can open it in two alternative ways : 1). Win+R, type cmd, hit enter eith ctrl+shift pressed ; and 2). start > all programs > accessories > command prompt > right click and run as admit. The prompt should be C:\Windows\System32_

But What prompt I am having is C:\Users\username_

Am I doing it wrong? Then what I am to do? I have user account control settings turned off.

A:How to open Elevated Command Prompt?

Several member had the same problem

Go to search by the start menu

type cmd

As soon as cmd pops up, do not hit enter. right click and run as adminitraor.

If done properly you will have the cmd. Try and report back

Read other 9 answers
RELEVANCY SCORE 90

If i try and use cmd from within the start menu ,in accessories and right click ,then "Run as administrator",all i am granted is normal cmd usage e.g(C:\Users\(User Name ).Now,i then pinned cmd to the start menu and again i tried to "run as administrator",but this time cmd fails to open at all.

The only way i am able to run cmd with administrator access is by using the start search box and entering cmd from there ,and right click ,run as administrator!

very strange ?

A:elevated command prompt fails

I have set my command prompt from the start menu to ALWAYS run as administrator:

Start menu
command prompt
right click
properties
shortcut
advanced
put a check in "run as adminstrator" checkbox.

I dunno about getting that to the taskbar. Maybe it is doable?

Read other 8 answers
RELEVANCY SCORE 88.8

Needed to launch an elevated command prompt and now, explorer crashes when I do so.

What I've already done:
1) Run sfc /scdannow both from inside Win7 and from DVD. Finds files it can't fix. Appear to be due to (1) login screen customization, and (2) Vista basic custom there. But -- these have been true from when I first installed Win7 and have only run into this problem recently.
2) Read the thread on diagnosing Explorer crashes, applied the registry fix, generated the dump file. So, I can upload that here.
3) Do regular full-partition images, so went back three months, restoring one at time -- problem remains with the oldest restore I have -- December of last year.
4) Restored latest backup (2/25/11), ran startup repair (from DVD) three times. Rebooted Win7, tried elevated command prompt -- still crashes Explorer.

So, apart from a complete clean-install (which I am dreading because of all the pain I went through scrounging drivers for this XP-era Tablet PC), is there anything else I can do?

A:Crash trying to launch elevated command prompt

1 - start scrounging drivers "just in case". Save them to a flash drive or DVD

2 - upload the dump file. If it's too big to upload, upload it to a free file-hosting service and post the link here.

3 - check the CBS.log file (C:\Windows\logs\CBS\CBS.log) for the missing/corrupt files. Here's a KB article on it for Vista (Win7 should be similar): How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program generates in Windows Vista

4 - scan for viruses, scan for rootkits

5 - try a Repair Install of Win7: Repair Install

Read other 7 answers
RELEVANCY SCORE 88.8

I can run an application as another user, and I can run an application as another user.  What I cannot figure out how to do is run an application as another user with elevation.  Both of the accounts are in the administrators groups of the windows
7 pro systems, one os a domain admin.  In order to get around this I currently have to turn off UAC.  Is there a way to choose run as administrator and somehow use another user account?

A:run elevated command prompt (or application) as another user

Based on my research, there are only two choices: run as another user and run as administrator. If you would like to modify the execution policy via another user
profile with administrator privilege, you have log off the current account and login on with another user account.
 
Thanks,
Novak
 
 

Read other 12 answers
RELEVANCY SCORE 88.8

I recently noticed that I couldn't start the On-Screen Keyboard (osk.exe) from my start menu. Tried all kinds of clean-ups, but it would not run - not from the %windir%\system32 folder, not from start>run, not from an ordinary command shell. But it loads fine from an elevated command shell. It also runs from other user accounts. And it runs fine on log-on if enabled in the Ease of Access Center.
Does anyone know where its idiosyncratic behavior could originate from.

A:On-Screen Keyboard will only run from elevated command prompt

Welcome to Seven Forums c2357. Does it run fine in Safe Mode? If so, you might try performing a clean start to see if there is a conflict.

Troubleshoot Application Conflicts by Performing a Clean Startup

See if unchecking Tablet PC Components in windows features correct this behavior

Windows Features - Turn On or Off

If not, try the System Files Checker

SFC /SCANNOW Command - System File Checker

It may be a permission issue, but then the question is what changed it, and how?

A Guy

Read other 3 answers
RELEVANCY SCORE 88.8

Hi,

I'm trying to setup a WiFi Hotspot on my Laptop running Windows 7.
When I enter the command:

Code:
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 privilege."

I have an administrator account and had never problems with it.

Does someone has an idea what the problem could be?

A:No administrator privileges in elevated command prompt

Hi Bones, welcome to the Seven Forums.

The message you get shows absolutely clear without any doubts that you are not running the command from elevated Command Prompt. That message is only shown when a command requiring administrative privileges has been run from a normal Command Prompt.

When run from an elevated Command Prompt, your command syntax is OK (highlighted yellow) and runs as it should, the output (highlighted green) showing it's working:
Two telltales of an Elevated Command Prompt, numbers referring to respective numbers in above screenshot:The title has word Administrator in it
The prompt (by default) is C:\Windows\System32

Kari

Read other 5 answers
RELEVANCY SCORE 88.8

@ AceInfinity & anyone who wishes to respond:

Hello. Nice to meet you. I have a question to ask you or anyone that would like to help me...

After seeing your example above, it got me thinking... ...I would like to add to my context menu an elevated command prompt (with administrator privileges) in the same or similar coding fashion (not binary code) as in this example below. The key is that it has to be "elevated" with Administrator privileges, not just a normal command prompt to open. I am not sure how to write a working script since it "MAY" (probably is) quite different than the coding pattern in my example here after including the 'elevated' coding component part to it:

[HKEY_CLASSES_ROOT\Directory\Background\shell\Elevated Command Prompt]

[HKEY_CLASSES_ROOT\Directory\Background\shell\Elevated Command Prompt\command]
@="control appwiz.cpl"

Please correct by adding and or deleting or modifying the script above so the code that would demonstrate a working "elevated" command prompt script to open in a window.

I would also like to add the command prompt icon to my context menu too. I am very sure that it would look something like this (pretty sure if the registry key information is correct though, probably it is not since I am looking for the script to be 'elevated' as I have already stated):

[HKEY_CLASSES_ROOT\Directory\Background\shell\Elevated Command Prompt]
"Icon"="C:\\Windows\\Context Menu Icons\\E... Read more

A:Add elevated command prompt to context menu

Hello. I tested with the test registry script and yes... ...I have the name "Elevated Command Prompt" in my context menu with the representative icon, and CMD does open successfully... ...the only issue is that it is NOT "elevated", but a "regular" command prompt. That is the question... ...what do I need to modify (subtract or add) to the code in order to the "elevated" command prompt (administrator privileges)??? Please provide the script to accommodate these changes.

Please reply.

Thank you!

Read other 5 answers
RELEVANCY SCORE 88.8

Long story short,
I've been trying to dual-boot W7 with Ubuntu. Failed. Now I cannot boot up Windows, and though there are hundreds of forum articles explaining how to fix this (using the Bootrec/bcdedit commands in the Windows RE command prompt), but I can't run either of them (get an error). My guess is that I need to run bcdedit as an admin.
After doing some research, I learned about the "Runas" command, but I can't seem to get it to work. Microsoft and other forums didn't help much...

Please help!

A:Running an elevated command prompt (from the Recovery DVD)

Mark Win7 partition Active, then run Startup Repair from DVD/Repair CD up to 3 separate times with reboots until Win7 starts.
Startup Repair - Run 3 Separate Times
Partition - Mark as Active (Method Two)

Read other 5 answers
RELEVANCY SCORE 88

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.

When in elevated mode I don't get a UAC prompt when using DISKPART.
The UAC prompt only happens when running it in a normal command prompt window.

Are you aware of any command which simultaneously would
give a different errorlevel when executed in an elevated command prompt than in a normal command prompt, and
not produce a UAC prompt in normal mode?
If this is the case, unless I can find something to distinguish between elevated command prompts and normal command prompts, then I will have to try the %cd% variable at the start of BATch files, to see whether it is consistent even across user modifications of the command prompt shortcut's Target Directory...

A:programmatic way with BAT file determining if elevated command prompt

I can answer my own question, as below

Code:
@echo off

:: +----------+
:: I Elevated I Test whether this BATch file / Command Prompt
:: +----------+ in running in Elevated mode or Normal mode

setlocal

:: method (applicable to Windows 7, and maybe Vista)
:: try to write a zero-byte file to a system directory
:: if successful, we are in Elevated mode and delete the file
:: if unsuccessful, avoid the "Access is denied" message

:: arbitrary choice of system directory and filename
set tst="%windir%\$del_me$"

:: the first brackets are required to avoid getting the message,
:: even though 2 is redirected to nul. no, I don't know why.
(type nul>%tst%) 2>nul && (del %tst% & set elev=t) || (set elev=)

if defined elev (echo Elevated mode) else (echo Normal mode)

endlocal

Read other 1 answers
RELEVANCY SCORE 88

Hi,

Not sure if this has already been posted, or covered in a tutorial, but this is a little trick I discovered to open an elevated command prompt, without having to create a special shorctcut. I find this quite useful.

Steps:

1. Click Start Orb, and in the search box type cmd
2. Right-click cmd, and then choose Pin to Taskbar

Now, whenever you wish to open an elevated command prompt, hold down CTRL+SHIFT and the click the cmd icon on the Taskbar. Click Yes on the UAC panel, and an elevated command prompt window is then opened.

Regards,
Golden

A:Simple trick for opening Elevated Command Prompt

I went one step further. I checked the box " run as admin" in the cmd Properties > Advanced. Then I applied this Elevated Program Shortcut without UAC Prompt - Create Now my cmd sits in the taskbar and never bothers me with UAC prompts when I launch it.

Read other 3 answers
RELEVANCY SCORE 87.2

I just finished [finally] updating my copy of Windows 8 Pro to Windows 8.1 Pro (manually downloaded the ISO from Microsoft and did an in-place update within the existing copy of W8). After I did all of the available Windows Updates, I noticed that, whenever I try and open an elevated Command Prompt window (I want to do this to try and manually do some things to remove Windows.old, since it says that the directory is not empty), I see it open, but close instantly. A non-elevated Command Prompt window opens just fine. I searched, and haven't found anything. This also happens in safe mode.

A:Elevated Command Prompt window opens and closes instantly

Anything interesting in Event Viewer?

Read other 16 answers
RELEVANCY SCORE 87.2

this was simple in windows xp.I have a script that installs Citrix web client.Problem I need to copy over the shortcut to users\public\public desktop through this scriptHow can you program the copy to run in the Elevated command prompt mode to do this?

A:Windows7 elevated command prompt priviledges throug a script

Greetings, I agree with Calwell’s reply. It seems that you want to run the copy action as an administrator using the script itself.
You can refer the following URLs, hope it would be helpful.Utility Spotlight - Script Elevation PowerToys for Windows Vistahttp://technet.microsoft.com/en-us/magazine/2007.06.utilityspotlight.aspx?pr=blogHow Can I Run a Script Under Alternate Credentials?http://blogs.technet.com/heyscriptingguy/archive/2004/12/13/how-can-i-run-a-script-under-alternate-credentials.aspx  Since this issue is more related to scripting, I recommend you open a thread to Official Scripting Guys Forum in Technet so those coders can help you fix the issue in a timely manner.Official Scripting Guys Forum http://social.technet.microsoft.com/Forums/en/ITCG/threadsScript Center:  http://technet.microsoft.com/en-us/scriptcenter/default.aspx

Read other 15 answers
RELEVANCY SCORE 86

As a single home user, in setting up Windows 10 I was not aware there is a hidden administrator who controls changes to the system.  I discovered this when I went to  open the check disk function.  I have spent hours trying different prescribed
methods found online online for ogetting access to the elevated command prompt - but all end saying I don't have the priviledge.  In another approach, my computer tells me I do not have access to luscr.msc and to instead go to account change.  Here's
the kicker.  Once there, I am not allowed to change from "standard" to "administrator"  - this is a Catch 22 since I am the only registered user of the system.  HELP - I'm not techie, but I'm also not a complete dummy. 
MAB

Read other answers
RELEVANCY SCORE 79.2

1. Create a newTask named OpenCmdHereAsAdminNoUAC and activate "Run with the highest privileges"

2. Go to the Actions Tab, create a new Action "Start a Program" choose "C:\Windows\System32\cmd.exe" and set the Working Directory (Start in) to %CURDIR%

3. Create a Shortcut named OpenCmdHereAsAdminNoUAC.
In the "Type the location of the item" Field type:

C:\Windows\System32\schtasks.exe /run /TN "\OpenCmdHereAsAdminNoUAC"

and copy the created Shortcut to C:\Windows\System32

Finally, add the attached "Add_Open_Command_Window Here_Admin_No_UAC.reg" to Registry.


Code:
Windows Registry Editor Version 5.00

; Created by: Darth Nukem
; Created on: 08_20_16
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdminNoUAC]
@="Open Command Window Here (Admin)"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdminNoUAC\command]
@="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAsAdminNoUAC]
@="Open Command Window Here (Admin)"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAsAdminNoUAC\command]
@="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""


... Read more

A:[How-To] Context menu "Open elevated Command Prompt Here" without UAC

Elevated Shortcut without UAC - Create in Windows 10 - Windows 10 Forums

Read other 1 answers
RELEVANCY SCORE 68

I have a utility I run on some customers' machines that requires being run from safe mode. I already have the utility automated via batch, and would like to just run one SFX app and move on to the next machine, knowing that this app will reboot the machine into safe mode w/ command prompt, run my utility, and reboot the machine back into normal mode (the standard shutdown -r -t 01 is easy enough, but there are no modal options!). Also, if this can be done, how would I then make sure that the current user logs in automatically, rather than have safe mode stop at the log-in screen?

The utility in question is a simple "Common Software Package" which includes some software such as Reader and Flash. Some of the software included cannot be installed while an antivirus is running (at least any that have tamper-protection) due to the registry editing involved, but are completely positive in nature (one such software package simply checks the current registry vs. a backup it takes on each shutdown to look for any discrepancies, adjusted for installed software, of course). The packages do not require Windows Installer service to be running, so I have found SM w/ CP to be the best option.

Any help with this would be appreciated.

Read other answers
RELEVANCY SCORE 66.4

After thrashing this Win 7 beast around (it's now preforming rather well) it has become apparent to me that I need some tutoring on commands that are available for the different modules that are available at an elevated prompt. I don't mean the old dos commands. Does anyone know of a text available for this? Also The power shell commands (language) would be of interest.

A:Elevated Prompt

Hi HammerHead,

Check in the Tutorial section here on the Forum. Some great information for those looking to improve their knowledge of Windows 7. Good Luck

Read other 1 answers
RELEVANCY SCORE 66

I have been trying to register a program I bought and they tell me I must be logged in as Admin.

When I try to get to the elevated CMD prompt I am entering: net user administrator /active:yes

I get an ERROR 5 message and nothing happens.

I have also tried to use the other method using the Computer Management | Users method and enabling the account there. I don't see anything happening when I do this unless I have to reboot the machine, which I haven't tried.

The admin account is simply administrator and has not been renamed to something else and there is no password. I have used the CMD prompt method before and it worked fine now for some reason it won't.

Thanks ,

J T

A:Can't seem to get elevated cmd prompt to work

Never heard of a program you are trying to register need you to be an admin, what`s the program ?

Right click on command prompt to run as admin.

Read other 7 answers
RELEVANCY SCORE 66

Hi,

For those who'd like to use the power of a permanent admin (can of course be reverted) prompt here's how:

Elevated Command Prompt Shortcut - Windows 7 Forums

Open Explorer and drill down to:

C:\Users\"Username"*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools

There you see the command prompt shortcut as the first of a list of shortcuts. Right click it, choose properties from the list.
The property list will open, now choose Advanced and tick the "Run as Administrator" checkbox. Click Apply, Close. Done.

Now every time you run a command prompt you'll run it with administrative rights.

Cheers,

* Username: the account name you logged on with.

A:Elevated prompt/Run as Administrator once and for all.

I don't have that option.

Read other 3 answers
RELEVANCY SCORE 64.4

when I'm in cmd promt admin mode I still get message I need to be in elevated mode?

cmd prompt is in windows/system32 ok

this is a fresh install of win on to a new drive

can anyone help me on this please

thanks

Mike

A:I'm in cmd prompt admin mode I get message I need to be in elevated

Hi there ... Read the Link below ...

Elevated Command Prompt

Read other 5 answers
RELEVANCY SCORE 64.4

I am trying to make a shortcut to launch a program with admin privileges, with User Account Control (UAC) enabled, from a regular user account.

I had previously used 'runas' to launch a program with admin privileges from a regular user account using a similar method in the "How to Create an Elevated Program Shortcut Any User is able to Run" tutorial to create an elevated shortcut. In my case I am launching Process Explorer as an admin user from a regular user account. I had created a batch file with the command, then created a shortcut to the batch file, although the method in the tutorial where the entire command is just written out as the shortcut target is much simpler.

The 'runas' command used to work fine with UAC turned OFF. However it does NOT work with UAC turned ON. I'm not sure why. If I turn UAC off, it works. But if UAC is turned on, even though the application (Process Explorer) is launched with the admin user account, for system processes it shows <access denied> and no network and no disk information. I have verified the command launches as the admin user, since the admin user account username is listed next to the process, and the name of the admin user account is shown in brackets in the title bar of the application.

Interesting I also tried the Sysinternals 'ShellRunas' utility, which also did NOT work with UAC turned ON. I registered the context menu entry, then I right clicked to select "Run as different user...", and the... Read more

Read other answers
RELEVANCY SCORE 64

Hi,
    I have copied and pasted a command script text from Microsoft(attached file) into notepad. I have save this Notepad file in both Desktop and My Documents.
    The text instructs me to run in an elevated command, I find elevated command prompt ok ,but despite several attempts cannot get script to run from either Desktop or My Documents.
      Can  anyone tell me how to run this script.
      The attached file is in Wordpad  for illustrative purposes only.
      Thank you
             Rayal49  

A:Elevated Command

Please post the wordpad text in your topic.  I will not download anything to my computer unless I know exactly what it contains.
 
I want to go over how I access the Elevated Command Prompt in Windows 7 so I know we are on the same page.
 
Click on the start orb , then type cmd in the Search programs and files box.
 
cmd will appear above the search box, right click on it and select Run as administrator.
 
You should see an image similar to the one below.
 

 
Type in the command, then press Enter.

Read other 1 answers
RELEVANCY SCORE 63.6

hi !

is it possible to have an "Elevated Taskmanager" without UAC-prompt on a user-account ?

for obvious security-reasons, i always run on a user-account, except when doing system maintenance.
i want taskmanager to show everything, so it would be really nice if it was possible to create a shortcut that starts it without any UAC-prompts.

any ideas ?

A:Elevated Task manager without UAC-prompt for a user-account ?

  
Quote: Originally Posted by hackerman1


hi !

is it possible to have an "Elevated Taskmanager" without UAC-prompt for a user-account ?

for obvious security-reasons, i always run on a user-account, except when doing system maintenance.
i want taskmanager to show everything, so it would be really nice if it was possible to create a shortcut that starts it without any UAC-prompts.

any ideas ?



Yep. You could start by searching the tutorial section. You would be amazed at how many things are covered there. For example. Elevated Program Shortcut without UAC Prompt - Create
Ken

Read other 3 answers
RELEVANCY SCORE 63.6

  Way too many Windows Explorer crashes and numerous odd behaviour for a relatively fresh clean W7P install. Just popped up after having went from free av to SpyBot's Pro having BitDefender as their flagship av aand used it for 3 days until oddball behaviour spooked me and so I unistalled SpyBot. Now poking around to see wuz up wit dis infernal machine. Tried trouble-shooting via clean boot, nothing pointed to nuttin. Went to use elevated command prompt (from me as admin) and yet the command or 'DOS' window seems to indicate I'm not an Admin, ref. see scr-shot. As I read and recall, the resulting command line (as an Admin) is supposed to read as C:\Windows\system32, no? Any wisdomeers out presently here?  Will hang a bit and den check back every hr or so.  Best regards and happ-e-trail otherwise, wguru   

A:Deflated elevated command

Hi,Did you try opening elevated command prompt like this: https://www.sevenforums.com/tutorials/783-elevated-command-prompt.htmlBe logged in Windows as AdministratorRegardsVisruth

Read other 1 answers
RELEVANCY SCORE 63.6

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 directory tree reads as follows:

c:\users\all users\my directory\another directory\ .file name

In Win 7, all users and the rest cannot be retrieved with search.

The goal is to make a shortcut to the .file name directory

A:Use elevated command mode within Win 7

Welcome.

The folder "All Users" is a hidden protected operating system file/folder.

See this tutorial to unhide.

Hidden Files and Folders - Show or Hide

Read other 4 answers
RELEVANCY SCORE 62.8

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?

A:Open elevated command window here

Hope this helps

Command Prompt. From our excellent tutorial collection

Read other 7 answers
RELEVANCY SCORE 62.8

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.

A:elevated command administrator password

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,
Shawn

Read other 1 answers
RELEVANCY SCORE 62.8

I've set up a Virtual Router as in this page, but what it doesn't tell you is that you need to re-run the elevated command netsh wlan start hostednetwork every time the computer boots or comes out of standby.

Is there a way to run an elevated command via a batch file?

Later ... I've just found a similar tutorial here on W7F, and this mentions running batch files as administrator. However, I want to set this up for a novice user to use.

A:Elevated command via batch file?

I can think of one way---but I recommend disabling standby functionality on this machine. Since it will essentially be your wireless router, you're going to want it running most of the time.

1. Start > Run
2. type gpedit.msc
3. Under Computer Configuration, select Windows Settings.
4. Click on Scripts, and then Startup Scripts.
5. From here you can add your batch file, and it will run under the SYSTEM account when the computer boots up, and should be good to go.

Let us know how it works out!

Read other 9 answers
RELEVANCY SCORE 62

I have used the @="cmd.exe /s /k pushd \"%V\"" type of Registry mod to obtain a context menu "Open elevated command window here" menu item, such as in the "Open elevated command window here" thread ( Open elevated command window here ).

However, the admin cmd window, even though it says "Administrator:" in the title bar, will not seem to work with the REG command (e.g., "REG SAVE [...]", etc.). If I even just type "reg /?" on the cmd line, it just jumps to the next (new) cmd line prompt, without any apparent action. (And, DISKPART will work here, even though REG doesn't.)

[The REG command works fine when I open a pinned cmd.exe link with Admin privileges.]

So,

1. Has anyone else noticed this?

2. And, if I'm not the only user in the universe to have this "feature", does anyone know of a workaround?

Thanks.

A:No REG Command in "Open elevated command window here" DOS Box

Hello Fred, and welcome to Seven Forums.

Is this the tutorial you used below to add "Open elevated command window here"? Open Command Window Here as Administrator
The REG /? command works for me using this when I right clicked on C:\Users and Open elevated command window here.
Do you have your UAC notification settings set to at least the default or top level? Normally when you use "Open elevated command window here", you will get a UAC prompt to approve before the elevated CMD window opens. If you do not get a UAC prompt, then this may be why you are having this issue.

Hope this helps for now,
Shawn

Read other 9 answers
RELEVANCY SCORE 61.6

I have a file to clear the print spooler when it has an error. I based this file on Brinks tutorial. Thanks Brink. I placed this file in C:\windows\system32 folder so all users would have access. The file must be run in a elevated cmd window. I then created a shortcut to the file and put the shortcut in each users Maintenance folder so they could clear the print Q when needed. In each shortcut I put a check in ADVANCED.......RUN AS ADMIN so the elevated command would be uised when clearing the print Q.
When the shortcut is used to clear the print Q it works fine in the ADMIN user account, all the ADMIN has to do is answer "YES" to the UAC. But the standard users must input the ADMIN PW at the UAC. Obviously, I don't want them to have the PW.
Is there a way for me hard code the PW into either of the files, the batch file or the shortcut, so that the standard user doesn't have to insert the ADMIN PW?

A:Standard user requires admin PW when using elevated command

What if you change the properties of the file in system32 to run as admin, rather than the link in each profile?

Read other 8 answers
RELEVANCY SCORE 60.8

Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative privleges from command prompt.

I am trying to do this command:

copy explorer.exe C:\Windows\

So if there is also another command I can just tack onto that that gives me admin rights to do it. I would be happy.

A:Run administrative command prompt from command prompt

On a friend's computer that also has win 7 64 bit installed, make a system Repair CD.


Boot from the system repair CD

go to a command prompt.


CREATE A SYSTEM REPAIR DISC

START | type System Repair | Enter key | Create Disc button





GO TO A COMMAND PROMPT USING A SYSTEM REPAIR DISC

1) Insert System Repair Disc into optical reader.
2) Shutdown your computer.
3) Boot up your computer from the System Repair Disc
If your computer doesn’t boot from the optical drive, then
Immediately after pushing your Power ON button,
start tapping the F2 key to get to the BIOS to change the boot order

On some computers, Immediately after pushing the Power ON button, start tapping the F12 key and choose CD/DVD to change the boot order only for this time.
4) Wait while a mini-version of Windows is loaded and finally the SYSTEM RECOVERY OPTIONS dialog appears.
5) NEXT
6) SYSTEM RECOVERY OPTIONS dialog
will search your system for installed versions of Windows.
7) select the Use recovery tools that can help fix problems starting Windows radio button |
NEXT
8) Choose command prompt from the list shown

Run any desired commands and type EXIT when finished.
Remove the System Repair Disc.
Shutdown your computer.
Power on your computer.

Read other 5 answers
RELEVANCY SCORE 60.8

I am writing a VBA macro in Excel and have hit a wall. I am trying to get excel to open a command prompt and make it execute a command. The problem I am having is if I try to do anything but open another program, it throws an error back at me.

I can open the command prompt using:
Code:
Call Shell("cmd.exe" & dosCmd, vbNormalFocus)
I can also open Acrobat which is the program I need using:
Code:
Shell "C:\program files\adobe\acrobat 9.0\acrobat\acrobat.exe", vbNormalFocus
However if I simply wanted to open a PDF file, I have the code to that without opening a command prompt.

I need to open the PDF document on a specific page, and to my knowledge the only way to do this (apart from manually) is to use the command prompt. However I have no idea how to get VBA to put the command in the command prompt, hit enter and then close the prompt.

There are 2 commands that need to be executed in DOS (I'm not sure if there is a way to combine the commands)

They are:

Code:
cd c:\program files\adobe\acrobat 9.0\acrobat
and

Code:
start acrobat.exe /A "page=10=Open Actions" "M:\Full Scores\allegro.pdf
These open the pdf document called allegro on page 10.

I am completely stuck. Out of ideas. I've searched the length and breadth of the internet and can find nothing to point me in the right direction. So I was hoping one of you fine people could. Thank you so much, James
 

A:Solved: VBA Macro that opens the Command Prompt and executes a command

Read other 8 answers
RELEVANCY SCORE 60

Hello everyone

Recently a problem has arisen with my system.

Previously I have been doing work that requires me to unplug my network connection and I need to check my IP address each time I plug it in again. I guess it's not set for static IP.
Anyways to do this I usually go into Command Prompt and type 'ipconfig'

Now however I just get "'ipconfig' is not recognized as an internal or external command, operable program or batch file".

The directory is the same as its always been, I can change it but it doesn't seem to matter what it is.

I've checked many other posts and is there something possibly wrong with my PATH variable? I used the command 'echo %PATH%' and it works, the list it gives is very garbled however.

I'm not sure what might have made this problem arise, but I would greatly appreciate any help.

Thanks!
 

A:Solved: Command Prompt Error - 'command' is not recognized...

Read other 15 answers
RELEVANCY SCORE 60

Hello,

I'm trying to split a .flv file by using flvparse, which is a Windows-only, command-line interface tool. I did get through to the directory by following instructions posted on another forum, however, command prompt doesn't seem to recognize the the .exe file. I'm an absolute novice at this, any help would be really appreciated!

Attaching a CP s/s, and here are the instructions I'm trying to follow (copy pasted from the forum)

FLVPARSER

For trimming the beginning and/or ending of videos, you can use FLVParser (http://dev2.avacast.com/FLVparser.zip ).
FLVParser is a Windows-only, command-line interface tool. After you unzip it, move its folder to C:\ for ease of use. Also for ease of use, copy/move the .flv file you wish to edit into the FLVParse folder.
To make edits, you need to know the in and out points where you want the edits. Use FLVPlayer to find these points. FLVPLayer only lists times in total number of seconds, not HH:MM:SS, but don't worry, FLVParser can handle that. In the FLVParse directory create a new blank text file called: CuePointFile.dat
This is the file FLVParser uses to edit from. Open it in NotePad, and enter the in point and out point, separated by a single blank space, like so: 2525 5150
Save, and close the file. Open up the command line interface and go to the FLVParse directory: cd C:\FLVParse
In the command line, enter this to edit the flv:
flvparse.exe FileToSplit.flv CuePointFile.dat
Your file will be split into ... Read more

A:Command Prompt doesnt seem to recognize the command line!!

You are using the basic cmd, try in elevated mode
Elevated Command Prompt - Windows 7 Forums

However looking at you screen shot, you may have to check the command over carefully. There does appear to be an error in the command. With my eyes, it is difficult at times to pick out the subtle shades of difference.

Read other 1 answers
RELEVANCY SCORE 58.8

Hey guys.

Ive been trying to figure out how to make a command prompt run a command line as soon as the box comes up.

I need this to happen all from one command line. A command prompt needs to open with "echo hi" being ran as a command line.

Any ideas?
Thanks

A:Make a command prompt run a command as soon as it opens?

Hello Fmjc001,

You could create a BAT file for this. Just type in the commands into a TXT file, then rename the file extension to BAT. When you run the BAT file it will run the commands in a command prompt automatically.

Hope this helps,
Shawn

Read other 11 answers
RELEVANCY SCORE 58.8

I have Windows XP on my computer, and when I try to ping something through the command prompt (command.com), this shows up:

C:\WINDOWS\system32\command.com
The NTVDM CPU has encountered an illegal instruction.
CS:0f23 IP:010c OP:c4 f6 06 a9 02 Choose 'Close' to terminate the application

Running tracert also has the same problem.
If I try running ping or tracert through cmd.exe, it stalls and doesn't do anything. I have to close the program because it doesn't respond.
I can use ipconfig in both cmd.exe and command.com. Do I have a virus on my computer, or is there a way to repair the command prompt? I've attached a HijackThis log file.

Logfile of HijackThis v1.99.1
Scan saved at 6:47:15 PM, on 1/18/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\system32\spoolsv.exe
C:\WINDOWS\System32\drivers\CDAC11BA.EXE
C:\WINDOWS\Explorer.EXE
C:\WINDOWS\system32\cisvc.exe
C:\WINDOWS\System32\CTsvcCDA.EXE
C:\Program Files\Cisco Systems\VPN Client\cvpnd.exe
C:\Program Files\Common Files\McAfee\HackerWatch\HWAPI.exe
C:\PROGRA~1\McAfee\MSC\mclogsrv.exe
C:\PROGRA~1\McAfee\MSC\mcupdmgr.exe
c:\program files\common files\mcafee\mna\mcnasvc.exe
C:\PROGRA~1\McAfee\VIRUSS~1\mcods.exe
C:\PROGRA~1\McAfee\... Read more

A:Solved: MS-DOS Command Prompt Problem (cmd.exe, command.com)

Read other 16 answers
RELEVANCY SCORE 58.8

Hey guys,
Earlier my internet was being slow so I went to do a ping test and CMD proceeded to tell me that it didn't reconize the command. I have done countless pings before and this was weird. If i run CMD from the run bar by typing in its Dir then i can run ping and all the other commands or if i change the dir to sytem32 and run the command it works as well. I'm thinking that the paths for the cmd files have somehow gotten messed with and I'm not really sure how to change those so any advice on how to correct those paths would be greatly appreciated. Thanks

A:Command prompt won't execute commands from cmd or command

If you go Start - type cmd then right click on cmd to select Run as administrator you can run a system file check with the cmd sfc /scannow

With Win 7 you don't need to use the Run box.

Read other 6 answers
RELEVANCY SCORE 58.8

Hi All,

I'm running a program that parses .csv files and then changes them into ._OK files. This process takes longer when there are a large number of *.OK files in the folder where the files being converted are located. To remedy this I occasionally manually run this command:


Code:
del *._OK
While pointing at the proper folder.

Is there a way to have this command continuously run, kind of like out ping -t [IP ADDRESS HERE] continuously pings a certain IP address?

Regards,

Dan

A:Command Prompt: Repeat del command continuosly

Quote:
I'm running a program that parses .csv files and then changes them into ._OK files.


I take it then the conversion program will not accept an output folder other than the current or working directory? More detail what you actually do with the output files might be helpful.

Read other 2 answers
RELEVANCY SCORE 58.8

when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line:
'ipconfig' is nto recognized as an internal or external command, operable program, or batch file

I am trying to find out the information I need in order to set up a static IP Address for port forwarding

A:Command Prompt command <ipconfig> not working

In order to set up a static ip address internally, you'll need to either tell your router or your computer not to use automatic DHCP and instead to use a specific IP address.






Quote:
Go to the System Tray (Notification Area)
Click the Network icon
Click 'Open Network and Sharing Center'
Click the 'Change adapter settings'

Selec the connnection for which you'd like to use a static IP
Right click it
Click 'Properties'
Select 'Internet Protocol Version 4 (TCP/IPv4)'

Select 'Use the following IP address':

In the 'IP Address' field, insert the IP you'd like to use.

Note: The IP you use must be within the router's list of acceptable IP addresses. It's usually a list between 192.168.1.100 to 192.168.1.255


http://social.answers.microsoft.com/...f-3656805f1844

If you're trying to set up an external static ip you'll need to pay your isp extra for one.

Read other 9 answers
RELEVANCY SCORE 57.2

Re: Windows 7, SP1, Home Premium, 64-bit

When using Q-Dir, a 4-pane Windows Explorer replacement, I can manually move desktop files/icons between the all users a/c and my account. I created a batch file to do this, and it works fine when clicked from within Q-Dir. It does not, however work from a command prompt, even an elevated command prompt.

At the elevated command prompt, even the Dir *.* command results in a file not found error message, even though files are actually there (and are not hidden files).

This is the simple batch file:

rem C:\Users\All Users\desktop = C:\ProgramData\desktop
Move C:\ProgramData\Desktop\*.* C:\Users\ALLAN\Desktop\
@echo off

Incidentally, changing the permissions, to allow full control in the properties/security settings for the All Users desktop does not have any effect with respect to this issue.

Does anyone know why the elevated command prompt cannot access/find the files in the All Users desktop ("File not found" error message)?

Again, I can do this via my Windows Explorer replacement, so it is not really a problem, but it has me baffled; thus my request for help.

Thanks.

Allan

A:All Users Desktop Files "Not Found" (Dir *.*) in Elevated Cmd Prompt

The common desktop is located here:
C:\Users\Public\Desktop
C:\ProgramData\Desktop and\or C:\Users\All Users\Desktop is not where you should be working.

Read other 9 answers
RELEVANCY SCORE 57.2

I used the info in Elevated Program Shortcut without UAC Prompt Tutorial and it soon dawned on me that the applications seemed to be taking a long time to run.

Than the penny dropped - Scheduled Tasks run at priority 7 by default (which is lower than directly run applications typically run at) and the Task Scheduler does not directly provide a way to set priorities. So I Exported each task [that I had added] (as XML), deleted each task, edited the XML to change priority to 6 (which makes all the difference) and then Imported the tasks again. Problem solved.

The point of this posting is really to suggest that the Elevated Program Shortcut without UAC Prompt Tutorial could mention the priority issue and its solution.

A:Setting Priority with "Elevated Shortcut without UAC Prompt Tutorial"

Hello Batch,

If you go directly to the comment section of the tutorial you mentioned. You can make your suggestions there to the tutorial's author.

John

Read other 4 answers
RELEVANCY SCORE 56.8

My PC has been acting up recently. It's been running slower than usual, my games that I play are randomly crashing, and there are a couple of really random events happening.

1) Command Prompt is missing from Start Menu
2) "Run" command is missing from Start Menu
3) Internet Explorer missing from Start Menu, and every time it is opened, it pops up with the window that asks you to set up IE8 (the one that is supposed to open the very first time you start IE8)
4) Mozilla Firefox asks me to make it my "default brower" (to which I click yes) every time I open it
5) Some programs will not install correctly

I am running Kaspersky Internet Security 2010. It has popped up saying that it has detected trojans but blocked their access, and has no trace of them inside the application, as in there are no logs stating which ones it blocked, so I can't share those with you.

Any ideas as to what is going on? I also ran Webroot System Analyzer, and that came up clean, but there is obviously something going on with the symptoms listed above. Can anyone help me out? I attached a logfile of a Hijack This scan in case that helps.

SYSTEM SPECS:
Intel Core i7 940
6 Gb DDR3 1600 Mhz Corsair Dominator RAM
2x 1.5 Tb HDDs
32 Gb SSD
2x EVGA GTX 285 FTW Editons
Windows 7 Ultimate

A:Missing Command Prompt, Run Command, and Others

Hello and welcome to TSF.

We want all our members to perform the steps outlined in the link given below, before posting for assistance. There's a sticky at the top of this forum, and a
Quote:




Having problems with spyware and pop-ups? First Steps




link at the top of each page.

Please follow our pre-posting process outlined here:

http://www.techsupportforum.com/f50/...lp-305963.html

After running through all the steps, you shall have a proper set of logs. Please post them in a new topic, as this one shall be closed.

If you have trouble with one of the steps, simply move on to the next one, and make note of it in your reply.

Read other 1 answers
RELEVANCY SCORE 56.8

When I type:
start funny picture.jpg
in the command prompt it says cannot find file 'funny' If I say:
start "funny picture.jpg"
it only opens another command prompt with funny picture.jpg as the window's title.

How can I open a file with a space in the name?

A:Command Prompt - start command help?

Hi,
Welcome to TSF.

Type the command as follows:

Start "" "Funny Picture.jpg"


The first set of quotes ("") sets the title (for the window, this is what the start command expects for quotes normally), then the second set around the file name allows the space.

Paul

Read other 1 answers
RELEVANCY SCORE 56.8

ok here is what i am trying to do i have software called btprox which lets me lock my computer when my phone goes out of range of my desktop using bluetooth. what i want it to do though, is when i come back to my desktop i want it to unlock automatically instead of just having to put my password in. (i know im lazy but really i just want to do it cause i think its cool) now this software lets you pick programs to run instead of the lock command and stuff. what i want to know is, is there a login command for the command prompt? cause then i could just set it to run a batch file when i come in range and it will log me in.

A:command prompt logon command?

Hi -

The Task Scheduler may be of some help --> http://www.sevenforums.com/tutorials...-new-task.html

I would urge caution in 3rd party software designed to circumvent Windows 7 security and power functions. You may come home sometime and find yourself locked out of your system and a reinstall of the OS to be the only viable option.

Good Luck to you.

Regards. . .

jcgriff2

.

Read other 2 answers