PowerShell - Creating a group

xmsauvexxmsauvex 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!!!

Comments

  • ptilsenptilsen 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.
    Working B.S., Computer Science
    Complete: 55/120 credits SPAN 201, LIT 100, ETHS 200, AP Lang, MATH 120, WRIT 231, ICS 140, MATH 215, ECON 202, ECON 201, ICS 141, MATH 210, LING 111, ICS 240
    In progress: CLEP US GOV,
    Next up: MATH 211, ECON 352, ICS 340
  • xmsauvexxmsauvex 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
  • imp667imp667 Registered Users Posts: 3 ■□□□□□□□□□
    xmsauvex wrote: »
    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?
Sign In or Register to comment.