Showing posts with label Get-Module. Show all posts
Showing posts with label Get-Module. Show all posts

Thursday, August 2, 2012

Powershell and Active Directory: Powershell based GUI Application to create Group in AD.

Hi,

GUI are for dumbs and for lazy likes me or for beginners. Few days ago a new IT guy joined our company, he is kind of fresher. I first which we gave him is to create few Groups in active directory. He is new so i don’t want him to sit on any live server or mess with “Active Directory Users and Computers Console”, for him i wrote a little bit tiny tiny powershell based GUI app.

You can download the script from here : https://dl.dropbox.com/u/17858935/Create_Groups_in_AD_Community.zip

This Script is based on Active Directory module, so before running this script make sure you have RSAT tools installed.

When you run the script first time , it ask you for Username and password, please provide your domain administrator credentials.

02-08-2012 12-06-23

After providing the credentials a GUI will open.

On the Top of the GUI i added a little bit of information about the presence of “Active Directory Module”, and if the Module found is equal to “NO” then this GUI wont work.

In Group Name : Provide the desired group name which you want to create.

In Description : Provide a little bit information about the Group.

In Group Scope: Select your desired Group Scope.

In OU: Select the OU location of The Group.

In Server: Choose your nearest domain controller.

02-08-2012 21-16-38

Your final screen will be look like below. and now click on create.

02-08-2012 21-17-05

That’s all, Our Group is created successfully.

02-08-2012 21-18-12

Download Link : https://dl.dropbox.com/u/17858935/Create_Groups_in_AD_Community.zip

Thanks

Aman Dhally

Thanks for reading.

Thanks!

Aman Dhally

Buy-More-Twitter-Followers 4fb29548b6adc linkedin

nala_what

Powershell and Active Directory: Maintains the Leavers of your Company using powershell GUI based Application.


HI,

Like every IT Administrator we have to create user accounts when someone joined the company and also delete and reset the account when someone leaves.
From past few days i was trying to write a GUI Application based on powershell.
My Main objective was.
    • Reset Leaving Users Password.
    • Remove him from all groups.
    • Move his user account to particular OU
You can download the script form this link : http://gallery.technet.microsoft.com/scriptcenter/Manage-Leavers-accounts-in-b98d0df2

Before running this script please change this variable as per your need:  $ArchiveOu = 'OU=Archived,DC=localDC,DC=com'

Let me explain about the script.
This script is based on ActiveDirectory Module , so before running the script make sure that you have installed RSAT tools.

When you run the script first it ask for username  and password, Please provide your Domain Admin username and password.
02-08-2012 12-06-23

After you provide the credentials a GUI will open.
On the Number 1 , it is showing that if script is able to detect and imported the ActiveDirectory Module.
Our first task to to find the Users SAMAccount Name.

So provide the users First and last name (2,3) and click on Find (4)
when you click on Find .. It search for user in all AD for matching user.
in number 5 this will show the users SAMAccount Name
in Number 6 Provide a new password for user.
Now on number 7 click on Starts
When you click on start it do .
  • Reset User password
  • remove it from all Groups
  • Move it to a particular OU
02-08-2012 12-04-54

Download Link : http://gallery.technet.microsoft.com/scriptcenter/Manage-Leavers-accounts-in-b98d0df2
Thanks for reading.
Thanks!
Aman Dhally
Buy-More-Twitter-Followers 4fb29548b6adc  linkedin
00488d3a