Raf*_*lGP 7 windows powershell windows-server-2008-r2
这让我发疯!
显然,使用 servermanager 模块应该和输入一样简单:
Import-Module servermanager
Run Code Online (Sandbox Code Playgroud)
问题是我没有。
PS C:\Users\Administrator> Get-Module -ListAvailable
Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules
ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest BitsTransfer {Add-BitsFile, Remove-BitsTransfer, Complete-BitsTransfe...
Manifest CimCmdlets {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstanc...
Script ISE {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}
Manifest Microsoft.PowerShell.Diagnostics {Get-WinEvent, Get-Counter, Import-Counter, Export-Count...
Manifest Microsoft.PowerShell.Host {Start-Transcript, Stop-Transcript}
Manifest Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-ItemProperty, Join-Pa...
Manifest Microsoft.PowerShell.Security {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}
Manifest Microsoft.PowerShell.Utility {Format-List, Format-Custom, Format-Table, Format-Wide...}
Manifest Microsoft.WSMan.Management {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCre...
Script PSDiagnostics {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-...
Binary PSScheduledJob {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-...
Manifest TroubleshootingPack {Get-TroubleshootingPack, Invoke-TroubleshootingPack}
Manifest WebAdministration {Start-WebCommitDelay, Stop-WebCommitDelay, Get-WebConfi...
Directory: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules
ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest SQLASCMDLETS {Add-RoleMember, Backup-ASDatabase, Invoke-ASCmd, Invoke...
Manifest SQLPS {Backup-SqlDatabase, Add-SqlAvailabilityDatabase, Disabl...
Run Code Online (Sandbox Code Playgroud)
任何在 Google 中搜索“安装 servermanager 模块”的尝试都会返回数千页以使用 servermanager 模块安装东西!:-\
我正在使用 Windows Web Server 2008 R2 Service Pack 1 和 Powershell v4 的最新副本。
解决了!我必须使用 32 位版本的 Powerhell,因为模块位于以下文件夹中:C:\Windows\System32\WindowsPowerShell\v1.0\Modules\
归档时间: |
|
查看次数: |
19119 次 |
最近记录: |