Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts
Tuesday, January 9, 2018
Monday, August 22, 2016
Wednesday, February 3, 2016
Thursday, July 18, 2013
Windows Manual Time Synchronization
w32tm /config /manualpeerlist:time.nist.gov,0x8 /syncfromflags:MANUAL
w32tm /config /update
net time /querysntp
w32tm /resync
w32tm /config /update
net time /querysntp
w32tm /resync
Tuesday, September 4, 2012
Windows Firewall from the command line
netsh firewall show state
netsh firewall set opmode mode=DISABLE
netsh firewall set opmode mode=ENABLE exceptions=DISABLE
netsh firewall set opmode mode=ENABLE exceptions=ENABLE
More about it: http://support.microsoft.com/kb/947709
netsh firewall set opmode mode=DISABLE
netsh firewall set opmode mode=ENABLE exceptions=DISABLE
netsh firewall set opmode mode=ENABLE exceptions=ENABLE
More about it: http://support.microsoft.com/kb/947709
Wednesday, July 27, 2011
Windows XP schtasks command line utility
Windows XP includes a commandline admin utility named schtasks. Schtasks allows an administrator to create, delete, query, change, run and end scheduled tasks on a local or remote system.
Parameter List:
/Create : Creates a new scheduled task.
/Delete : Deletes the scheduled task(s).
/Query : Displays all scheduled tasks.
/Change : Changes the properties of scheduled task.
/Run : Runs the scheduled task immediately.
/End : Stops the currently running scheduled task.
/? : Displays this help/usage.
Parameter List:
/Create : Creates a new scheduled task.
/Delete : Deletes the scheduled task(s).
/Query : Displays all scheduled tasks.
/Change : Changes the properties of scheduled task.
/Run : Runs the scheduled task immediately.
/End : Stops the currently running scheduled task.
/? : Displays this help/usage.
Tuesday, July 26, 2011
Using Windows Script for sending keys to an application
Open the calculator and show the About message for 3 seconds:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("calc")
WScript.Sleep(100)
WshShell.AppActivate("Calculator")
WScript.Sleep(100)
WshShell.SendKeys("%H")
WScript.Sleep(500)
WshShell.SendKeys("{DOWN}")
WScript.Sleep(100)
WshShell.SendKeys("~")
WScript.Sleep(3000)
WshShell.SendKeys("{ESC}")
Close the Calculator:
Set WshShell = WScript.CreateObject("WScript.Shell")
Result = WshShell.AppActivate("Calculator")
WScript.Sleep(100)
If Result = True Then
WshShell.SendKeys "%{F4}"
End If
References:
http://technet.microsoft.com/en-us/library/ee156592.aspx
http://msdn.microsoft.com/en-us/library/8c6yea83(v=vs.85).aspx
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("calc")
WScript.Sleep(100)
WshShell.AppActivate("Calculator")
WScript.Sleep(100)
WshShell.SendKeys("%H")
WScript.Sleep(500)
WshShell.SendKeys("{DOWN}")
WScript.Sleep(100)
WshShell.SendKeys("~")
WScript.Sleep(3000)
WshShell.SendKeys("{ESC}")
Close the Calculator:
Set WshShell = WScript.CreateObject("WScript.Shell")
Result = WshShell.AppActivate("Calculator")
WScript.Sleep(100)
If Result = True Then
WshShell.SendKeys "%{F4}"
End If
References:
http://technet.microsoft.com/en-us/library/ee156592.aspx
http://msdn.microsoft.com/en-us/library/8c6yea83(v=vs.85).aspx
Wednesday, November 24, 2010
Make WinXP’s NTP client poll more frequently (hourly)
At the registry key:
Change the value SpecialPollInterval to 3600
3600 seconds = 1 hour
Save and restart the Windows Time service:
net stop "Windows Time"
net start "Windows Time"
net start "Windows Time"
Thursday, September 2, 2010
Listing Multicast group memberships
In Windows XP:
C:\>netsh interface ip show joins
Interface Addr Multicast Group
--------------- ---------------
172.17.17.223 224.0.0.1
172.17.17.223 239.255.255.250
In Solaris and other UNIXes:
$ netstat -gn
IPv6/IPv4 Group Memberships
Interface RefCnt Group
--------------- ------ ---------------------
lo 1 224.0.0.1
eth0 1 224.0.0.1
lo 1 ff02::1
eth0 1 ff02::1:ff09:ac30
eth0 1 ff02::1
C:\>netsh interface ip show joins
Interface Addr Multicast Group
--------------- ---------------
172.17.17.223 224.0.0.1
172.17.17.223 239.255.255.250
In Solaris and other UNIXes:
$ netstat -gn
IPv6/IPv4 Group Memberships
Interface RefCnt Group
--------------- ------ ---------------------
lo 1 224.0.0.1
eth0 1 224.0.0.1
lo 1 ff02::1
eth0 1 ff02::1:ff09:ac30
eth0 1 ff02::1
Labels:
Multicast,
Solaris,
subscription,
UNIX,
Windows
Monday, July 12, 2010
Taskkill
Ends one or more tasks or processes. Processes can be killed by process ID or image name.
Kill a process based on its window's name:
taskkill /fi "windowtitle eq TASOS"
Kill a process based on its window's name:
taskkill /fi "windowtitle eq TASOS"
Thursday, June 10, 2010
Windows Network Tips
ipconfig /all
ping
tracert
pathping
netstat
nslookup
netsh
netsh diag gui
netsh interface ip show joins
systeminfo
net statistics workstation
uptime
hh ntcmds.chm
Subscribe to:
Posts (Atom)