I have been put in charge of finding the health and space available for the ShadowCopies that we have on our servers. In this script I use gwmi Win32_Volume | Select SystemName to find the name of the system and to get the other necisary information that I need for the ShadowCopy backups. On other servers I am getting a SystemName returned, but on one server I am getting nothing returned. This is making my HTML table a bit confusing for my boss. I was wondering if anyone knows how I could set the SystemName for this machine. From what I understood this is something that should be pulled from the computer name. I made sure that the computer has the correct name but the command is still returning the SystemName as blank.
Thanks for the help,
Nick