lixiaolong 发表于 2018-9-2 10:58:35

创建powershell模块

PS C:\scripts>  
PS C:\scripts> Import-Module .\get-dotnet.psm1
  
PS C:\scripts> get-module
  
ModuleType Version    Name                              ExportedCommands
  
---------- -------    ----                              ----------------
  
Script   0.0      get-dotnet                        get-dotnet
  
Script   1.0.0.0    ISE                                 {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}
  
Manifest   3.1.0.0    Microsoft.PowerShell.Management   {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
  
Manifest   3.1.0.0    Microsoft.PowerShell.Utility      {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
  
Script   1.0      tmp_otuyg3x2.xlk                  {Add-ADComputerServiceAccount, Add-ADDomainControllerPasswordReplicationPolicy, Add-ADFineGrainedPasswordPolicy...


页: [1]
查看完整版本: 创建powershell模块