Server Administration: Essential Tasks and Configuration
Creating a Domain
Server Manager: Add Roles and Features, Active Directory Domain Services.
Adding a Computer to the Domain
Steps:
- Control Panel
- System
- Change Settings
- Computer Name: Change
- Member of: Input domain
Creating Local and Domain Accounts
Domain Accounts
Steps:
- Control Panel
- System
- Administrative Tools
- AD Users and Computers
- Right-click, New User, and create the user
- Right-click on the user created, Add to group, Find now
- Click on the group to add
Local Accounts
Steps:
- Login to local host
- System
- Administrative Tools
- Computer Management
- Local Users and Groups
- Right-click on users, New user
- Right-click on the user created, Properties, Member of, Add to a group
Adding Server 2008 as a Second DC
Steps:
- Control Panel
- System
- Change Settings
- Under computer name, click Change
- Member of: Type the domain to add to
Adding a Virtual NIC to a VM
Steps:
- Go to Hyper-V Manager
- Virtual Switch Manager
- New virtual network switch
- Click on external
- Create and name the switch
Creating a Virtual Switch and Adding VMs
Steps:
- Hyper-V Manager
- Settings on VM that is off (right-click)
- Add hardware
- Choose the virtual switch created
Remotely Managing Server 2012
RDP (Remote Desktop Protocol)
Steps:
- Open remote desktop connection
- Enter computer to connect to
- Enter credentials to connect
Computer Management
Steps:
- Open MMC
- Click on File, Add or remove snap-in
- Add computer management
- Select another computer to access
RSAT (Remote Server Admin Tool)
Steps:
- Control Panel
- Administrative Tools
- Click on DNS
- Input computer/domain to connect to
Creating a Custom MMC
Steps:
- Open MMC
- Click on File, Add or remove snap-in
Creating a User in PowerShell or CMD
Command:
dsadd user "cn=dsuser, ou=test, dc=yournamedom.cent, dc=cent"
Creating and Mounting a Hard Disk for a VM
Steps:
- Go to Hyper-V Management
- Access the settings for the desired VM (ensure the VM is off)
- Select add hardware, SCSI, New hard drive, VHDX, Dynamically expanding
- Once created, turn on the VM
- Open Computer Management
- Click Disk Management
- Turn hard drive online and it will automatically mount to the VM
- Initialize disk, Select MBR then hit okay
- Right-click and select new simple volume, Follow the wizard
- Make sure it is NTFS
Creating an iSCSI LUN and Mapping Server 2012
Steps:
- Open a browser and access 172.16.1.100
- The management interface to the Iomega SAN should appear
- Access Shared Storage
- Under Shared Storage Type, change the folder to ISCSI Drive
- Name the share “yourname”
- Create a .1 GB storage (100MB)
- Click apply
- Verify that you have created an ISCSI target
- Access Control Panel, Click on ISCSI Initiator
- Start the service and allow the service through the firewall
- Under ISCSI properties, select the Discovery tab
- Click on Add Portal, Enter the IP address of your SAN Server
- Click okay (you might get an error)
- Access the Target tab, Click Refresh
- Verify that you can see your ISCSI Target
- Check “automatically restore this connection when the computer starts” and click OK
- You should be connected
Mounting the iSCSI LUN
Steps:
- Access Disk Management
- You should see an unknown disk
- Right-click and select Initialize Disk
- Select MBR and click OK
- The disk should be Online
- Right-click on the free space and create a drive
- Format the drive
- Verify it is NTFS
Running PowerShell Cmdlets
Examples:
Get-Command
Get-Help
Managing the Firewall on Server Core
Cmdlets:
Get-NetFirewallRule | format-table name, displaygroup, action, direction, enabled -autosize
Enable-NetFirewallRule -DisplayGroup “Remote Event Log Management”
Enable-NetFirewallRule -DisplayGroup “Remote Server Management”
Enable-NetFirewallRule -DisplayGroup “File And Printer Sharing”