samples/msft_volume-extensions.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
[
{ "MemberType": "ScriptProperty", "MemberName": "PercentFree", "Value": "($this.sizeremaining/$this.size)*100 -as [int]", "TypeName": "Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Volume" }, { "MemberType": "ScriptProperty", "MemberName": "SizeGB", "Value": "($this.size/1GB) -as [int]", "TypeName": "Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Volume" }, { "MemberType": "ScriptProperty", "MemberName": "FreeGB", "Value": "($this.sizeremaining/1GB)", "TypeName": "Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Volume" }, { "MemberType": "AliasProperty", "MemberName": "Name", "Value": "DriveLetter", "TypeName": "Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Volume" }, { "MemberType": "ScriptProperty", "MemberName": "Computername", "Value": "$this.pscomputername.toUpper()", "TypeName": "Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Volume" } ] |