top of page

Simple step to create a Group using Windows Powershell in Server 2012

Writer's picture: Hamizi JamaluddinHamizi Jamaluddin

Updated: Aug 2, 2019

In my previous post, I posted a step to create AD user account using Windows PowerShell, now i going to show you how to create a AD group using Windows Powershell in this simple step.

1 - as usual, open your Windows Powershell (please identify where you going to place your new group, for this demo I will create a MelakaBranchUsers group in MelakaBranch OU)

2 - in PowerShell, please type New-ADGroup MelakaBranchUsers -Path "ou=MelakaBranch,dc=cpx,dc=local" -GroupScope Global -GroupCategory Security and press Enter.


-- New-ADGroup MelakaBranchUsers = this command to create new Group call MelakaBranch


-- -Path "ou=MelakaBranch,dc=cpx,dc=local" = this command is location where you going to create the group


-- -GroupScope Global -GroupCategory Security = this command is where you choose global group scope and security group type

3 - Open Active Directory User and Computers, refresh the interface and your newly created MelakaBranchUser is appear.

4 - Next, lets transfer our AD user Maler into this MelakaBranchUser group, in your PowerShell type Add-ADGroupMember MelakaBranchUsers -Members Maler and press Enter.

5 - Lastly, to check if Maler is in correct group we created just now or not, execute this command : Get-ADGroupMember MelakaBranchUsers

That's all for now.. my next post I will guide you all how to create AD user accounts in Bulk..

138 views0 comments

Comments


Contact Us

Success! Message received.

​

Our Office :

OSI SOLUTIONS

20-2 Jalan Opera G U2/G,

Taman TTDI Jaya,

40150 Shah Alam,

Selangor Darul Ehsan

Tel : 603 7846 3080 , 03 7840 0807

Email : info_osi@osi.com.my

​

Training Centre & Exam Centre : 

OSI SOLUTIONS

20-1 Jalan Opera G U2/G,

Taman TTDI Jaya,

40150 Shah Alam,

Selangor Darul Ehsan

​

​

bottom of page