Вы находитесь на странице: 1из 6

Day4: Task1: How to merge Companies via Active Directory Trust.

pci + bdo = bdo!, pal + asain spirit, =

step1: DNS integration: both will work.

dns manager
right click you mcsaM.com, properties, allow zone transfer to any zone.

step2: in forward lookup zone, new secondary zone: mcsaK.com

step3: choose who will DO nothing, and DO Everything!

in active directory, domains and trust, select properties, trust, new Trust->

Task2: NIC teaming or LAN Card Fusion.

NiCTeaming you can combine 2 up to 8 LANcards!

step1: go to server manager, select local server, select NIC teaming

TASK3: Entering the world of Command Line or Powershell:

Get-NetIPAddress ipconfig->

Get-NetIPAddress | ? AddressFamily -eq IPv4 | FT -Autosize

ifIndex:

Test-NetConnection www.mcsaM.com, ang bagong ping!

c>Test-NetConnection www.mcsaM.com -InformationLevel Detailed

c>Resolve-DnsName www.mcsaM.com

c>New-NetIPAddress -InterfaceIndex 3 -IPAddress 192.168.m.8


-PrefixLength 24
c>test-Connection 192.168.m.1

Give it a DNS server:

c>Set-DnsClientServerAddress -InterfaceIndex 3
-ServerAddress 192.168.m.1
c>Resolve-DnsName www.findloveM.com

c>rename-computer scoreM
c>restart-computer

Microsoft Knows you will a hard time: sconfig.cmd

powershell: DNS super commands:

c> Add-DnsServerPrimaryZone -name "testpower.com"


-ZoneFile "testpower.com.dns"
c>hostname
c>Add-DnsServerResourceRecord -ZoneName testpower.com
-A -Name dcM
-IPv4Address 192.168.m.1
c>ping dcM.testpower.com
#Create an Alias:
c> Add-DnsServerResourceRecord -ZoneName testpower.com
-Cname www
-hostname dcM.testpower.com
c>ping www.testpower.com

c>get-Alias dir
c>Get-Childitem
c>Get-Alias cd
c>Set-Location d:\
d:\Get-Childitem
d>Set-location mcsa2k16
d>Set-location WebsiteClass\
PS d:\mcsa2k16\WebsiteCLASS\datingbiz

New-WebSite -name "bilisGawa" -hostheader "www.testpower.com"


-PhysicalPath "d:\mcsa2k16\WebsiteCLASS\datingbiz"

Task4: PowerShell in Active Directory:

New-ADUser C.Dalisay
New-ADUser K.Chu
New-ADUser B.Paras

Create 3 Players:
Create all the top 200 Nba players in 5 seconds or ur kneel tom!

Jordan,Michael
Bryant,Kobe
James,Lebron
Durant,Kevin
Leonard,Kawhi
Curry,Stephen
Thomson,Klay
Green,Daymond
Westbrook,Russel
Harden,James
Pippen,Scottie
Davis,Anthony

create OU
CHICAGO BULLS
LA LAKERS
DALLAS MAVS
GOLDEN STATE
TORONTO RAPTORS
New York KNicks

New-ADOrganizationALUnit -Name "Chicago Bulls"

Task6: How to Destroy YOur classmate via powershell:


aka wasakan ng PC!

step1: allow your pc to be remotely Powershelled:


sa SERVER Core:
Configure-SMremoting -enable
Enable-PSremoting -force
Set-Service WinRM -StartMode Automatic
Set-Item wsman:\Localhost\Client\TrustedHosts -value *
Y

step2: Connect to your classmates PS via variables:


SA Tunay na PC:::
$ip1 = "192.168.m.8"
$up1 = Get-Credential
$pp1 = New-PSsession -ComputerName $ip -Credential $up
Get-PSsession
anong id ang nakikita mo?
Enter-PSsession -id __

$hisip = "200.0.0.k"
$himup = Get-Credential
$pasok = New-PSsession -ComputerName $hisip -Credential $himup
Get-PSsession
anong id ang nakikita mo?
Enter-PSsession -id __

habang nasa Loob ng serverCore:

c>Install-WindowsFeature Web-WebServer -IncludeManagementTools


c>Install-WindowsFeature dns -IncludeManagementTools

Create a Network Share in Score Remotely:\

New-Item -path c:\networkfiles -type directory


Write-Output "This is a test network file." | out-file
c:\networkfiles\test.txt
New-SmbShare -name files -path c:\networkfiles

TASK7: HOW TO KNOW IF YOUR PC/LAPTOP/dEVICES ARE ABOUT TO FAIL.


HOW TO DETERMINE IF DEVICES ARE HEALTHY.

RUN: perfmon.exe

COUNTERS: WHAT YOU WILL MONITOR:

CPU:
MOTHERBOARD:
VIDEOCARD: ====
ProcessorTime,
Interrupts/Sec = PC: below 2,000.124, laptop: 2500-3000k.
_________
MEMORY: memory = pages/sec =
AvailableMbytes=

HDD: %diskTime = 60%


Ave.DiskQueueLength = .0001, .1 -> .9, 1 = goodbyeDrive!
Buy a New Disk, if

NETWORK:
do you need NIC TEaming/fusion or NOT.

step2: How to convince your purchase dept, to buy you an alieware


Gaming Laptop. with Justification!

Data collector set: records you pc at its worst moment in time!

assigment: is your pc at home healthly or dying?? = sell it.


alog your HDD, does it make sound = AveDiskquentl = .3

Task8: Hell Monday: down mail, int, SQL, Red!!


. sat,sun
how to survive hellish monday, if syet happens, what to do.
1. pray for guidance, accept it., Mindset is Key!
2. Go to Eventvwr.msc

Assigment Monitor Your Event Viewer @ least once a Day!


Assigment for you: if you 28 yours: heartRate: 78>/minute.
Solution: 1/2 day. -> 1day

TASK9: hoW TO MONITOR IF YOU ARE GETTING HACKED REAL TIME!

step1: silently, hack your classmate thru smb/ipc attack..


cmd
c>net use \\200.0.0.k\ipc$ /user:administrator
c>net use x: \\200.0.0.k\c$
x:
x:>dir /ah

how to know if someone is entering you from behind:

c>netstat -s -p tcp

or
powershell>
Get-NetTCPConnection | ? State -eq Established | FT -AutoSize

TASK10: HOW TO SAVE SERVER STORAGE IN YOUR OFFICE:


USE QUOTAS.

TASK11: HOW TO CREATE A BACKUP OF YOUR MOST IMPORTANT SERVER,


DOMAIN CONTROLLER -> SECONDARY DC.

TASK12: WINDOWS SERVER REMOTE ADMINISTRATION:

BestPractice:
Win10(you) ---> ServerFarm(winServer,2k12,Linux,etc..)=superLamig!
CR is far away!
Install remote admin tools on
win10! RemoteAdminTools.Msi --> winServer
some people: VNC client.

POST pizza Break:

in Powershell:

create OU = senators
create users: = 10 senators/ isa, bulk.
Task13: Using Window Server lic as a Personal Desktop for Career GreatNess!
Win10 = 2 years, 3 years, win7/8 = 5 years = SAYANG!
Server = 5 years

TASK14: CONFIGURING YOUR WINDOWS SERVER AS A CISCO ROUTER REPLACEMENT.

IN cISCO:
enable
configure Terminal
hostname PLDT-ISP
enable secret pass
line console 0
password pass
login
exec-timeout 0 0
line vty 0 14
password pass
login
exec-timeout 0 0
Interface Vlan 1
no shutdown
ip add 200.0.0.200+M 255.255.255.0
do ping 200.0.0.__
end
copy run start

Part2: BGP runs the entire internet, Bgp on Cisco:ccn*

config terminal
NO logging Console
ip routing
int Lo 100
ip add 192.168.100.1 255.255.255.0
int Lo 101
ip add 192.168.101.1 255.255.255.0
int Lo 102
ip add 192.168.102.1 255.255.255.0
int Lo 103
ip add 192.168.103.1 255.255.255.0
Router Bgp 200
bgp log-Neighbor-changes
Redistribute connected
Neighbor 200.0.0.__ remote-as ___

On Microsoft!!!
c>Powershell
ps>
Install-WindowsFeature RemoteAccess

Install-WindowsFeature RSAT-RemoteAccess-Powershell

Install-WindowsFeature Routing

Install-RemoteAccess -VpnType RoutingOnly

###Enable BGP on widnowsServer: Juniper,Cisco,Huawei,MsSErver

Add-BgpRouter -BgpIdentifier 200.0.0.__ -LocalASN M


Add-BgpPeer -LocalIPAddress 200.0.0.__
-PeerIPAddress 200.0.0.200+m
-PeerAsn 200
-Name PLDT-ISP

Add-BgpCustomRoute -network 172.16.0.0/24

Add-BgpCustomRoute -network 172.16.1.0/24

Add-BgpCustomRoute -network 172.16.2.0/24

Add-BgpCustomRoute -network 172.16.3.0/24

Add-BgpCustomRoute -network 172.16.4.0/24

Add-BgpCustomRoute -network 172.16.5.0/24

Add-BgpCustomRoute -network 172.16.6.0/24

Add-BgpRouteAggregate -Prefix 172.16.0.0/22

FinalCheck: Is PLDT-ISP and MSRouter talking via BGP:


end
show ip bgp summary
show ip route bgp
B
B
B

c>route print

final task:

final ASSIGMENT: the assigment that will change your life!

1. get 16gb of ram


2. get 128gb of SSD:
3 install win2k16 on 128 ssd:
4. go to www.microsoft.com
download: sharepoint2016eval180 + MsSQL2016-180