照着书敲的.留作笔记吧. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace _18获取本机磁盘信息 { class Program { static void Main(string[] args) { GetDiskInfo(); Console.ReadKey(); } [Dl
脚本内容: <# .SYNOPSIS This script grab all ARM VM VHD file in the subscription and caculate VHD size. .DESCRIPTION This script grab all ARM VM VHD file in the subscription and caculate VHD size. .Example .\Get-ArmVMDiskSize.ps1 -subscriptionid xxxxxxx-x
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Management; //在项目->添加引用....里面引用System.Management using System.Runtime.InteropServices; namespace FileSp