Manage Active Directory With PowerShell

How to create multiple accounts with powershell script

when you’re creating user accounts with active directory(GUI), you have to right click so many times and its time consuming.but with this script you can easily create multiple accounts continuously.This is also possible with importing scv also but if its only 10 or 20 accounts its easier to use this PowerShell script.This PowerShell can be run with the server or desktop(Windows 7) which has install rsat(Remote server administration tool) or domain controller(Windows 2008 R2)

1.Open the Active Directory PowerShell module from administrative tools

1

Continue reading “Manage Active Directory With PowerShell”

Advertisement

Windows 2008 R2 Server Core initial configuration with command line and powershell

 

Windows 2008/2008 R2 server core initial configuration

Windows 2008 R2 has its own tool for do the initial configuration of the server core, but previous version of the Windows 2008R2(Windows 2008) all the initial configuration also cmd based.

 

Get the computer name type hostname name and press enter

1

Rename computer- type netdom renamecomputer WIN-1MKA1D339E9 /newname EAGLE

 

2

 

WIN-1MKA1D339E9 IS A PREVIOUS NAME AND EAGLE IS A YOUR COMPUTER NAME

Press y and press enter

3

 

For restart the computer type shutdown –r –t 00

 

5

 

4

 

 

IP Address configuration for the server core (Add ip address dns server and gateway)

Type netsh(Network shell) and press enter

1

Type int ipv4 and press enter

2

Type add address “local area connection” 192.168.1.100 255.255.255.0 (“local area connection” is a name of a local area connection. This can be find from typing ipconfig /all command)

3

For adding gateway type add address “local area connection” gateway=192.168.1.1 gwmetric-1

4

For adding dnsserver type add dnsserver “local area connection” 8.8.8.8(8.8.8.8 is a google dns server you can add your own server)

 

5

 

For Enable remote desktop(cscript c:\windows\system32\scregedit.wsf /ar 0

Activate server using cmd (slmgr.vbs /dli) this gives the current license details of the server

 

1

Now type slmgr.vbs /ato(This will automatically activate your server for 180 days(Trial Period).Make sure that your server is connected with the internet)

2

Hello world!

Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.

Here are some suggestions for your first post.

  1. You can find new ideas for what to blog about by reading the Daily Post.
  2. Add PressThis to your browser. It creates a new blog post for you about any interesting  page you read on the web.
  3. Make some changes to this page, and then hit preview on the right. You can always preview any post or edit it before you share it to the world.