Returns boot configuration information for a computer.
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_BootConfiguration")For Each objItem in colItemsWscript.Echo "Boot Directory: " & objItem.BootDirectoryWscript.Echo "Configuration Path: " & objItem.ConfigurationPathWscript.Echo "Description: " & objItem.DescriptionWscript.Echo "Last Drive: " & objItem.LastDriveWscript.Echo "Name: " & objItem.NameWscript.Echo "Scratch Directory: " & objItem.ScratchDirectoryWscript.Echo "Setting ID: " & objItem.SettingIDWscript.Echo "Temp Directory: " & objItem.TempDirectoryNext
This is a VB Script, this can be used by saving the file in .vbs file