从Windows 10运行PowerShell命令Get-Aduser
我正在尝试在Windows 10 Pro笔记本电脑上运行PowerShell命令Get-Aduser
。
我要低于错误。
Get-ADUser: The term 'Get-ADUser' is not recognized as the name of a cmdlet.....
谷歌搜索后,我知道我需要运行命令install-module activeiveDirectory
,但是此命令给定的错误是ActiveIvedIrectory模块。
我确实尝试安装所有RSAT工具,但我发现它是在上演
状态中的,不确定如何将它们移至安装
。我做了这个问题,无法修复它。
PS C:\WINDOWS\system32> Get-WindowsCapability -Online -Name "rsat*" | Select-Object -Property DisplayName, State
DisplayName State
----------- -----
RSAT: Active Directory Domain Services and Lightweight Directory Services Tools Staged
RSAT: BitLocker Drive Encryption Administration Utilities Installed
RSAT: Active Directory Certificate Services Tools Staged
RSAT: DHCP Server Tools Staged
RSAT: DNS Server Tools Staged
RSAT: Failover Clustering Tools Staged
RSAT: File Services Tools Staged
RSAT: Group Policy Management Tools Staged
RSAT: IP Address Management (IPAM) Client Installed
RSAT: Data Centre Bridging LLDP Tools Installed
RSAT: Network Controller Management Tools Installed
RSAT: Network Load Balancing Tools Installed
RSAT: Remote Access Management Tools Staged
RSAT: Remote Desktop Services Tools Staged
RSAT: Server Manager Installed
RSAT: Shielded VM Tools Staged
RSAT: Storage Migration Service Management Tools Staged
RSAT: Storage Replica Module for Windows PowerShell Installed
RSAT: System Insights Module for Windows PowerShell Installed
RSAT: Volume Activation Tools Installed
RSAT: Windows Server Update Services Tools Staged
也来自设置>应用>可选功能>添加功能
尝试安装RSAT时,我会遇到错误:Active Directory域服务和轻量级目录服务工具
。
根据某些seggetions,我需要运行powerShell命令stop -service -name wuauserv
然后再次安装,但在我的情况下确实失败了。
我面临的问题:
- 我想从Windows 10运行Get-Aduser命令,但我无法。
- 我没有找到逐步指南,该指南可以描述如何在Windows 10 Pro上使用PowerShell命令使用PowerShell命令。
- 我不确定是否需要使用AD域控制器,是否需要如何配置。
- 我在Windows 10笔记本电脑上安装了所有“ Windows管理工具”,但不确定如何将这些工具配置为Azure AD,以及是否需要这些工具来运行
Get-Aduser
命令。
细节:
Windows: Windows 10 Pro 21H1
PowerShell: version 5.1.19041
--------------------- Update --------------- ------------
我在Windows 10笔记本电脑上安装了所有RSAT模块/服务。问题与我窗口的最新更新有关。
我必须在笔记本电脑上启用以下政策:
Edit Group Policy > Administrative Templates > System > Specify settings for optional component installation....
1. Select CheckBox: Enabled
2. Select CheckBox: Download repair content and optional features directly....
I am Trying to run the PowerShell command Get-ADUser
on my Windows 10 Pro Laptop.
I am getting below error.
Get-ADUser: The term 'Get-ADUser' is not recognized as the name of a cmdlet.....
After googling I got to know I need to run command Install-Module ActiveDirectory
, but this command given error that ActiveDirectory module not found.
I did try to install all the RSAT Tools but I see it is in Staged
state and not sure how to move them to Installed
. I did google this issue and not able to fix it.
PS C:\WINDOWS\system32> Get-WindowsCapability -Online -Name "rsat*" | Select-Object -Property DisplayName, State
DisplayName State
----------- -----
RSAT: Active Directory Domain Services and Lightweight Directory Services Tools Staged
RSAT: BitLocker Drive Encryption Administration Utilities Installed
RSAT: Active Directory Certificate Services Tools Staged
RSAT: DHCP Server Tools Staged
RSAT: DNS Server Tools Staged
RSAT: Failover Clustering Tools Staged
RSAT: File Services Tools Staged
RSAT: Group Policy Management Tools Staged
RSAT: IP Address Management (IPAM) Client Installed
RSAT: Data Centre Bridging LLDP Tools Installed
RSAT: Network Controller Management Tools Installed
RSAT: Network Load Balancing Tools Installed
RSAT: Remote Access Management Tools Staged
RSAT: Remote Desktop Services Tools Staged
RSAT: Server Manager Installed
RSAT: Shielded VM Tools Staged
RSAT: Storage Migration Service Management Tools Staged
RSAT: Storage Replica Module for Windows PowerShell Installed
RSAT: System Insights Module for Windows PowerShell Installed
RSAT: Volume Activation Tools Installed
RSAT: Windows Server Update Services Tools Staged
Also from the Settings > Apps > Optional features > Add feature
I am getting error when I try to install RSAT: Active Directory Domain Services and Lightweight Directory Services Tools
.
As per some of the seggetions I need to run the PowerShell command Stop-Service -Name wuauserv
then install again, but it did fail in my case.
Issue that I am facing:
- I want to run Get-ADUser command from Windows 10 but I am not able to.
- I did not find a step-by-step guide which can describe how to use powershell command with ActiveDirectory on Windows 10 Pro.
- I am not sure if I need to have the AD Domain Controller, if I need how to configure.
- I have all the "Windows Administrative Tools" installed on my Windows 10 Laptop but not sure how to configure these tools to my Azure AD and if these tools are required for running
Get-ADUser
command.
Details:
Windows: Windows 10 Pro 21H1
PowerShell: version 5.1.19041
--------------------- Update --------------------------
I got the all the RSAT modules/services installed on my Windows 10 Laptop. The issue was related to the recent update to my Windows.
I have to enable below policy on my Laptop:
Edit Group Policy > Administrative Templates > System > Specify settings for optional component installation....
1. Select CheckBox: Enabled
2. Select CheckBox: Download repair content and optional features directly....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论