PowerShell Get-Location[-PSProvider <String[]>] [-PSDrive <String[]>] [<CommonParameters>] PowerShell Get-Location[-Stack] [-StackName <String[]>] [<CommonParameters>] 说明 Get-Locationcmdlet 获取表示当前目录的对象,非常类似于打印工作目录 (pwd) 命令。
Get-Date:获取当前日期和时间。 Get-Location:获取当前所在位置(目录)的路径。 Get-Alias:获取命令别名列表。Get-Alias (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn Get-Variable:获取当前会话中定义的变量列表。Get-Variable (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn Get-M...
还可以在运行时使用 Get-Location 来获取当前目录并将其用于函数和脚本,例如在 Windows PowerShell 提示符中显示当前目录的函数。 如果使用Push-Locationcmdlet 将位置添加到路径堆栈,则可以使用 Get-Location 的 Stack 参数来显示当前堆栈。 参数 -PSDrive <string[]> ...
1.Get-Command : 得到所有PowerShell命令,获取有关 cmdlet 以及有关 Windows PowerShell 命令的其他元素的基本信息。 包括Cmdlet、Alias、Function。 2.Get-Process : 获取所有进程 3.Get-Help : 显示有关 Windows PowerShell 命令和概念的信息 4.Get-History : 获取在当前会话中输入的命令的列表 5.Get-Job : ...
如果这还不够,PowerShell 还提供了别名,用来创建简单的名字。比如,如果键入 alias -name cd,你将会发现 cd 在 PowerShell 实际上时 Set-Location 命令的别名。 所以回顾以下 —— 你可以使用强大的 tab 补全、别名,和名词补全来保持命令名词简洁、自动化和一致性参数名截断,与此同时还可以享受丰富、可读的语法格...
PowerShell 复制 Get-CsOnlineLisLocation [-AssignmentStatus <string>] [-City <string>] [-CountryOrRegion <string>] [-Description <string>] [-Force] [-NumberOfResultsToSkip <int>] [-PopulateNumberOfTelephoneNumbers] [-PopulateNumberOfVoiceUsers] [-ResultSize <long>] [-ValidationStatus <...
Get Internet Time based on Location in PowerShell Get IP and MAC addresses for all devices? Get ipconfig all Get JSON property values at runtime? Get last 3 working days and skip weekend Get last logon time,computer and username together with Powershell Get last logon user id on PC Get...
PowerShell Get-HelpGet-Item-PathSQLSERVER:\DataCollection NAMEGet-ItemSYNOPSIS Gets a collection of Server objectsforthe local computer and any computers to which you have made a SQL Server PowerShell connection. ...Set-LocationSQLSERVER:\DataCollection SQLSERVER:\DataCollection>Get-HelpGet-ItemNAME...
PowerShell Get-HelpGet-Item-PathSQLSERVER:\DataCollection NAMEGet-ItemSYNOPSIS Gets a collection of Server objectsforthe local computer and any computers to which you have made a SQL Server PowerShell connection. ...Set-LocationSQLSERVER:\DataCollection SQLSERVER:\DataCollection>Get-HelpGet-ItemNAME...
PowerShell Get-HelpGet-Item-PathSQLSERVER:\DataCollection NAMEGet-ItemSYNOPSIS Gets a collection of Server objectsforthe local computer and any computers to which you have made a SQL Server PowerShell connection. ...Set-LocationSQLSERVER:\DataCollection SQLSERVER:\DataCollection>Get-HelpGet-ItemNAME...