PowerShell and WMI to modify BIOS settings

Hello Scripting Guys!!
I am trying to change BIOS settings for HP DC8300 Desktop using PowerShell /WMI. By going though the HP Client Management Interface technical white paper from HP, which describes the class and method to accomplish this task, and research. I came to know about
the following command.
$AfterPower = gwmi -computername [PCName] -Namespace root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface
$AfterPower.SetBIOSSetting ('After Power Loss', 'Off', 'password' )
The command runs successfully, however it displays the following output with the return code 6
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
Return : 6
The Return Code  6 is Access Denied
This happens even when I run this script targeting my local machine. I am runing the PoweShell as Administrator  also checked the WMIControl security setting  from "Services and Application"
under Computer Management Concole which is in order.
Any help would be highly appreciated.
Cheers!!!!
Faraz Amjad

Hi Guys,
After spending a complete day and going through different forums and HP's documentation (HP CMI technical whitepaper), I finally got this working by the following script. 
$AfterPowerr= Get-WmiObject -computername "PCNAME" -Namespace root/hp/instrumentedBIOS
-Class HP_BIOSSettingInterface 
$AfterPower.SetBIOSSetting('After Power', 'On ' , '<utf-16/> Password')
Password will be your current password and in plain text.
Sharing is Caring
Faraz Amjad

Similar Messages

  • Portege R600 - Modify BIOS settings out of windows.

    Hi,
    I've got a question. Is there any possebility to modify the BIOS settings of a R600 with a tool?
    Best would be something what uses a command line // could be opened with parameters,
    I would like to change round about 100 machines remotely --> I definitely would need a tool for that.
    Thank you!

    Hm...
    but I read about the possebility to do that on Toshiba notebooks while reading through the net.
    And I can imagine that one of the many many tools which Toshiba is providing is able to do so...
    In addition to that I know that its possible - another manufacturer provides a tool like that,
    what is exactly able to do what I want. But only for the specific use on their machines.
    Is there really no way?

  • The code feature and a list of BIOS settings

    I saw a user on this board post their entire BIOS screen and all of it's settings. How did they do that? They never got back to me with an answer?

    digital Camera  
    I must admit i was suprised & suitably impressed when I 1st saw it, Thought it was a Dos utility or something
    It's sweet i've used it now it makes things a lot easier.

  • Install new GPU and PSU and am stuck at BIOS splash

    I purchased an HP a bit over two years ago (Summer of 2012). The computer is an h8-1240t. I had selected the i7 3770 CPU, 300W PSU, 8gb RAM, and a GeForce GT 530. 
    I am replacing my card with a MSI GTX 970 GAMING 4G card as well as a new 500W Corsair CX500M power supply. 
    The install went fine. I made sure all devices were firmly seated in the slots. When I was finished I powered up my computer and found that I was getting stuck on the BIOS splash screen where it tells you to press 'Escape' for options. If I leave the power on it will eventually make a few intermitent beeps and eventually go to a blank screen with a dash in the upleft corner. 
    If I am quick enough, I can press 'Esc' and get to the BIOS settings, but then the computer becomes stuck again and same thing as above happens. 
    After having those issues I put the older GT 530 card back in and everything powered up as normal. 
    Is this possibly an issue with my motherboard? Here is a CPU-Z screen shot http://i.imgur.com/VDaLmlZ.jpg
    Any help will be appreciated as right now that $350 card is as good as a paperweight hah.

    Yes it's an 8 thing. The only solution I have seen is to flash the video BIOS on the video card. Video card manufacturers are aware of this issue and many have made a video BIOS available which will make the card work with older systems. You would obviously have to do that on another computer. Also some video cards have a hardware switch on the PCB board that lets you switch the video BIOS from true UEFI (Win8) compatibility to legacy compatibility. Look carefully for such a switch. 

  • Satellite C870-12E - BIOS settings greyed out

    I recently noticed that i cannot change settings in BIOS anymore, almost all settings are greyed out. I'm not sure when this happened, maybe after updating to BIOS version 1.6 but it could also happened after upgrading to Windows 8. I'm just not sure. What i do know that it was ok before.
    What i did notice is that in the Post-screen (where you can use F2) on the lower right side of the screen there is a sort of Power button Logo which i never noticed before.
    All efforts to push whatever buttons falied to edit settings in the BIOS.
    Hope someone can help out.
    Thanks...

    Tried it with and without supervisor password.
    In the first post i mentioned the Powerbutton like logo with blue dots around it in the first boot screen. The strange thing is that my wife has exactly the same laptop and version 1.6 BIOS but she doesn't have that logo and can edit the BIOS settings without any problem.
    So i keep wondering if that logo has something to do with it. Is it asking me to press and/or hold a certain key combination? I've tried anytihing i could think of but nothing works.
    I also tried switching Fast- and Normal boot once again with no result.
    Even with Fastboot enabled i still get the "F2" screen :(
    Problem remains that under any circumstance i can enter the BIOS but not change anything but the user password.

  • List UEFI Bios Settings Using PowerShell

    Create a file containing the uefi bios settings with values on your desktop by running this PowerShell script:
    gwmi -class Lenovo_BiosSetting -namespace root\wmi  | select currentsetting | where Currentsetting -ne "" |
    select @{label = "Name"; expression = {$_.currentsetting.split(",")[0]}}, @{label = "Value"; expression = {$_.currentsetting.split(",")[1]}} |
    Sort Name | ft -auto > $env:userprofile\desktop\"UEFI BIOS Settings.txt"

    Hi jasgud_RETSD -  Have you tried using PSEXEC?   PSExec lets you run items using the system account.  You can download psexec from the Microsoft page for Sys Internals.   Command - psexec \\localhost -s -h powershell.exe -executionPolicy bypass -Noninteractive -Noprofile -file %script%.ps1 -password %password% -file LockBIOSSetting-enable.txt -s = Run as System -h = no profile-accepteula - accepts eula I ran the your command (changing the powershell name) and confirmed you can call powershell.exe and use powershell flags (nointeractive -noprofile).   Once this to keep in mind when using psexec - the command being called (powershell.exe in this case) must be located in a directory referenced in path variables.  psexc can be executed multiple clients at once by specifying a txt file with the names of the clients you wish to target.  Multiple Clients PSEXEC @domainclients.txt -s -h powershell.exe -executionPolicy bypass -Noninteractive -Noprofile -file %script%.ps1 -password %password% -file LockBIOSSetting-enable.txt I am more insterested in getting the bios settings setup for deployments   Thanks Jeff Ragucci  

  • BIOS Settings unavailable to modify in Administrator Account

    BIOS Settings unavailable to modify in Administrator Account.
    When the user enters the BIOS as an administrator, he will not be able to make any changes in the BIOS but the Guest account will let him make all the changes.
    Scenario:
    If you enter the BIOS as Guest
    You will be able to access all the BIOS Options.
    If you enter as the Administrator using the HP client security credentials or windows credentials.
    The PC will not allow you to change any BIOS settings.
    Solution:
    Enter the BIOS as a Guest and setup a BIOS Administrator Password.
    Go to Security>”Setup BIOS Administrator Password”. The password needs to be 8 characters long.
    After the Password is set, you will have to save changes and exit.
    The PC will now restart. You can press F10 to enter BIOS again and will see the new BIOS login page.
    Select BIOS Administrator account highlighted in Blue.
    Enter the BIOS Administrator Password to access BIOS settings.
    You will now be able to View and Make changes in the BIOS
    Reason:
    HP client security adds an extension to the UEFI BIOS and enables BIOS protection.
    If the user has not set a BIOS password, the Client security creadentials will treat the Windows user account as a Guest account but since the account is already assigned to a user, it will be listed as an Administrator account rather than a User account.
    The actual open account will then be treated as an Admin account but is listed as a Guest Account.
    Once the user installs a BIOS Administrator Password, the Client security program will know which account to be considered as an Admin account.
    In the Image below, we have
    BIOS Administrator Account: modifiable
    Windows User account: Restricted
    Guest Account:View Only
    I'm an HP Employee.
    The opinions expressed here are my personal opinions, not of HP.
    Click on Thumbs up if my post helped you.
    Make it easier for other people to find solutions, by marking an answer “Accept as Solution” if it solves your problem.

    Maybe you need to allow 3rd-party content at http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.htm l
    Also try to disable Hardware Acceleration under Flash Player Settings.

  • PNP OS and Bios settings

    I thought I was understanding the settings for the bios settings for a Windows ME and 98 series for PNP OS should be set to yes.  And Windows NT series (2000, NT 4.0, 2003), should be set to no.   Now my next question is this.  If you have Windows XP, What should the settings be set at.  It is NT based, but maybe it should be set to yes.
    Opinions anyone?

    The setting is there to determine if the bios will assign IRQ's or if you enable it the operating system will assign then as it see's fit the bios configures critical devices, but the operating system does the res
    If a bios supports ACPI then the setting is revelant anymore windows 98 on up will use ACPI to assign IRQ's to devices so PNP OS isn't needed if the bios supports ACPI and the operating system does. I'd leave it at no though really since it isn't used much anymore you can leave it on or off.
    Most boards from maybe 1999 and on up will support ACPI just in case your wondering.

  • In Depth guide to BIOS settings. and Mouse/UEFI woes

    I'm wondering if there is any on-line in-depth guides to the BIOS settings. I have a P67A-GD65 B3 and the documentation is pitiful. I am not interested at this point in overclocking, but I do want to optimize BIOS to get maximum performance and boot times. I want to disable any unnecessary items (such as 1394 support and Marvel SATA controller) and disable all that green energy stuff.
    Also, I just flashed my UEFI from a  V1B to V1E, and now, my mouse in BIOS is worthless. It jumps all over the screen and all settings need to be made with the keyboard. My mouse is just a Microsoft Natural wireless laser. It worked fine in V1B.
    My Specs are:
    CPU: i7-2600K
    RAM: 8Gb Corsair
    Video: GeForce GTX 560 Ti
    Tom

    Quote
    I'm wondering if there is any on-line in-depth guides to the BIOS settings.
    A search of the net may point to some. Flash back to v1.B unless v1.E addressed a specific reason for flashing in the first place. Recommend to contact MSI Tech Support & advise them of the issue experienced with v1.E; http://support.msi.com/ 

  • P35 Neo2 BIOS Settings to run Dual Boot SATA and IDE HD's

    Hi,
    I was having intermittent problems with a Gigeabyte so upgraded M/B.
    I have an IDE "caddy" with 2 Dual boot HD's (Linux Grub booting XP on sda1 and Fedora9 on sda2), and had no problems with either HD's on old M/B.
    The old M/B also had  SATA sockets which I installed a 250GB drive as my main setup.  Dual boot again with same setup.  I set the SATA to "auto" and it detected and ran when no IDE caddy was inserted.
    Everything ran OK but I had very intermittent CRC failures that I could not isolate, so I upgrade 2 days ago.
    Without inserting any IDE drives I can boot the SATA drive OK into Linux OK  (it also detects an ext3 partition on a seperate /backup partition so the IDE interface works).
    If I now try and boot the XP on my SATA drive,  I get the dreaded blue screen. 
    I assume this is due to me having XP installed without the AHCI support as detailed in other (long) thread showing how to overcome this problem!?
    I would also like to know if and I can just boot from my IDE drive (with no SATA's connected),   because even though it seems to detect the PATA HD OK,  I cannot get it to boot from either of them!  I know these HD's have not changed as I have checked both of them on the SATA OS and both Logical volumes are still there and the relevant boot flags are both set.
    Even though I have a bit of a complex setup,  this may well be a very simple case of BIOS settings (sorry).
    FYI:
    I have a A7345 IMS V1.8 012408 BIOS and my two IDE drives are both dual boot with XP on the first partition.
    Both Linux partitions are formatted using Logical Volume Management  (LVM).
    Thanks for your time
    Any help/pointers would be appreciated as I am not absolutely sure that the M/B is functional or not.
       

    Thanks for the info,  I am now a bit clearer as to what is happening!
    I removed known good IDE HD from caddie and put it directly on the IDE cable (after removing the old non LVM linux IDE disk that was on it).
    The newly connected HD was initialized OK and I can see both SAT and IDE disks listed with F11.
    On trying to boot from the IDE,  it starts up and decompresses the image,  BUT cannot seem to find the LVM Volume group 03 (which is where my /boot partition is located).
    It then gives in and after a while,  boots back to the SATA OK (where the bootloader is also inside the LVM so I can't see why the LVM IDE disk is a problem but the LVM SATA boots OK).
    I do remember (late last night) trying with just IDE drive and of course it just hung because it did not have any alternative to boot!
    Any other observations/suggestions?
    Apologies its late here and I will not be back for a few hours!
    Regards

  • Without main battery, CMOS checksum invalid.Doesn't keep time and BIOS settings. Backup batt is OK.

    Good morning all,some months ago my dv6-6159sl laptop started to have this problem: WITHOUT MAIN BATTERY (using as desktop replacement with AC adapter only, unplugging from wall outlet when I don't use it) immediatly after power on button pressed, I get black screen error" CMOS Checksum is invalid  .  CMOS reset (502) . " and it restarts with all BIOS settings reset and time reset at 00:00:00 year 2010... The problem appears randomly: for days I don't get it, then I get it once, twice...then everything OK for one, two, many days...and again shows up...and so on... NOTE THAT BACKUP BATTERY CR2032 HAS BEEN REPLACED TWICE (for being sure) AND IS BRAND NEW, AND IS OK: A VOLTMETER SAYS 3,03 V . Tried to update BIOS to last F1.B , tried to revert back to F1.A and previous version (that is: I tried every single available BIOS on support page...)... No luck...Tried to recover BIOS with this procedure: http://support.hp.com/us-en/document/c04126730  ... nothing changed...Tried to recover whole system...Nothing fixed... Notes: hardware hasn't changed , HDD and RAM are OK (tests done). What to do now? Call for repair? Thanks.

    Hello , Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel. I read your post about the BIOS, and wanted to assist you! Here are a few things you can try.  Start with a Hard Reset.   Then try using the HP Support Assistant to install any necessary drivers.  Check the Windows Update as well.  If you are having trouble finding or installing updates, then you can use this site to help: Open the Windows Update troubleshooter
    You can always perform a System Recovery to put the notebook back to its factory settings.  Also, please review the following document, as it may help to resolve the issue for you: HP PCs - HP BIOS Application Selected Is Corrupt or Missing If you are still having trouble, or would like to contact HP Phone Support, you can do so with the following link: http://www.hp.com/contacthp  If you live outside the US/Canada, please click the link below to get the contact information for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html Please let me know if this information was helpful by clicking the thumbs up below.
    Have a great day!

  • X60 factory and recommended BIOS settings?

    Service guy changed some BIOS settings from factory default said it saves some energy and reduces CPU heat. My system overheated, previous service forgot to clean the inside, congratulations.
    So my question is what are recommended BIOS settings for the X60, recommended changes from default? Service guy forgot to tell me what he changed so if I reset I can't get back to the settings he  implemented.
    So preferably I would need the original settings printed, too, so I can compare it with the changes.

    Thanks for the reply.
    The BIOS shows the modules are running at 1333.
    The Weird thing is I had many BSOD problems before I changed the voltage and on SevenForums I was advised to run Run Memtest86+.
    I runned Memtest86+ run a few times for over 8 hours and it showed no errors at all.
    I will make the screenshots asap when I get home tonoght. Below are my system specs:
    CPU: Intel Core i7-860 2899 1156
    Motherboard: MSI P55-GD65
    Memory: 4GB (2 * 2GB): OCZ Platinum Low Voltage OCZ3P1333LV4GK
    Graphics Card: Gigabyte GTX 280
    PSU: Be Quiet dark power pro 750w
    Cooling CPU: Scythe Mugen 2 SCMG-2000, VGA: Stock case: Stock
    Hard Drives: System drive: Intel SSD 80GB 70/250 X25M Data drive: 160GB 10k raptor
    Case: Lian Li PC-p80
    Monitor: Samsung 226BW

  • Best BIOS settings for Kt3 Ultra2 and Geforce4?

    Hi,
    Can someone tell me what the best BIOS settings would be for my KT3 Ultra2 running a Geforce4 ti4200?
    I get crappy scores in 3dMark2001 SE and I have the infamous stuttering/crashing problems in 3D games.  I've tried pretty much every configuration of settings and drivers I can think of.  
    I saw on these forums that the Kt3 Ultra2 can be a bit fussy with GF4 cards.  If someone could post the best BIOS settings for performance and stability I'd be eternally grateful.
    Alternatively, email me at [email protected] with them.
    Thanks in advance

    very very similar as far as i can make out

  • Bios settings, memory and random freezing

    Hi all
    I have a new pc setup.  Problem is that it keeps freezing at random times, either playing a game or listening to music and sometimes just when I surf the net.  It has even frozen IN THE BIOS!! before needing a restart!
    I think that its something to do with the memory settings in the bios, any ideas on what the bios settings should be?? all components are brand new.
    MSI kt6v-lsr
    AMD Athlon XP 1700
    512mb PC400 DDR Ram
    Leadtech GeForce FX5200 128mb
    1 X Maxtor 82gb SATA drive (booting from)
    2 IDE CD drives attached.
    500w PSU
    Currently i have FSB set to 133 as any higher than that and the system wont start, the rest is set to auto.
    Any help much appreciated!! CHeers!

    A nice description about SPD,  its used to automatically detect your ram timings.
    http://www.extremeoverclocking.com/reviews/memory/Crucial_PC3200_4.html
    Now PC3200 is new but some manufacturers have PC4000 ram (500mhz)
    So the technology side should be ok.
    The problem lies with Unbranded and cheap memory modules.
    The novatech ram is unbranded and cheap  .
    You should have gone for a make like Kingston, the HyperX series are very good.
    I would recommend the HyperX PC2700 that I am using, it is capable of running at 434Mhz so if oneday you upgrade to an XP3200+ CPU (200Mhz FSB) you can set the ram to 400Mhz and it is guaranteed to work.

  • K8T Neo FISR2 and Initial BIOS settings

    I’ve have a YANQ… (Yet Another Newbie Question)
    Are there any recommendations for initial BIOS settings for a new build?  I checked southmike’s  “My Unofficial K8t Neo Guide”  and searched posts.  I realize that many settings are based on Memory Configuration, OCing, personal preferences, etc.  But what I’m wondering if there is a basic configuration that has shown to be a good starting point for first time bring up?
    I have not received my board yet, so if this is covered in the manual, sorry for wasting the space
    Any thoughts would be greatly appreciated!

    Hi
    Apart from the Boot Sequence and the SATA / IDE settings you want, the best thing is run at safe defaults, and everything on auto, the mobo is good at selecting the best settings for good performance. And will probably perform better than if you try to tamper.
    There is a lot of things to help you DOT, Core Center, etc.
    cheers
    jocko

Maybe you are looking for

  • Just installed Acrobat 9 and it won't open .pdf files I receive in emails

    Just installed the newest version of Adobe CS4 Design Premium, and have a problem with Acrobat 9 Pro. Using Windows 7 Home Premium OS.  My problem is that with the last 4 emails I've received which have attached PDF files, I'm unable to open those fi

  • Unable to inject XMP Packet info into older versions of Adobe Illustrator files

    Hi, I am trying to inject XMP Packet into Illustrator files of version 9 and below. I am using XMP SDK 4.0 Prerelease. My Code is inserting xmp packet only into Illustrator 10 and above. But with Adobe Illustrator 9 and below.. its not. Can you pleas

  • OS X fails to start-up

    sometimes during start-up, I get to the log-in screen, but then the screen goes grey and says I need to re-start my computer. When I do, it seems to boot up fine the second time, and generally is working ok otherwise. Any ideas on how to fix this and

  • ITunes won't load

    whenever I try to access iTunes I get a message saying- "The iTunes application could not be opened. An unknown error occurred (-69)" how can I fix this problem???

  • Updating XML file

    Hi all, I have this idea of running a program that accepts user's input and replacing some parameters in the xml file. For e.g. The XML file have this tag <database username=@username@ password=@password@> The program would get the user's input and r