--- DNS ----
nslookup hostname
nslookup
ls dominio
ls -t ns dominio
ls -t srv dominio
net time \\hostname /set /yes
ipconfig
netdiag
ipconfig /displaydns
ipconfig /flushdns
restore backup
dnslint ou nslookup
-- Repadmin Tool --
repadmin /u:usuario /pw:senha
repadmin /showpreps dominio.xxx
repadmin /showvector dc=domino, dc=xx dominio.xx
repadmin /showconn dominio.xx
repadmin /replicate dominio.xx dominio.yy dc=microsoft,dc=com
repadmin /syncall dominio.xx dc=dominio,dc=xx
-- Dcdiag tool --
dcdiag /v
dcdiag /f:LogFile
dcdiag /ferr:Errlog
dcdiag /s:Servername
Verficar se houve sucesso no registro do DNS
dcdiag /test:registerdns /dnsdomain:FQDN 'C:\System Volume Information'
-- Distributed File Replication Issues --
ntfrsutl sets servername
ntfrsutl forcerepl servername /r SetName /p DNSName
frsdiag
dfsradmin health
-- ServerManagerCmd.exe --
ServerManagerCmd.exe -query
ServerManagerCmd.exe -install
ServerManagerCmd.exe -remove
-- Instalar Roles on Server Core --
Start /w ocsetup DNS-Server-Core-Role
/w retorna depois que a instalação concluiu.
Start /w ocsetup DHCPServerCore
netsh
sc config dchpserver start=auto
net start dhcpserver
-- Configurar dns na linha de comando --
netsh interface ipv4 add dnsserver name= "ID" address= DNSIPindex=1
-- Ingressar máquina no dominio --
netdom join computername/domain:domainname /userd:username /passwordd:senha
-- Ativação Servidor --
slmgr.vbs -ato
-- Firewall Windows --
netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
netsh advfirewall set currentprofile settings remotemanagement enable
-- Powershell basic --
Get-Help
Get-Process
Set-Service
Set-Service wsusauserv -StartupType Automatic
-- Ativar remote desktop em Server Core --
scregedit.wsf /ar 0
-- Administração remota com WinRS --
winrs -r
winrm quickconfig
winrs -?
winrm set winrm/config/client @{TrustedHosts="servidor"}
--Executando comandos remotos no outro servidor com winrs--
winrs -r:servidor -u:usuario -p:senha dir
winrs -r:servidor -u:usuario -p:senha ipconfig
-- IPV6 --
netsh interface ipv6 show interface
netsh interface ipv6 show route
netsh interface ipv6 show neighbors
netsh interface ipv6 show tcpstats
-- Conectar remotamente via ipv6 --
winrs -r:servidor netsh interface isatap set route sevidor
winrs -r servidor netsh intefface ipv6 set interface 10 forwarding=enabled advertise=enabled
-- Gerenciamento de usuários --
dsadd
dsmod
dsrm
dsadd user "CN=Jesus, OU=TI, OU=Sao Paulo, DC=dominio, DC=local"
dsquery user OU=Sales,DC=WoodgroveBank,DC=com -o upn
dsquery user /? or dsquery computer/?
-- CSVDE e LDIFDE -- Arquivos Delimitados
Nenhum comentário:
Postar um comentário