Deploying Domain Controllers Using Windows PowerShell in hindi
Deploying Domain Controllers Using Windows PowerShell
Table of Contents — Deploy Domain Controllers with PowerShell
Deploying Domain Controllers Using Windows PowerShell in Hindi
अगर आप Windows Server environment में काम कर रहे हैं, तो Domain Controller (DC) का setup करना बहुत जरूरी होता है। Domain Controller आपके पूरे नेटवर्क का brain होता है — यही user authentication, permissions और centralized management को control करता है। आज हम इस topic में सीखेंगे कि PowerShell की मदद से Domain Controller को कैसे आसानी से deploy किया जा सकता है।
पहले के समय में हमें GUI के जरिए Domain Controller install करना पड़ता था, लेकिन अब PowerShell command के use से ये process बहुत आसान और तेज हो गया है। PowerShell से आप पूरे deployment process को automate कर सकते हैं ताकि बार-बार manual steps न करने पड़े।
What is Domain Controller (in Hindi)
Domain Controller एक ऐसा server होता है जो Active Directory (AD) database को store करता है। Active Directory में आपके network के सारे user accounts, computer objects और security policies होती हैं। जब कोई user network में log in करता है, तो Domain Controller verify करता है कि credentials सही हैं या नहीं।
सीधे शब्दों में कहें तो Domain Controller आपके organization के data, users और computers को एक जगह manage करने में मदद करता है।
Benefits of Using PowerShell for Domain Controller Deployment
- पूरी installation process को automate किया जा सकता है।
- बार-बार GUI steps follow करने की जरूरत नहीं होती।
- Multiple Domain Controllers को एक ही script से setup किया जा सकता है।
- Error chances कम होते हैं क्योंकि हर step predefined होता है।
- Fast, repeatable और reliable setup मिलता है।
Basic Requirements for Domain Controller Setup
- Windows Server installed machine
- Administrator privileges
- Static IP Address assigned
- DNS configuration properly set
- PowerShell administrative access
Automating Deployment with Install-ADDSForest and Install-ADDSDomain in Hindi
अब बात करते हैं Domain Controller को PowerShell से deploy करने की। Microsoft ने इसके लिए दो main PowerShell cmdlets दिए हैं — Install-ADDSForest और Install-ADDSDomain। ये दोनों cmdlets Active Directory Domain Services (AD DS) को install और configure करने के लिए use किए जाते हैं।
1. Install-ADDSForest Command (in Hindi)
अगर आप नया forest और primary domain बनाना चाहते हैं, तो Install-ADDSForest command का use किया जाता है। ये command automatically domain create करती है और उसे Domain Controller के रूप में promote करती है।
उदाहरण के लिए —
Install-ADDSForest -DomainName "riderlab.local" -DomainNetbiosName "RIDERLAB" -SafeModeAdministratorPassword (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force) -InstallDns
इस command में —
- -DomainName → नया domain name define करता है।
- -DomainNetbiosName → NetBIOS short name देता है।
- -SafeModeAdministratorPassword → Directory Services Restore Mode (DSRM) password set करता है।
- -InstallDns → DNS server भी साथ में install करता है।
2. Install-ADDSDomain Command (in Hindi)
अगर आपके पास पहले से एक forest exist करता है और आप उसमें नया domain जोड़ना चाहते हैं, तो Install-ADDSDomain command का use किया जाता है।
Install-ADDSDomain -NewDomainName "branch.riderlab.local" -ParentDomainName "riderlab.local" -Credential (Get-Credential) -InstallDns
- -NewDomainName → नया child domain name।
- -ParentDomainName → existing forest का parent domain।
- -Credential → administrator credentials मांगता है।
इस तरह PowerShell commands की मदद से आप forest और domain दोनों setup कर सकते हैं बिना GUI के।
PowerShell Automation के फायदे (in Hindi)
- एक ही script से कई Domain Controllers deploy हो सकते हैं।
- Time और human effort दोनों की बचत होती है।
- Consistent configuration होती है — हर बार एक जैसा setup।
- Script future deployments के लिए reuse की जा सकती है।
Script Examples for Seamless DC Setup and Configuration in Hindi
अब देखते हैं एक complete PowerShell script जो Domain Controller deployment को पूरी तरह automate कर सकती है।
Example PowerShell Script
# Domain Controller Deployment Script
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Import-Module ADDSDeployment
Install-ADDSForest `
-DomainName "college.local" `
-DomainNetbiosName "COLLEGE" `
-SafeModeAdministratorPassword (ConvertTo-SecureString "P@ssword123" -AsPlainText -Force) `
-InstallDns `
-Force
ऊपर की script सबसे पहले AD-Domain-Services feature को install करती है, फिर Install-ADDSForest command के जरिए domain create करती है। यह एक automatic और error-free setup process है।
Script Explanation (in Hindi)
- Install-WindowsFeature → यह command Windows Server पर Active Directory feature install करती है।
- Import-Module ADDSDeployment → AD DS के PowerShell commands को load करता है।
- Install-ADDSForest → नया forest और domain बनाता है।
- -Force → किसी भी confirmation prompt को skip करता है ताकि automation smooth रहे।
Post Deployment Configuration Steps (in Hindi)
Domain Controller deploy करने के बाद कुछ configuration steps जरूरी होते हैं:
- Server को reboot करें ताकि changes apply हो सकें।
- DNS Server configuration verify करें।
- Active Directory Users and Computers console में domain check करें।
- Replication और event logs verify करें।
Verification Commands (in Hindi)
# Verify Domain Controller installation
Get-ADDomainController
# Check domain details
Get-ADDomain
# Check forest details
Get-ADForest
इन commands की मदद से आप verify कर सकते हैं कि आपका Domain Controller सही से configure हुआ है या नहीं।
Best Practices for Domain Controller Deployment (in Hindi)
- हमेशा strong DSRM password use करें।
- Server को stable power source से connect रखें।
- Regular backup लेते रहें।
- DNS settings manually verify करें।
- Deployment के बाद event viewer logs जरूर check करें।
Exam Note (in Hindi)
अगर आप BCA, MCA या IT related course कर रहे हैं, तो यह topic exam में बार-बार पूछा जाता है। खासतौर पर Install-ADDSForest और Install-ADDSDomain commands का syntax और function बहुत important है। Practical lab में इन commands का proper execution याद रखें।
Important Points Summary (in Hindi)
| Command | Purpose |
|---|---|
| Install-ADDSForest | नया forest और domain बनाता है। |
| Install-ADDSDomain | Existing forest में नया domain जोड़ता है। |
| Get-ADDomainController | Domain Controller details check करता है। |
| Install-WindowsFeature | AD DS feature install करता है। |
FAQs
Install-ADDSForest या Install-ADDSDomain command run करें। इससे forest और domain automatically setup हो जाता है।Get-ADDomainController, Get-ADDomain और Get-ADForest commands run करके verify कर सकते हैं कि आपका Domain Controller सही से setup हुआ है या नहीं।Install-ADDSForest, Install-ADDSDomain, Install-WindowsFeature और Get-ADDomainController commands का syntax और use याद रखना बहुत जरूरी है।