WMI disk.vbs script not working with one server with partition not formatted

WMI disk.vbs script not working with one server with partition not formatted

I run the script manually :
disk.vbs
 
and i have :
C:\Program Files\AdventNet\ME\OpManager\conf\application\scripts\disk.vbs(64, 6)
 Microsoft VBScript runtime error: Invalid use of Null: 'CStr'
 
The drive letter exist but all data is null.
Access:
Availability:
BlockSize:
Caption: G:
Compressed:
ConfigManagerErrorCode:
ConfigManagerUserConfig:
CreationClassName: Win32_LogicalDisk
Description: Local Fixed Disk
DeviceID: G:
DriveType: 3
ErrorCleared:
ErrorDescription:
ErrorMethodology:
FileSystem:
FreeSpace:














LastErrorCode:
MaximumComponentLength:
MediaType: 12
Name: G:
NumberOfBlocks:
PNPDeviceID:
PowerManagementCapabilities:
PowerManagementSupported:
ProviderName:
Purpose:
QuotasDisabled:
QuotasIncomplete:
QuotasRebuilding:
Size:
Status:
StatusInfo:
SupportsDiskQuotas:
SupportsFileBasedCompression:
SystemCreationClassName: Win32_ComputerSystem
SystemName: xxx
VolumeDirty:
VolumeName:
VolumeSerialNumber:





















 
Sure that it is an exceptionnal case but i loose 2h to find, hope this can help someone.

                  New to ADSelfService Plus?