Get-Process[[-Name] <String[]>] [-Module] [-FileVersionInfo] [<CommonParameters>] PowerShellCopy Get-Process[[-Name] <String[]>]-IncludeUserName[<CommonParameters>] PowerShellCopy Get-Process-Id<Int32[]> [-Module] [-FileVersionInfo] [<CommonParameters>] ...
16、clear-content,清除内容,简写clc,用法:命令 文件名 17、get-services,获取服务列表,简写gsv 18、get-process,获取进程列表,简写gps或ps 19、ConvertTo-Html,将结果转成网页,例如get-process | ConvertTo-Html > currentpss.html 20、export-csv ,将结果转成csv文件,可以用Excel分析,例如get-process | export...
OsMaxProcessMemorySize 操作系统单个进程最大内存 操作系统中每个进程可以使用的最大内存。 OsMuiLanguages 操作系统多语言支持 操作系统支持的语言列表。 OsNumberOfLicensedUsers 操作系统许可用户数 操作系统的许可用户数,通常与许可证绑定。 OsNumberOfProcesses 操作系统进程数 当前系统中的进程数量。 OsNumberOfUsers...
GetProcessAffinityUpdateMode 和SetProcessAffinityUpdateMode: Windows 10引入了这两个API,允许在运行时动态更新进程的CPU亲和度,而不需要重新启动进程。 示例: cppCopy Code PROCESS_AFFINITY_UPDATE_MODE mode; BOOL success = GetProcessAffinityUpdateMode(GetCurrentProcess(), &mode); // SetProcessAffinityUpdate...
Get-WmiObject-Query"select * from Win32_Service where name='WinRM'"-ComputerNameServer01, Server02 |Format-List-PropertyPSComputerName, Name, ExitCode, Name, ProcessId, StartMode, State, Status PSComputerName : SERVER01 Name : WinRM ExitCode :0Name : WinRM ProcessId :844StartMode : Auto ...
Get-Date [[-Date] <DateTime>] [-Year <Int32>] [-Month <Int32>] [-Day <Int32>] [-Hour <Int32>] [-Minute <Int32>] [-Second <Int32>] [-Millisecond <Int32>] [-DisplayHint <DisplayHintType>] [-Format <String>] [-AsUTC] [<CommonParameters>]Power...
ProcessId Provides access to the ProcessId parameter. PSActionRetryCount Defines the number of retries that the activity will make when it encounters an error during execution of its action. The default is to not retry. (Inherited from PSActivity) PSActionRetryIntervalSec Defines the delay,...
function Get-Date_Func { param( [DateTime] $Date ) process { $Date } } [CultureInfo]::CurrentCulture = 'de-DE' # This German-format date string doesn't work with the invariant culture. # E.g., [datetime] '19-06-2018' breaks. $dateStr = '19-06-2...
Start-Job使用ScriptBlock参数将Get-Process作为后台作业运行。 Name参数指定查找 PowerShell 进程pwsh。 当作业在后台运行时,会显示作业信息并且 PowerShell 会返回提示。 若要查看作业的输出,请使用Receive-Jobcmdlet。 例如,Receive-Job -Id 1。 示例2:使用后台运算符启动后台作业 ...
PS C:\Users\Administrator> get-host Name : ConsoleHost Version : 2.0 InstanceId : 46ec5108-c784-4098-856e-eb1345f2eb86 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : zh-CN CurrentUICulture : zh-CN ...