Get-Variable (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn Get-Module:获取加载的模块列表。Get-Module (Microsoft.PowerShell.Core) - PowerShell | Microsoft Learn Get-RegistryKey:获取注册表项。IGPEInformation::GetRegistryKey (gpedit.h) - Win32 apps | Microsoft Learn Get-ADUser:获取...
通过PowerShell,你可以使用更现代的 cmdlet 来替代 diskpart 命令,且它可以与更多脚本和自动化工具集成。 继续补充一些 diskpart 与PowerShell 命令的对比: 操作diskpart 命令PowerShell 命令 查看磁盘布局 list volume Get-Volume 选择卷 select volume <编号> Select-Volume <编号> 创建简单卷 create volume simple...
PowerShell 复制 Get-VolumeScrubPolicy [-DriveLetter] <Char[]> [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]PowerShell 复制 Get-VolumeScrubPolicy -ObjectId <String[]> [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<Common...
PowerShell Copy Get-Volume [[-DriveLetter] <Char[]>] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]PowerShell Copy Get-Volume [-ObjectId <String[]>] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]...
PowerShell 複製 Get-AzsVolume -ScaleUnit <String> -StorageSubSystem <String> [-Location <String>] [-ResourceGroupName <String>] [-SubscriptionId <String[]>] [-Filter <String>] [-Skip <String>] [-Top <String>] [-DefaultProfile <PSObject>] [-PassThru] [<CommonParameters>] PowerShell ...
Example 1: Get volume configuration for a client computerThis command gets the volume configuration for a computer named Workstation073.PowerShell 複製 PS C:\> Get-WssClientBackupVolume -ComputerName "Workstation073" Related topicsDisable-WssClientBackupVolume...
1. How do I check disk space in PowerShell? You can quickly check the disk space in PowerShell using the Get-Volume PowerShell Command. You can use the -DriveLetter parameter to specify a specific drive to check. The command is also capable of giving information about file system volumes...
PowerShell Copy PS C:\> Get-VirtualDisk -FriendlyName "VDisk01" | Get-Disk | Get-Partition | Get-Volume This example gets the partition and volume associated with a virtual disk. The command gets the virtual disk named VDisk01 and passes the virtual disk to the Get-Disk cmdlet by ...
powershell Copy PS C:\> Get-WssClientBackupVolumeJob -ComputerName "Workstation073" -BackupIndex 1 This command gets information for a backup volume job for the computer named Workstation073. The command specifies the backup index of the job....
PowerShell PS C:\>Get-AppxPackage-AllUsers Example 2: Get an app package for a specific a user This command displays information about Package17 if it is installed in the specified user profile. PowerShell PS C:\>Get-AppxPackage-Name"Package17"–User"Contoso\EvanNarvaez" ...