Lapas

otrdiena, 2015. gada 20. oktobris

Find nonregular character in text file

Open file with Notepad++ -> Find
Enable regular expression.
Search for [^\x00-\x7F]+

otrdiena, 2015. gada 13. oktobris

Reset windows network state

Reset WINSOCK entries to installation defaults : netsh winsock reset catalog (change static ip to dhcp)
Reset TCP/IP stack to installation defaults : netsh int ip reset reset.log
Flush DNS resolver cache : ipconfig /flushdns 
Renew DNS client registration and refresh DHCP leases : ipconfig /registerdns 
Flush routing table : route /f (reboot required)

Change windows 8/2012 network status.

Change windows 8/2012 network status from Public to Private
Open PowerShell
Get your NIC InterfaceIndex: Get-NetConnectionProfile
Change status: Set-NetConnectionProfile  -InterfaceIndex XXX -NetworkCategory Private

Test server dns and dc

Open command prompt

NLTEST /DSGETDC:dc.local

DCDIAG /TEST:DNS /V /E /S:dc.local