在Windows PowerShell 4.0 中,如果模組在其資訊清單中使用 DefaultCommandPrefix 機碼,或如果使用者使用 Prefix 參數匯入模組,模組的 ExportedCommands 屬性就會顯示模組中具有該前置詞的命令。 當您使用模組限定語法 ModuleName\CommandName 執行命令時,命令名稱必須包含前置詞。 $PSVersio...
在Windows PowerShell 4.0 中,如果某个模块在其清单中使用了DefaultCommandPrefix键,或者如果用户导入了一个带有Prefix参数的模块,则该模块的ExportedCommands属性将显示该模块中带有前缀的命令。 当你使用模块限定语法 ModuleName\CommandName 来运行这些命令时,命令名称必须包含前缀。
These commands show how multipleExport-ModuleMembercommands are interpreted in a script module (.psm1) file. These commands create three functions and one alias, and then they export two of the functions and the alias. Without theExport-ModuleMembercommands, all three of the functions and the a...
不使用参数时,Show-Command将显示一个命令窗口,此窗口中将列出已安装模块中的所有可用命令。 若要查找某个模块中的命令,请从“模块”下拉列表中选择该模块。 若要选择命令,请单击命令名称。 若要使用命令窗口,请通过使用 Name 或单击Commands列表中的命令名称选择命令。 每个参数集都显示在单独...
Show-CommandExample 2: Open a cmdlet in the Commands windowThis example display the Invoke-Command cmdlet in the Command window. You can use this display to run Invoke-Command commands.PowerShell Αντιγραφή Show-Command -Name "Invoke-Command"Example...
Import-Module Adds modules to the current session. Import-PSSession Imports commands from another session into the current session. Invoke-Command Runs commands on local and remote computers. Invoke-Expression Runs commands or expressions on the local computer. Invoke-History Runs commands from the ses...
Module Commands Status Tasks Other Get-PSProjectReport Get-PSProjectGitStatus Class-Based The project status is based on a private class-based definition. The PowerShell classes are used to construct the JSON file which in turn is used to create aPSProjectobject and update its properties. ...
powershell-v3-module reporting role-based-access-control server-health-and-performance set-ExoSecOpsOverrideRule sharing-and-collaboration unified-messaging users-and-groups Commands Add-DistributionGroupMember Add-UnifiedGroupLinks Disable-DistributionGroup Disable-MailContact Disable-MailUser Enable-DistributionGrou...
If the certificate includes the private key, then it can also be used to decrypt the protected event log content. The following commands show how to determine if a Document Encryption certificate on a node has been deployed with a private key:...
M ModuleType Name ExportedCommands --- --- --- Script tmp_1833f7bc-b269-4229... {Set-SPSite, Backup-SPSite, Get-SPSite,... 在该示例中,您可以使用所有 SPSite cmdlet,就像它们是本地命令一样;例如,通过键入 Get-RemoteSPSite,您可以返回符合给定条件的所有网站集。这些导入的命令存储在会话结...