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...
本示例将 Unix 时间(由自 1970-01-01 01 0:00:00 以来的秒数)转换为 DateTime。 PowerShell Get-Date-UnixTimeSeconds1577836800Wednesday, January01,202012:00:00AM 示例10:返回解释为 UTC 的日期值 此示例演示如何将日期值解释为其 UTC 等效项。 例如,此计算机设置为太平洋标准时间。 默认情况下,Get-Date...
默认值:$HOME on Unix (macOS, Linux) and $HOME\Documents on Windows 必需:False 接受管道输入:False 接受通配符:False 输入 String 可以通过管道将具有 Name属性的对象传递给此 cmdlet 的 Name参数。 例如,可以通过管道从传递 FileInfoGet-ChildItem对象。
可以在 Event 脚本块中使用 $Event.TimeGenerated 变量的属性,例如 Action。 $EventArgs 包含一个对象,该对象表示从正在处理的事件的 EventArgs 派生的第一个事件参数。 此变量仅在事件注册命令的 Action 块内填充。 也可以在返回对象的 PSEventArgs SourceEventArgsGet-Event此变量的值。 $EventSubscriber 包含一个 ...
Enter-PSSession[-HostName] <String> [-Options <Hashtable>] [-Port <Int32>] [-UserName <String>] [-KeyFilePath <String>] [-Subsystem <String>] [-ConnectingTimeout <Int32>] [-SSHTransport] [<CommonParameters>] PowerShell复制 Enter-PSSession[[-Session] <PSSession>] [<CommonParameters>]...
In PowerShell 7.1 on Unix systems, the Get-ChildItem provides Unix-like output: PowerShell Copy PS> Get-ChildItem /etc/r* Directory: /etc UnixMode User Group LastWriteTime Size Name --- --- --- --- --- --- drwxr-xr-x root wheel 9/30/2019 19:19 128 racoon -rw-r--r-- roo...
Create folder with current timestamp using powershell Create folders from CSV create hidden shares and set share permissions Create HTML body from file with variables Create HTML page using powershell Create in memory CSV file Create list of users in the Domain Admin Group who have an active acc...
若要查看证书指纹,请使用Get-Item或Get-ChildItem命令查找证书。Cert:\CurrentUser\My 备注 此功能仅在 Windows OS 平台上受支持。 展开表 类型: String Position: Named 默认值: None 必需: False 接受管道输入: False 接受通配符: False-ConnectionTimeoutSeconds指定超时之前请求可以挂起多长时间。输入一个值(以...
Enter-PSSession[-HostName] <String> [-Options <Hashtable>] [-Port <Int32>] [-UserName <String>] [-KeyFilePath <String>] [-Subsystem <String>] [-ConnectingTimeout <Int32>] [-SSHTransport] [<CommonParameters>] PowerShellCopy Enter-PSSession[[-Session] <PSSession>] [<CommonParameters>]...
UNIX系统一直有着功能强大的壳程序(shell),WindowsPowerShell的诞生就是要提供功能相当于UNIX系统的命令...