Get-PSDrive [-LiteralName] <String[]> [-Scope <String>] [-PSProvider <String[]>] [<CommonParameters>]DescriptionCmdlet 會 Get-PSDrive 取得目前會話中的磁碟驅動器。 您可以在工作階段中取得特定磁碟驅動器或所有磁碟驅動器。此Cmdlet 會取得下列類型的磁碟驅動器:計算機上的 Windows 邏輯磁碟驅動器,包括對...
Get-PSProvider:取得一或多個提供者的相關資訊 Get-PSDrive:取得一或多個磁碟機的相關資訊代表提供者的物件類型描述於 !4.5.1。 代表磁碟驅動器的 物件類型會在 •4.5.2中描述。3.1.1 別名別名 是命令的替代名稱。 命令可以有多個別名,而且原始名稱及其所有別名都可以交替使用。 別名可以重新指派。 別名是項目(...
HKLM Registry HKEY_LOCAL_MACHINE I FileSystem I:\ Variable Variable WSMan WSMan 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 依据provider列进行排序,更好看一些 PSC:\Windows>Get-PSDrive|Sort-ObjectProvider Name Used(GB)Free(GB)Provider Root CurrentLocation---Al...
执行命令 Get-PSDrive 一、别名AliasProvider Alias Provider用来标记其他命令的对象,一般用来标记命令中比...
# 获取所有驱动器信息(包括磁盘和移动设备)Get-PSDrive|Where-Object{$_.Provider-like"Microsoft.PowerShell.Core\FileSystem"} 示例9: 复制和克隆分区 powershellCopy Code # 复制分区到新的位置$sourcePartition=Get-Partition-DiskNumber1-PartitionNumber1$targetDisk=Get-Disk-Number2$targetPartition=New-Partition...
PowerShell 可针对适用于 PowerShell 驱动器的命令使用名词 PSDrive。 若要获取 PowerShell 会话中的 PowerShell 驱动器列表,请使用Get-PSDrivecmdlet。 PowerShell Get-PSDrive Output Name Provider Root CurrentLocation --- --- --- --- A FileSystem A:\ Alias Alias C FileSystem C:\ ...And Settings...
Activity to invoke the Microsoft.PowerShell.Management\Get-PSDrive command in a Workflow. C++ 复制 public ref class GetPSDrive sealed : Microsoft::PowerShell::Activities::PSRemotingActivity Inheritance NativeActivity PipelineEnabledActivity PSActivity PSRemotingActivity GetPSDrive Constructors 展开表 ...
23.Get-PSDrive:获取当前会话中的 Windows PowerShell 驱动器 24.Get-Item:获取位于指定位置的项 25.Get-Process :获取在本地计算机或远程计算机上运行的进程 26.Get-Service : 获取本地或远程计算机上的服务 27.Get-Transaction :获取当前(活动)事务
Get-WmiObject 是 PowerShell 中的一个命令,用于获取 Windows 管理信息 (WMI) 对象。WMI 是 Microsoft 提供的一种用于管理 Windows 操作系统的标准接口,它允许管理者通过脚本或命令行工具来查询系统信息、执行管理任务以及监控系统状态。 使用 Ge
Get-PSDrive New-PSDrive-Name"newpsdirve"-PSProvider"FileSystem"-Root"d:\psdrive" 进入newpsdirve 说明:个人创建的PSDrive只能在PowerShell环境才可以运行。 3、系统内置的八个Provider ●别名:系统中的别名对象 ●环境:计算机配置的环境变量 ●文件系统:进行对文件的创建、删除、更新等操作。是计算机当中最常用...