Invoke-Command-ComputerNamedc01, sql02, web01 {Get-Service-NameW32time }-Credential$Cred|Get-Member Output TypeName: Deserialized.System.ServiceProcess.ServiceController Name MemberType Definition --- --- --- GetType Method type GetType() ToString Method string ToString(), string ToString(strin......
Property System.ServiceProcess.ServiceCont... DisplayName Property string DisplayName {get;set;} MachineName Property string MachineName {get;set;} ServiceHandle Property System.Runtime.InteropServices.Sa... ServiceName Property string ServiceName {get;set;} ServicesDependedOn Property System.Service...
LogName=<String[]> ProviderName=<String[]> Path=<String[]> 关键字=<Long[]> ID=<Int32[]> Level=<Int32[]> StartTime=<DateTime> EndTime=<DateTime> UserID=<SID> 数据=<String[]> <named-data>=<String[]> SuppressHashFilter=<Hashtable> 展开表 类型: Hashtable[] Position: 0 默认值:...
Windows PowerShell 3.0 包含現有 Cmdlet (包括簡化語法) 的新功能,以及下列 Cmdlet 的新參數:Computer Cmdlet、CSV Cmdlet、Get-ChildItem、Get-Command、Get-Content、Get-History、Measure-Object、Security Cmdlet、Select-Object、Select-String、Split-Path、Start-Process、Tee-Object、Test-Connection、Add-Member ...
示例:New-Cache -CacheName NamedCache1 -Secondaries 1 -TimeToLive 15 Remove-Cache Remove-AFCache 删除命名缓存(由CacheName参数指定)。 参数描述如下: CacheName:缓存的名称。 示例:Remove-Cache -CacheName NamedCache1 Get-CacheConfig Get-AFCacheConfiguration ...
类型:String[] Position:Named 默认值:None 必需:False 接受管道输入:False 接受通配符:True -ExpandProperty 指定要选择的属性,并指示应尝试展开该属性。 如果输入对象管道没有命名的属性,Select-Object将返回错误。 如果指定的属性是一个数组,则数组的每个值都包含在输出中。
如果属性未实现 IComparable,则 cmdlet 会将属性值转换为字符串,并使用 Compare 方法System.String。 有关详细信息,请参阅 PSObject.CompareTo(Object) 方法。 如果对枚举属性(如 状态)进行排序,Sort-Object 按枚举值排序。 对于 Windows 服务,“已停止” 的值为 1,“正在运行” 的值为 4。由于枚举值,运行 ...
Append daily PowerShell output to HTML file Append Date & Time to File name Append organisation name to AD display name Append static csv column to result set on export of data; Using Select-Object and Export-CSV append string to all strings in array Appending info to the telephone (notes)...
The module contains four cmdlets (two with optional switches to return conversion result as UTC time) are: Convert-UnixTime Convert-WindowsTime Get-UnixTime Get-WindowsTime Installing the module Install direct from the PowerShell Gallery (Powershell 5.x and above) ...
Get-CmsMessage [-Path] <string> Get-CmsMessage [-LiteralPath] <string> Protect-CmsMessage [-To] <CmsMessageRecipient[]> [-Content] <string> [[-OutFile] <string>] Protect-CmsMessage [-To] <CmsMessageRecipient[]> [-Path] <string> [[-OutFile] <string>] ...