Script for enable adrecycle bin in Windows 2008R2

Using this small script we can easily enable the active directory recycle bin feature in windows 2008r2.we have to copy the code to text editior and save it as a powershell script format(ps1).       Import-Module ActiveDirectory $strforestname=(Get-AdForest).name Enable-AdoptionalFeature ‘Recycle Bin Feature’ -Scope ForestOrconfigurationSet -Target $strforestname   *note-Remember to set the execution policy beforeContinue reading “Script for enable adrecycle bin in Windows 2008R2”

Users and computer accounts manage with dsquery-dsrm-dsmove

Using dsmove its very easy to rename computer accounts/user accounts in the active directory. EX dsmove “CN=darshana,OU=Users,OU=hr,dc=mydomain,dc=local” –newname “darshanasam” In this example im renaming user account which is locate in the users child ou under hr parent ou.

Active Directory Fine Grained password Policy

When we used windows 2000 and windows 2003 domain we could use only one password policy(Password complexity settings, account lockout settings) with our domain. It was using default domain policy. But windows 2008 onwards we can use multiple password policies with our domain. We can use adsiedit or active directory PowerShell module for creating newContinue reading “Active Directory Fine Grained password Policy”

Active Directory Recycle Bin

We can enable active directory recycle bin feature on windows 2008 R2 Domain controller. We can enable this feature in either domain level or forest level. If we are going to enable this feature on forest level the forest functional level should be Windows 2008 R2. Enable-ADOptionalFeature ‘Recycle Bin Feature’ –Scope ForestORConfigurationSet –Target ‘mydomain.lk’

Offline domain join

Windows 2008R2 server/computer or Windows 7 computers we can add to the domain without having any of the connectivity of the server(DNS or ActiveDirectory). For this case we do not to raise any of the functional leval.(Forest or domain).This method is very much usefull when we are reinstalling the operating systems of the pcs onContinue reading “Offline domain join”

Create bulk users from csvde.exe

This tool we can use for import and export data from the Active directory and store those data in comma separated format(CSV) For creating csv file that easy to use excel 2010 or excel 2007 Figure 1.0 This is the one of the example csv file which has entered some sample data.Once we enter theContinue reading “Create bulk users from csvde.exe”