user3447850
user3447850

Reputation: 1

SystemName returning blank

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

Answers (1)

TheMadTechnician
TheMadTechnician

Reputation: 36297

Use one of the alternative properties __Server or PSComputerName. Either should get you the result you want.

Upvotes: 1

Related Questions