Benutzer:MovGP0/Administration

aus Wikipedia, der freien Enzyklopädie
Zur Navigation springen Zur Suche springen
   MovGP0        Über mich        Hilfen        Artikel        Weblinks        Literatur        Zitate        Notizen        Programmierung        MSCert        Physik      

Configure Network

[Bearbeiten | Quelltext bearbeiten]

Set static IP address

[Bearbeiten | Quelltext bearbeiten]

find interface index

Get-NetIPInterface

setup interface

New-NetIPAddress InterfaceIndex 12 IPAddress -10.0.0.136 PrefixLength 24 -DefaultGateway -10.0.0.138 -InterfaceAlias "Ethernet"

alternative method

sconfig.cmd
Set-DNSClientServerAddress InterfaceIndex 12 -ServerAddresses ("10.0.0.137","10.0.0.138","8.8.8.8","4.4.4.4")

oder

Set-DNSClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("10.0.0.137","10.0.0.138","8.8.8.8","4.4.4.4")
Rename-Computer Server
Restart-Computer

Setup Active Directory

[Bearbeiten | Quelltext bearbeiten]

Determine if AD is installed

[Bearbeiten | Quelltext bearbeiten]
Get-WindowsFeature AD-Doamin-Services
Install-WindowsFeature AD-Domain-Services IncludeManagementTools

or

Get-WindowsFeature AD-Domain-Services | Install-WindowsFeature

setup a new AD forest

Install-ADDSForest -DomainName "dirry.eu" -DomainNetbiosName "dirry"
New-ADUser <username> Givenname <Firstname> Surname <Family>
DNS Settings for AD[1]
Name Record Type Value
(Priority Weight Port Domain)
lan CNAME dirry.lan
dc1.ad.dirry.lan TXT "Active Directory Domain Controller"
dc1.ad.dirry.lan CNAME ad.dirry.lan.
ad.dirry.lan. A 10.0.0.136
_ldap._tcp.ad.dirry.lan. SRV 0 0 389 dc1.ad.dirry.lan.
_kerberos._tcp.ad.dirry.lan. SRV 0 0 88 dc1.ad.dirry.lan.
_ldap._tcp.dc._msdcs.ad.dirry.lan. SRV 0 0 389 dc1.ad.dirry.lan.
_kerberos._tcp.dc._msdcs.ad.dirry.lan. SRV 0 0 88 dc1.ad.dirry.lan.

Remote Management

[Bearbeiten | Quelltext bearbeiten]
Enable powershell remoting
Enable-PSRemoting
add client computer to domain

benötigt Admin-Rechte

Add-Computer 
Restart-Computer
connect

login with domain user (ie. "lan/User")

Enter-PSSession

install

Get-WindowsImage -ImagePath D:\sources\install.wim
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart -Source D:\sources\install.wim:2

uninstall

Uninstall-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart
  1. Configuring Berkeley Internet Name Domain (BIND) to Support Active Directory. In: TechNet. Microsoft, 1. Juni 2001, abgerufen am 4. Februar 2014 (englisch).