... SYNTAX Get-EventLog [-LogName] <System.String> [[-InstanceId] <System.Int64[]>] [-After <System.DateTime>] [-AsBaseObject] [-Before <System.DateTime>] [-ComputerName <System.String[]>] [-EntryType {Error | Information | FailureAudit | SuccessAudit | Warning}] [-Index <System...
... SYNTAX Get-EventLog [-LogName] <System.String> [[-InstanceId] <System.Int64[]>] [-After <System.DateTime>] [-AsBaseObject] [-Before <System.DateTime>] [-ComputerName <System.String[]>] [-EntryType {Error | Information | FailureAudit | SuccessAudit | Warning}] [-Index <System...
Get-Date cmdlet 获取表示当前日期或指定日期的 DateTime 对象。 Get-Date 可以采用多种 .NET 和 Unix 格式设置日期和时间的格式。 可以使用 Get-Date 生成日期或时间字符串,然后将该字符串发送到其他 cmdlet 或程序。 Get-Date 使用作系统的当前区域性设置来确定输出的格式。 若要查看计算机的设置,请使用 (Get...
"System.Int64". Error: "Input string was not in a correct format "System.Object[]" "telnet" connection test to different servers on different ports "Unable to find a default server with Active Directory Web Services running" when calling a script with Import-module AD "Unable to process the...
System.DateTime System.Byte System.Convert System.Decimal System.Double System.Guid System.Int16 System.Int32 System.Int64 System.IntPtr System.SByte System.Single System.UInt16 System.UInt32 System.UInt64 Microsoft.PowerShell.Commands.MatchInfo ...
IConvertible.ToChar(System.IFormatProvider provider) ToDateTime Method datetime IConvertible.ToDateTime(System.IFormatProvider provider) ToDecimal Method decimal IConvertible.ToDecimal(System.IFormatProvider provider) ToDouble Method double IConvertible.ToDouble(System.IFormatProvider provider) ToInt16 Method...
Get-WinEvent[-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>] [-FilterXml] <XmlDocument> [-Oldest] [<CommonParameters>] 说明 此cmdlet 仅在 Windows 平台上可用。 Get-WinEventcmdlet 从事件日志(包括经典日志)获取事件,例如系统和应用程序日志。 该 cmdlet 从 Windows Vista ...
其实int、long、以及下面的float都是 .NET的语法糖,真正的原生类型名是Int32、int64、single之类的类名 浮点型 浮点数标准形式(float和double) \pm m \times 2^{e}其中m为尾数,e为阶码,尾数是一个非负数,阶码是一个整数 PowerShell(. NET库)还支持一个特别的浮点数类型decimal,其形式为 ...
DateTimeBy default, this cmdlet returns a DateTime object.When a DateTime object is sent down the pipeline to a cmdlet such as Add-Content that expects string input, PowerShell converts the object to a String object.The ToString() converts a DateTime object to a String using the current ...
thePropertyparameter, the cmdlet considers the objects to be equal. Notice that the value of theInputObjectis the same as the result of theToString()method. Since theSystem.Diagnostics.Processclass does not have theIComparableinterface, the cmdlet converts the objects to strings then compares the...