Reputation: 1
I have a Powershell script that runs everyday at a set time to return some ShadowCopy statics. For some reason one of your servers is returning a blank system name when ran under the command:
GWMI Win32_Volume | Select SystemName
The computer does have a set name like the others in the script. I was wondering if anyone knows a way to set this property name on the computer environment.
Upvotes: 0
Views: 901
Reputation: 36297
Use one of the alternative properties __Server
or PSComputerName
. Either should get you the result you want.
Upvotes: 1