PowerShell - Creating a group
xmsauvex
Registered Users Posts: 3 ■□□□□□□□□□
Hello everyone,
I am studying for 70-640 and I am in chapter 4 of the MS Training Kit.
I am trying to create a group as stated in the book and something is not working and I can't pinpoint why.... Maybe you will!!
I made sure that the AD Module was loaded with : import-module ActiveDirectory
New-ADGroup -Path "OU=Groups,DC=contoso,DC=com" -Name "PowerShell Experts" -sAMAccountName "PowerShell Experts" -GroupCategory Security -GroupScope Global
I am getting this error: New-ADGroup : The server is unwilling to process the request
Someone have an idea so I can keep going?
I could move on but I want to make sure that I understand this correctly!
Thank you!!!
I am studying for 70-640 and I am in chapter 4 of the MS Training Kit.
I am trying to create a group as stated in the book and something is not working and I can't pinpoint why.... Maybe you will!!
I made sure that the AD Module was loaded with : import-module ActiveDirectory
New-ADGroup -Path "OU=Groups,DC=contoso,DC=com" -Name "PowerShell Experts" -sAMAccountName "PowerShell Experts" -GroupCategory Security -GroupScope Global
I am getting this error: New-ADGroup : The server is unwilling to process the request
Someone have an idea so I can keep going?
I could move on but I want to make sure that I understand this correctly!
Thank you!!!
Comments
-
ptilsen Member Posts: 2,835 ■■■■■■■■■■Sounds like an unruly server. Better get the wooden spoon out.
But really, are you running the Cmdlet from a DC, or from another server? Are you running as a domain admin? Have you Googled the error? Have you checked the event logs on the DC itself? There should be an event correlating to the attempt to run the cmdlet, and that event should lead you to your solution.
Welcome to TE, and welcome to troubleshooting 90% of Windows problems: find correlating event, research, fix. -
xmsauvex Registered Users Posts: 3 ■□□□□□□□□□Finally, it was all my mistake.
My DN was mispelled and this is why I got the error.
Thank you though, I really appreciated your answer!!
I just finished Chapter 4.... I move on into Chapter 5 (Managing Computer Accounts)
Thanks -
imp667 Registered Users Posts: 3 ■□□□□□□□□□Finally, it was all my mistake.
My DN was mispelled and this is why I got the error.
Thank you though, I really appreciated your answer!!
I just finished Chapter 4.... I move on into Chapter 5 (Managing Computer Accounts)
Thanks
I just started chapter 4 when are you planing on taking the test?