Find-Commanduses theNameandRepositoryparameters to search for the commandInvoke-ScriptAnalyzerin thePSGalleryrepository. The object is sent down the pipeline toSave-Module. ThePathparameter determines the location to save the module.Verboseis an optional parameter, but displays status output in the Po...
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...
CertificateStoreLocationNotFoundException CertificateStoreNotFoundException ClearContentCommand ClearHistoryCommand ClearItemCommand ClearItemPropertyCommand ClearRecycleBinCommand ClearVariableCommand CommonRunspaceCommandBase CompareObjectCommand ComputerChangeInfo ComputerInfo ConnectPSSessionCommand ConsoleColorCmdlet ContentCo...
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: PS C:\> sl c:\fso1 But if I want to return to the root of drive C, I ...
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. ...
Push-Location -stack job1会把当前目录保存到job1堆栈中,而不是标准堆栈中。当然在你想重新回到这个位置时,也需要在Pop-Location中指定这个参数-stack job1。 查找特殊的目录 Windows使用了很多特殊的目录,根据系统的安装,可能稍有不同。一些非常重要的目录的路径同时也保存在Windows环境变量中,这样PowerShell 可以...
该Find-Module cmdlet 使用 Name 参数来指定 PowerShellGet 模块。 存储库参数指定搜索 PSGallery 存储库。示例6:在多个存储库中查找模块此示例使用指定 Register-PSRepository 存储库。 Find-Module 使用存储库搜索模块。PowerShell 复制 Register-PSRepository -Name MySource -SourceLocation https://www.myget.org/...
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...
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...
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...