Win32_BootConfiguration returns an empty caption filed

L

Lei_Zhang

To detect the boot disk, I run following power shell script copied from Win32_BootConfiguration class on Windows 2012. I ran my power-shell windows as administrator. Yet $boot.caption returned me an empty string, while $boot.lastdrive gave me a valid value "c". This only happens to one of my servers.

What would be the cause? Any help is appreciated. Thanks!

# Get Boot configuration from WMI $boot = Get-WMIObject Win32_BootConfiguration # Display information

"Caption : {0}" -f $boot.caption

Continue reading...
 
Back
Top Bottom