Solved bcdedit fails in Powershell works in cmd


jimbo45

Well-known member
Pro User
VIP
Local time
8:14 AM
Posts
5,807
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Hi folks
Not sure if this is a recent change in W11 but if I run bcdedit /delete {Identifier} from powereshell I get error not valid and a prompt to run bcdedit /? and the delete command is shown exactly how I did it.

However run the same thing from the command line it works perfectly (bot were run in admin mode).
Is this new in W11 as I prefer in general to use powershell than the standard command processor.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Hi folks
Not sure if this is a recent change in W11 but if I run bcdedit /delete {Identifier} from powereshell I get error not valid and a prompt to run bcdedit /? and the delete command is shown exactly how I did it.

However run the same thing from the command line it works perfectly (bot were run in admin mode).
Is this new in W11 as I prefer in general to use powershell than the standard command processor.

Cheers
jimbo
This is nothing new. When you run a command line file in powershell, powershell is using aliases (not native ps commands) and whilst they are generally compatible, not all commands are fully compatible (bcdedit being a prime example).

I once had a guy slagging me off saying that was bullshit. I screen dumped some examples in reply, and he then accused me of photoshop editing screen dumps LOL!

Simplest solution is whilst in powershell, type cmd to jump to a command shell to run command, then type exit to get back to powershell.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
This is nothing new. When you run a command line file in powershell, powershell is using aliases (not native ps commands) and whilst they are generally compatible, not all commands are fully compatible (bcdedit being a prime example).

I once had a guy slagging me off saying that was bullshit. I screen dumped some examples in reply, and he then accused me of photoshop editing screen dumps LOL!

Simplest solution is whilst in powershell, type cmd to jump to a command shell to run command, then type exit to get back to powershell.
Thanks
I rarely use the cmd console as I prefer Powershell. Your suggestion is great.
Will mark as solved now.

Can't believe how stupid some people are -- why on earth would one want to "Photoshop" a screen dump !!!!! --Well I suppose it takes all sorts. !!

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
bcdedit /delete "{Identifier}"


quote the squigly brackets. It will then accept what is inside the quotes literally. Otherwise it passes only Identifier to bcdedit without the squiglies.

So you will get error message parameter is incorrect or words to that effect.
 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
bcdedit /delete "{Identifier}"


quote the squigly brackets. It will then accept what is inside the quotes literally. Otherwise it passes only Identifier to bcdedit without the squiglies.

So you will get error message parameter is incorrect or words to that effect.
Thank you so much.
The exact answer I've been 'trawling the web' for. I just knew it had to be possible with a slight change of syntax and without jumping to a command window.
Thanks so much again.
Your reply is deserving of the 'SOLVED' Tag :)

Best Regards
Led54
 

My Computer My Computer

At a glance

Windows 10i7 770032 GB DDR4 SDRAMNVIDIA GeForce GT 710 (2 GB)
OS
Windows 10
Computer type
PC/Desktop
Manufacturer/Model
Dell 7050 SFF
CPU
i7 7700
Motherboard
Dell OptiPlex 7050
Memory
32 GB DDR4 SDRAM
Graphics Card(s)
NVIDIA GeForce GT 710 (2 GB)
Sound Card
Scarlette 2i2
Monitor(s) Displays
2x Acer SA270
Screen Resolution
1920 x 1080
Hard Drives
WDC WDS240G2G0A-00JH30 (223 GB)
CT1000P1SSD8 (931 GB)
Keyboard
Logitec
Mouse
Logitec
Back
Top Bottom