【原创实践】使用 Docker 部署 IntelliJ IDEA(linuxserver/intellij-idea)完整指南
2025/12/21 3:49:53
该脚本借助 WMI(Windows Management Instrumentation)来获取指定卷的Win32_DiskQuota类的所有实例,接着展示(或者写入文件)每个类的选定属性。
Dim cQuotas, oQuota, sOutput Verbose " Connecting to WMI on " & sName Set cQuotas = QueryWMI(sName,"root\cimv2","Select * From Win32_DiskQuota","","") If Not IsObject(cQuotas) Then WScript.Echo " *** Couldn’t connect to WMI on " & sName Else For Each oQuota In cQuotas sOutput = sName & "," & oQuota.QuotaVolume & "," & oQuota.User & "," & oQuota.DiskSpaceUsed & "," & oQuota.Limit & "," & oQuota.WarningLimit & "," & oQuota.Status