Thursday, May 3, 2012

dead battery in desktop pc (sync pc time)


I knew I should replace it with new one to get its date & time running.
Or run the script every time the pc boots up:


type c:\lastdate | date
echo 08:30:00 | time
w32tm /resync
echo %date% > c:\lastdate





update the windows registry:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config]
"MaxNegPhaseCorrection"=dword:ffffffff
"MaxPosPhaseCorrection"=dword:ffffffff

Wednesday, May 2, 2012

setup VPN server for windows XP pro

Setup VPN server
-Start
-Control Panel
-Network Connections
-Create New Connection
-Setup An Advanced Connection
-Acept Incoming Connection, Next
-Allow Virtual Private Connection
-choose some users
-Specify TCP/IP addresses: 192.168.0.2 to 192.168.0.200, Allow calling computer to specify its own IP address
-specify (some where, TCP/IP) own IP: 192.168.0.1
-configure your firewall (software & router)

Connect it with windows 7
-Open Network and Sharing Centre
-Setup a new connection or network
-Connect to a workplace (dial-up or VPN connection..)
-No,Create a new connection
-Use my Internet Connection (VPN)


To test:
file sharing \\192.168.0.1
Remote Desktop 192.168.0.1