9 powershell active-directory windows-10
我正在运行 Windows 10 Pro 1809
我希望在计算机上安装 Active Directory;但是,当我尝试使用 powershell 命令时:
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0950
At line:1 char:45
+ ... WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand
Run Code Online (Sandbox Code Playgroud)
还值得注意的是该命令:
Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property DisplayName, State
Run Code Online (Sandbox Code Playgroud)
显示以下内容:
DisplayName State
----------- -----
RSAT: Active Directory Domain Services and Lightweight Directory Services Tools NotPresent
RSAT: BitLocker Drive Encryption Administration Utilities NotPresent
RSAT: Active Directory Certificate Services Tools NotPresent
RSAT: DHCP Server Tools NotPresent
RSAT: DNS Server Tools NotPresent
RSAT: Failover Clustering Tools NotPresent
RSAT: File Services Tools NotPresent
RSAT: Group Policy Management Tools NotPresent
RSAT: IP Address Management (IPAM) Client NotPresent
RSAT: Data Center Bridging LLDP Tools NotPresent
RSAT: Network Controller Management Tools NotPresent
RSAT: Network Load Balancing Tools NotPresent
RSAT: Remote Access Management Tools NotPresent
RSAT: Remote Desktop Services Tools NotPresent
RSAT: Server Manager NotPresent
RSAT: Shielded VM Tools NotPresent
RSAT: Storage Migration Service Management Tools NotPresent
RSAT: Storage Replica Module for Windows PowerShell NotPresent
RSAT: System Insights Module for Windows PowerShell NotPresent
RSAT: Volume Activation Tools NotPresent
RSAT: Windows Server Update Services Tools NotPresent
Run Code Online (Sandbox Code Playgroud)
小智 17
尝试这个:
使用管理员权限打开 Powershell 并添加以下内容:
将 Windows 更新服务器密钥设置为 0
Set-ItemProperty -Path HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name UseWUServer -Value 0
Run Code Online (Sandbox Code Playgroud)
重新启动Windows更新服务
Restart-Service -Name wuauserv -Force
Run Code Online (Sandbox Code Playgroud)
获取 RSAT 工具
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
Run Code Online (Sandbox Code Playgroud)
将 Windows 更新服务器密钥设置为 1
Set-ItemProperty -Path HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name UseWUServer -Value 1
Run Code Online (Sandbox Code Playgroud)
重新启动Windows更新服务
Restart-Service -Name wuauserv -Force
Run Code Online (Sandbox Code Playgroud)
完毕
显然,错误代码 0x800f0950 表示“没有足够的源来安装某些内容”,一个或多个 RSAT 工具可能需要 .NET 3.5,这需要安装其他源。请检查您是否安装了 .NET 3.5,如果没有安装,然后再次运行 RSAT 安装。
| 归档时间: |
|
| 查看次数: |
39671 次 |
| 最近记录: |