header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
boot.ini script
Last Post 05 Sep 2011 04:50 AM by Hector. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
JoshUser is Offline
New Member
New Member
Posts:4
Avatar

--
26 Aug 2010 04:09 PM
    I am trying to figure out a way to edit the boot.ini file using Powershell script, specifically the SystemStartupDelay option. I have the code to display the option just not sure how to edit it.


    Get-WmiObject -class Win32_ComputerSystem -namespace root\CIMV2
    Marco Shaw (MVP)User is Offline
    Veteran Member
    Veteran Member
    Posts:1642
    Avatar

    --
    27 Aug 2010 04:43 AM
    http://msdn.microsoft.com/en-us/lib...94102.aspx

    "Time to delay before starting the Windows operating system—in seconds. Beginning with Windows Vista, SystemStartupDelay is obsolete because Boot.ini is not used to configure system startup. Instead, use the BCD classes supplied by the Boot Configuration Data (BCD) WMI provider or the Bcdedit command."

    So, use bcedit.exe... Unless, you needed/wanted to run this remotely, then you may need some kind of workaround.

    Marco

    *Microsoft MVP - Windows PowerShell
    https://mvp.support.microsoft.com/profile/Marco.Shaw
    *Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
    *Blog - http://marcoshaw.blogspot.com
    HectorUser is Offline
    New Member
    New Member
    Posts:38
    Avatar

    --
    05 Sep 2011 04:50 AM
    Hi again Macro,

    I too need to find out some information that used to be in the boot.ini but is now part of the BCD.

    I'm trying to find out the boot startup time for windows 2008 r2 servers

    So i was wondering could you get this by running the command "bcdedit" on the console of the remote server
    which shows the current settings.

    then | Out-File to your local machine say \\yourpc\c:\bdc.txt

    then Get-Content -Path c:\BCD.txt

    then Select-String c:\BCD.txt -Pattern "timeout"

    would this be possible?

    If so how can you run a command in the command console of a remote machine and capture the output?


    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer