Get-CimSession -InstanceId <Guid[]> [<CommonParameters>]PowerShell 复制 Get-CimSession -Name <String[]> [<CommonParameters>]说明此cmdlet 仅在 Windows 平台上可用。 默认情况下,该 cmdlet 获取在当前 PowerShell 会话中创建的所有 CIM 会话。
Get-PSSession [-InstanceId <Guid[]>] [<CommonParameters>]PowerShell 複製 Get-PSSession [-Id] <Int32[]> [<CommonParameters>]DescriptionGet-PSSession Cmdlet 會在本機和遠端電腦上取得使用者管理的 PowerShell 會話(PSSessions)。從Windows PowerShell 3.0 開始,會話會儲存在每一個連線的遠端電腦上...
Get-EventLog:获取事件日志中的条目。 powershellCopy Code Get-EventLog -LogName Application -InstanceId 1000 这个命令将列出应用程序日志中 Event ID 为 1000 的所有条目。 Get-ProcessMemoryInfo:获取进程的内存使用情况。 powershellCopy Code Get-ProcessMemoryInfo -Name "ProcessName" | Select-Object PeakWo...
Get-Runspace [[-Name] <String[]>] [<CommonParameters>]PowerShell 复制 Get-Runspace [-Id] <Int32[]> [<CommonParameters>]PowerShell 复制 Get-Runspace [-InstanceId] <Guid[]> [<CommonParameters>]说明Get-Runspace cmdlet 在 PowerShell 主机进程中获取活动运行空间。示例...
#---#5119041610# 方式2.采用host得方式PSC:\Program Files>Get-HostPSC:\Program Files>HostName:ConsoleHostVersion:5.1.19041.610# 当前版本InstanceId:3af22fd4-3ade-4c0d-ab67-7c77cf08223aUI:System.Management.Automation.Internal.Host.InternalHostUserInterfaceCurrentCulture:zh-CNCurrentUICulture:zh-CNPriva...
可输入 Get-Host 或者 $PSVersionTable 查看 PowerShell 版本:PS C:\Users\f_carey> Get-Host Name : ConsoleHost Version : 5.1.19041.1237 InstanceId : 59a73758-e3b8-4ac7-b098-6a3f1db1d970 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : zh-CN ...
VlanID : WdmInterface : False PSComputerName : CimClass : ROOT/StandardCimv2:MSFT_NetAdapter CimInstanceProperties :{Caption,Description,ElementName,InstanceID...}CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties 1. 2.
指定要用于交互式会话的 PowerShell 会话(PSSession)。 此参数采用会话对象。 还可以使用Name、InstanceId或Id参数来指定PSSession。 输入包含会话对象的变量或创建或获取会话对象的命令,例如New-PSSession或Get-PSSession命令。 还可以通过管道将会话对象传递给Enter-PSSession。 只能使用此参数提交一个PSSession。 如果输入...
__InstanceProviderRegistration {} {InteractionType, provider, QuerySupportLevels, SupportsBat... __MethodProviderRegistration {} {provider} __PropertyProviderRegistration {} {provider, SupportsGet, SupportsPut} __EventConsumerProviderRegistration {} {ConsumerClassNames, provider} __NAMESPACE {} {Name}...
1、当前文件夹运行命令 进入存放脚本文件的命令,然后执行:.\psl1脚本文件 我的脚本文件存放在F盘的...