Returns boot configuration information for a computer.

This script was tested using Object REXX 2.1.0 for Microsoft Windows, available from IBM.

Object REXX
Edit|Remove
strComputer = "."
objWMIService = .OLEObject~GetObject("winmgmts:\\"||strComputer||"\root\CIMV2")
do objItem over objWMIService~ExecQuery("Select * from Win32_BootConfiguration")
    say "Boot Directory:" objItem~BootDirectory
    say "Caption:" objItem~Caption
    say "Configuration Path:" objItem~ConfigurationPath
    say "Description:" objItem~Description
    say "Last Drive:" objItem~LastDrive
    say "Name:" objItem~Name
    say "Scratch Directory:" objItem~ScratchDirectory
    say "Setting ID:" objItem~SettingID
    say "Temp Directory:" objItem~TempDirectory
end