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: BCDEDIT - How to Use


22 Jan 2009   #109
limneos

Windows 7 RC 7100 32bit/64bit
 
 
BCDEDIT - How to Use

How to Use the BCDEDIT Command Line Tool




My System SpecsSystem Spec
05 Dec 2010   #110
paul1149

Win7 Ult. 32bit
 
 
BCDEdit not recognized

I'm on Windows 7 Home Premium 64b, as an administrator. In a command window I keep getting:

'bcdedit' is not recognized as an internal or external command,
operable program or batch file.

Is this a Pro tool?


My System SpecsSystem Spec
05 Dec 2010   #111
Dwarf

Windows 8.1 Pro RTM x64
 
 

Strange. You should be able to access that no matter which edition of Windows 7 you have. Check to see if that file exists on your system. It is located in C:\Windows\System32\bcdedit.exe

BCDEDIT - How to Use-capture.png


My System SpecsSystem Spec
05 Dec 2010   #112
paul1149

Win7 Ult. 32bit
 
 

Yes, it is there. Here's a path copy: C:\Windows\System32\bcdedit.exe. I just tried the full path in the command window, and I tried the full file name. Nothing. I definitely am the administrator here.

I had another odd command window occurrence yesterday. There was a file (rstrui.exe - system restore) that I could plainly see in Explorer, but no DIR command, with Archive switches, would show it in the command window. Let me see if that's happening here too...

Indeed, this seems to be the problem. Here's the output:

Code:
C:\Windows\System32>dir bc*

 Directory of C:\Windows\System32
07/13/2009  08:11 PM            80,896 bcrypt.dll
07/13/2009  08:17 PM           249,680 bcryptprimitives.dll
               2 File(s)        330,576 bytes
               0 Dir(s)  146,007,564,288 bytes free

C:\Windows\System32>dir /a:s bc*
 Directory of C:\Windows\System32

File Not Found

C:\Windows\System32>dir /a:h bc*
 Directory of C:\Windows\System32

File Not Found

C:\Windows\System32>
For some reason my command window is not seeing system files.
My System SpecsSystem Spec
05 Dec 2010   #113
Dwarf

Windows 8.1 Pro RTM x64
 
 

Very strange. This is what I get:

Name:  Capture.PNG
Views: 3300
Size:  42.2 KB


My System SpecsSystem Spec
.


05 Dec 2010   #114
paul1149

Win7 Ult. 32bit
 
 

Ok, here's my problem. I just opened an elevated Command Window, and now I can see the system file without even using the a:s switch, just as you can. I don't understand why I need to take that step, however, since I am an administrator (and I just double-checked that). I've never had any problem doing anything via the command window before yesterday.

Thanks,
p.
My System SpecsSystem Spec
05 Dec 2010   #115
Dwarf

Windows 8.1 Pro RTM x64
 
 

So you can now access the file?

This is to do with privileges, and is a good reason for not disabling UAC. Although you may be running as an Administrator, you are only running with standard privileges. In order to run as a true Administrator, you need to elevate.

Think of this analogy. You and several others work in an office (representing standard privileges), inside which there is a locked cupboard (representing elevated privileges). Everyone has a key to get into the office, but only you (as an Administrator) have a key for the locked cupboard. If you wish to access the cupboard, you can simply unlock it (this is the equivalent of confirming that you want to run in elevated mode). For the others, who do not have the key, they need to ask you first (equivalent to entering a name and password of an administrative account when prompted).
My System SpecsSystem Spec
05 Dec 2010   #116
paul1149

Win7 Ult. 32bit
 
 

Yes, I have command line access to the file now. What I don't understand is that I've had the machine for three months and have done countless installations and work under the hood, including via the command line, and never once did I have to elevate the window. And I've changed nothing in privileges in all that time, as I'm aware.

I wonder how this affects the command window in Safe Mode. That is where I would want to invoke System Restore in a dire emergency. There must be a way to elevate the window there too.

IAC, thanks for your help.

p.
My System SpecsSystem Spec
05 Dec 2010   #117
mjf

Windows 7x64 Home Premium SP1
 
 

I suppose it depends on the levels to which you can muck the system up. You can do a fair amount of mucking up with bcdedit. There is a level above elevated command prompt (hidden administrator) where you can do even more mucking up or fix things of course.
My System SpecsSystem Spec
20 Dec 2010   #118
tyee

Win7 32 bit and WinXP 32 bit
 
 

Greetings
First post here! I have installed a dual boot with WinXP and Windows 7 and it's working fine. I want to backup my BCD using bcdedit. I start my Windows 7 install DVD. Hit Shift F10 to get command prompt, enter bcdedit and I get that response that the file cannot be found. This is with the boot DVD!! Shouldn't we be at elevated prompt with the DVD?

When I was setting up that dual boot a few weeks ago I was using bcdedit just fine!
My System SpecsSystem Spec
21 Dec 2010   #119
tyee

Win7 32 bit and WinXP 32 bit
 
 

Well, now I am in big trouble. I tried imaging my main HD to external drive and it worked. Tried to boot from it into WinXP and it worked. Tried to boot into Windows 7 didn't work. I wanted to try another imaging program but things got so confusing, I had more than one bootable HD attached at once and now I can't get into any windows system. It says ntldr missing. I've disconnected all other drives from the machine and I've started the Windows 7 install disk to repair. I entered the command mode and entered "bootsect /nt52 c: /force /mbr" just to get the WinXP part working again and now it boots. When I get to the blue screen to sign on, there is no sign on button to click to enter my password at all. Nothing happens, can't click anything.

So...I started up the WinXP install CD, got into the recovery console, it found the c:\windows partition, but now wants the admin password which I type what I'm using currently and it doesn't take. Now what?? Can I somehow forcibly reset the admin password. I'm stuck.
My System SpecsSystem Spec
Comment

 BCDEDIT - How to Use




Tutorial Tools



Similar help and support threads for2: BCDEDIT - How to Use
Windows 7 Tutorial Category
BCDEDIT settings General Discussion
Solved BCDEDIT Question General Discussion
BCDEDIT confusion Installation & Setup
bcdedit problem Installation & Setup
Help me configure my bcdedit ! Installation & Setup
bcdedit Installation & Setup
BCDedit Help Installation & Setup

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 11:21 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33