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 8962345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:06:26+00:00 2026-06-15T16:06:26+00:00

I have a prob calling SetBiosSetting method using WMIC (and also C#) wmic /namespace:\root\wmi

  • 0

I have a prob calling SetBiosSetting method using WMIC (and also C#)

wmic /namespace:\root\wmi path Lenovo_SetBiosSetting call SetBiosSetting “SecurityChip,Active”

wmic /namespace:\root\wmi path Lenovo_SetBiosSetting call SetBiosSetting SecurityChip,Active

wmic /namespace:\root\wmi path Lenovo_SetBiosSetting call SetBiosSetting (“SecurityChip,Active”)

that gives “Invalid Number of Parameters.” error, but why ?

Lenovo BIOS Deployment Guide: http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkcentre_pdf/hrdeploy_en.pdf

Any Idea ?
I cant use VBS or PowerShell …

Thanks,Martin

  • 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-15T16:06:27+00:00Added an answer on June 15, 2026 at 4:06 pm

    Try this in C#:

            ManagementScope scope = new ManagementScope(@"\\.\root\wmi");
    
    
            //
            // Make change(s)
            //
            SelectQuery queryRead = new SelectQuery("SELECT * from Lenovo_SetBiosSetting");
            using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, queryRead))
            {
                using (ManagementObjectCollection queryCollection = searcher.Get())
                {
                    foreach (ManagementObject queryItem in queryCollection)
                    {
                        ManagementBaseObject inParams = queryItem.GetMethodParameters("SetBiosSetting");
                        inParams["parameter"] = "WakeOnLAN,Disable";
    
                        ManagementBaseObject outParams = queryItem.InvokeMethod("SetBiosSetting", inParams, null);
                        string result = outParams["return"] as string; // "Success"
                    }
                }
            }
    
    
            //
            // Commit to BIOS
            //
            queryRead = new SelectQuery("SELECT * from Lenovo_SaveBiosSettings");
            using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, queryRead))
            {
                using (ManagementObjectCollection queryCollection = searcher.Get())
                {
                    foreach (ManagementObject queryItem in queryCollection)
                    {
                        ManagementBaseObject inParams = queryItem.GetMethodParameters("SaveBiosSettings");
                        inParams["parameter"] = "";
    
                        ManagementBaseObject outParams = queryItem.InvokeMethod("SaveBiosSettings", inParams, null);
                        string result = outParams["return"] as string; // "Success"
                    }
                }
            }
    

    The PowerShell for this is:

    (gwmi -class Lenovo_SetBiosSetting -namespace root\wmi).SetBiosSetting("WakeOnLAN,Disable")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My prob in brief: I have two tables namely category and product. table: category
I have a prob. I'm trying to create a custom slugify functiom. I use
I have a piece of code that creates dynamic controls using 2 while loops.
I have a widget: http://designer-depot.com/prob/ When clicking to tab2, the image is not visible.
I have jailbroken my iphone 3g to ios5 using whitedoor tutorial, after this i
This is prob more of a geometry question, but I have an array of
I have made a start to create some training and test sets using 10
I have a page where i'm using edit-in-place... now, after the update it's showing
I have recently made a horizontal and vertical scrolling site using jquery.scrollTo On the
I have a question about the svm_predict() method in libsvm. The README has this

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.