locked
Find "Boot Server Host Name" (Option 066) from within Windows Client RRS feed

  • Question

  • The value for "Boot Server Host Name" (Option 066) is different on each possible subnet a Windows Client may be on, or may not exist at all.

    Rather than hard-coding the possible PXE server addresses for every subnet into a script, I want to run a script from a Windows Client that returns the "Boot Server Host Name" (Option 066) contained within the DHCP scope for whatever subnet it may be on.

    Is this possible?  Preferably from .vbs

    • Moved by Bill_Stewart Monday, May 18, 2015 5:15 PM This is not "scripts on demand"
    Wednesday, December 17, 2014 10:13 PM

Answers

  • this guy has put some effort in creating a script that reads and translates the DHCP options values from registry.

    i've tested it and seems good.


    MCP/MCSA/MCTS/MCITP

    • Proposed as answer by MK-Maddin Monday, January 5, 2015 4:52 PM
    • Marked as answer by Just Karl Friday, May 22, 2015 7:47 PM
    Thursday, December 18, 2014 2:44 PM

All replies

  • DHCP automatically sets that on the client.  Why not just use the current setting?

    ¯\_(ツ)_/¯

    Wednesday, December 17, 2014 10:45 PM
  • this guy has put some effort in creating a script that reads and translates the DHCP options values from registry.

    i've tested it and seems good.


    MCP/MCSA/MCTS/MCITP

    • Proposed as answer by MK-Maddin Monday, January 5, 2015 4:52 PM
    • Marked as answer by Just Karl Friday, May 22, 2015 7:47 PM
    Thursday, December 18, 2014 2:44 PM
  • Hmmm, now to capture the output of the .ps1 so it can be used by the .vbs that launched it.

    Tuesday, January 27, 2015 10:33 AM