查看windows磁盘剩余空间

  • 在powershell中运行Get-Volume
PS C:\Users\Administrator> Get-Volume

DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining      Size
----------- --------------- ---------- --------- ------------ ----------------- -------------      ----
G                           NTFS       Fixed     Healthy      OK                    320.86 GB 372.61 GB
            系统保留        NTFS       Fixed     Healthy      OK                    301.87 MB    350 MB
C                           NTFS       Fixed     Healthy      OK                    881.36 GB 931.17 GB
                            NTFS       Fixed     Healthy      OK                    931.31 GB 931.51 GB

 

hyper-v查看虚拟机启动顺序

PS C:\> get-vm 虚拟机名称 |get-vmbios
VMName            StartupOrder                            NumLockEnabled
------            ------------                            --------------
虚拟机名称        {CD, IDE, Floppy, LegacyNetworkAdapter} False

powershell如何ping

PS C:\Users\xxx> Test-NetConnection 192.168.1.13
ComputerName           : 192.168.1.13
RemoteAddress          : 192.168.1.13
InterfaceAlias         : 以太网
SourceAddress          : 192.168.1.100
PingSucceeded          : True
PingReplyDetails (RTT) : 0 ms



PS C:\Users\xxx> Test-NetConnection 192.168.1.13 -Port 8000
ComputerName           : 192.168.1.13
RemoteAddress          : 192.168.1.13
RemotePort             : 2179
InterfaceAlias         : 以太网
SourceAddress          : 192.168.1.100
PingSucceeded          : True
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded       : True