The Find-Command cmdlet finds PowerShell commands such as cmdlets, aliases, functions, and workflows. Find-Command searches modules in registered repositories. This is a proxy cmdlet for the Find-PSResource cmdlet in the Microsoft.PowerShell.PSResourceGe
例如,Get-Command cmdlet 检索 PowerShell 中注册的所有命令。 备注 PowerShell 使用术语 谓词 来描述一个单词,即使该单词不是英语中的标准谓词,该词也意味着作。 例如,该术语 New 是有效的 PowerShell 谓词名称,因为它表示作,即使它不是英语中的谓词。 每个批准的谓词都有一个相应的 别名前缀, 定义...
Find-Command Find-DscResource Find-Module Find-RoleCapability Find-Script Get-CredsFromCredentialProvider Get-InstalledModule Get-InstalledScript Get-PSRepository Install-Module Install-Script New-ScriptFileInfo Publish-Module Publish-Script Register-PSRepository Save-Module Save-Script...
Pop-Location Push-Location Remove-Item Remove-ItemProperty Remove-PSDrive Remove-Service Rename-Computer Rename-Item Rename-ItemProperty Resolve-Path 重启计算机 Restart-Service Resume-Service Set-Clipboard Set-Content Set-Item Set-ItemProperty Set-Location ...
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 complete cmdlet name. To go to a particular folder, I can use the command that is shown here: ...
To see the current prompt function, type the following command:Get-Content Function:\prompt Parameters -PSDrive Gets the current location in the specified PowerShell drive. For instance, if you are in theCert:drive, you can use this parameter to find your current location in theC:drive. ...
Get-Process-Namepwsh & Id Name PSJobTypeName State HasMoreData Location Command -- --- --- --- --- --- ---5Job5 BackgroundJob Running True localhost Microsoft.PowerShell.Man... Get-Process使用Name参数来指定 PowerShell 进程,pwsh。 与号 (&) 将命令作为后台作业运行。 当作业在后台运行...
Location : Server01,Server02 Command : Get-EventLog System JobStateInfo : Running Finished : System.Threading.ManualResetEvent InstanceId : e124bb59-8cb2-498b-a0d2-2e07d4e030ca Id : 1 Name : Job1 ChildJobs : {Job2, Job3} Output : {} Error : {} Progress : {} Verbose : {} De...
You can find these values by running the command Get-ComplianceSearch | Format-Table -Auto Name,JobRunId,Status To improve the performance of this cmdlet, some compliance search properties aren't returned if you don't specify the identity of the compliance search. These properties are: ...
Push-Location -stack job1会把当前目录保存到job1堆栈中,而不是标准堆栈中。当然在你想重新回到这个位置时,也需要在Pop-Location中指定这个参数-stack job1。 查找特殊的目录 Windows使用了很多特殊的目录,根据系统的安装,可能稍有不同。一些非常重要的目录的路径同时也保存在Windows环境变量中,这样PowerShell 可以...