Get-Location [-Stack] [-StackName <String[]>] [<CommonParameters>]说明Get-Location cmdlet 获取表示当前目录的对象,非常类似于打印工作目录 (pwd) 命令。当你在 PowerShell 驱动器间移动时,PowerShell 会保留你在每个驱动器中的位置。 可以使用此 cmdlet 来查找你在每个驱动器中的位置。可以...
Find-Module uses the repository to search for a module.PowerShell Copy Register-PSRepository -Name MySource -SourceLocation https://www.myget.org/F/powershellgetdemo/ Find-Module -Name Contoso* -Repository PSGallery, MySource Repository Version Name Description --- --- --- --- PSGallery 2...
namespaceAlcModule.Cmdlets{publicclassAlcModuleResolveEventHandler:IModuleAssemblyInitializer,IModuleAssemblyCleanup{// Get the path of the dependency directory.// In this case we find it relative to the AlcModule.Cmdlets.dll locationprivatestaticreadonlystrings_dependencyDirPath = Path.GetFullPath( ...
(Get-Command ).ModuleName For example, to find the source of the Get-Date cmdlet, type: (Get-Command Get-Date).ModuleName Microsoft.PowerShell.Utility [!NOTE] You can't qualify variables or aliases. Using the call operator You can also use the Call operator & to run hidden commands ...
PS C:\> Get-Alias -Definition set-location CommandType Name ModuleName ———– —- ———- Alias cd -> Set-Location Alias chdir -> Set-Location Alias sl -> Set-Location If I want to change my location to a particular folder, I can use any of the above aliases or type the co...
如果使命名位置堆栈成为当前位置堆栈,则不能再使用 Push-Location 或Pop-Location cmdlet 添加或获取默认堆栈中的项,或者使用 Get-Location cmdlet 显示未命名堆栈中的位置。 若要使未命名堆栈成为当前堆栈,请使用 Set-Location cmdlet 的 StackName 参数,且值为 $null 或空字符串 ("")。
You can use the parameters of the Get-Command cmdlet to filter commands such as by module, name, and noun. To find all commands in a module, type: PowerShell Copy Get-Command -Module <module-name> For example, to find the commands in the BitsTransfer module, type: PowerShell Copy ...
本示例需要 Azure PowerShell。 运行 Get-Module -ListAvailable Az 即可查找版本。如果需要进行安装或升级,请参阅安装Azure PowerShell 模块。通过运行 Connect-AzAccount cmdlet 连接到 Azure。有关运行此示例的先决条件,请参阅教程:批量复制。示例脚本重要 此脚本在硬盘驱动器上的 c:\ 文件夹中创建 JSON 文件,...
Invokes a job to swap the location of a site with another site while archiving the original site. New-SPOAppBillingPolicy Creates a new billing policy for an application owned by the tenant. New-SPOContainerType This cmdlet creates a new container type of standard or trial status. The sta...
Invokes a job to swap the location of a site with another site while archiving the original site. New-SPOAppBillingPolicy Creates a new billing policy for an application owned by the tenant. New-SPOContainerType This cmdlet creates a new container type of standard or trial status. The sta...