• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    Restart service in a bat job

    April 24th, 2008

    net stop “World Wide Web Publishing Service”
    net start “World Wide Web Publishing Service”


    Disable ICMP Redirect in Windows XP and 2003

    April 17th, 2008

    To disable it, find this path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    Locate this key: EnableICMPRedirect
    change the value from 1 to 0

     

     


    Scheduled restart

    April 5th, 2008

    Run this command from a .bat file:
    shutdown.exe -r -f -t 60 -c “Windows Server 2003 will now restart in 1 minute…”

    Make a scheduled job that runs the bat file.


    Show uptime from command promt

    April 5th, 2008

    net statistics server
    (look after statics since…)


    Exit mobile version