Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8058193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:16:40+00:00 2026-06-05T09:16:40+00:00

I am making an attempt at my first powershell script and getting a bad

  • 0

I am making an attempt at my first powershell script and getting a bad parameter error when running the following code. How can I pass the argument to the command in powersehll?

& "bcdedit" /store c:\boot\bcd /set {bootmgr} device partition=C:

EDIT:
The working code for this is:

& "bcdedit" /store c:\boot\bcd /set "{bootmgr}" device partition=C:
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:16:41+00:00Added an answer on June 5, 2026 at 9:16 am

    The curly brackets threw everything off. Putting quotes around {bootmgr} fixed the problem.

    & "bcdedit" /store c:\boot\bcd /set "{bootmgr}" device partition=C:
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been making a first attempt to use fluent nHibernate on an ASP.NET MVC
I'm new to making games with pygame and my first attempt is still a
I have a powershell cmdlet, and I can't seem to get the parameter sets
Okay, sample code first; this is my attempt at communicating what it is that
I'm making my first attempt at experimenting with Comet. I developed a very simple
I'm making a first attempt at embedding an mp3 file on a webpage. I've
I am making a first attempt at playing with the new Tasks, but something
I am making my first attempts at using PowerShell remoting features. I've set up
This is my first attempt on semaphores and threads. I constructed this code from
I'm an old C++ / algorithm guy who is making a first attempt at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.