Aug 21, 2009
Aug 19, 2009
Startup & Shutdown Oracle DB
set oracle_sid =
sqlplus /nolog
conn system/manager as sysdba
shutdown abort
startup
sqlplus /nolog
conn system/manager as sysdba
shutdown abort
startup
Aug 4, 2009
Shutdown, Reboot and Logoff Windows with scripts
| XP Pro | WMIC OS Where Primary=TRUE Call Shutdown | Immediate shutdown | ||
| XP Pro | WMIC OS Where Primary=TRUE Call Reboot | Immediate reboot | ||
| XP | SHUTDOWN -r -t 10 | Delayed reboot | ||
| XP | SHUTDOWN -s -t 01 | Delayed shutdown | ||
| XP | SHUTDOWN -i | Interactive use with GUI | ||
| TS | LOGOFF 16 /SERVER:termserv1 | Logoff | ||
| TS | TSSHUTDN 45 /SERVER:termserv1 /POWERDOWN /DELAY:20 /V | Delayed poweroff | ||
| W2K (5) | DEVCON Reboot | Reboot | ||
| W2K | RUNDLL32 PowrProf.dll, SetSuspendState | Activate suspend state | ||
| W2K | RUNDLL32 USER32.DLL,LockWorkStation | Lock | ||
| W2K | Learn how to shutdown a remote Windows 2000 computer | Shutdown | ||
| NT+ (1) | PSSHUTDOWN \\mynt4srv -K -F -T 20 | Delayed poweroff | ||
| NT+ (1) | PSSHUTDOWN \\myw2ksrv -O -F -T 0 | Logoff | ||
| NT4+RK W2K+RK | SHUTDOWN /L /R /T:0 /Y | Reboot | ||
| NT4+RK W2K+RK | SHUTDOWN /L /T:10 /Y /C | Delayed shutdown | ||
| NT4 | See Reboot NT on my Solutions found in alt.msdos.batch page | Reboot | ||
| NT4 | RUNDLL32 USER32.DLL,ExitWindowsEx | Logoff | ||
| Win98/ME | RUNDLL32 SHELL32.DLL,SHExitWindowsEx n | Any | ||
| Win98/ME | RUNONCE.EXE -q | Reboot (4) | ||
| Win98 | RUNDLL32 KRNL386.EXE,exitkernel | Poweroff | ||
| Win9* | RUNDLL USER.EXE,ExitWindows | Shutdown (2) | ||
| Win9* | RUNDLL USER.EXE,ExitWindowsExec | See Remarks | ||
| Win9* | RUNDLL SHELL.DLL,RestartDialog | Restart dialog | ||
| Win31* | ECHO G=FFFF:0000| DEBUG | Task Manager popup | ||
| DOS | ECHO G=FFFF:0000| DEBUG | Reboot | ||
| PowerShell | Stop-Process -processname * | Blue Screen | ||
| KiXtart | $RC = SHUTDOWN( "\\server", "Shutting down...", 10, 1, 0 ) | Delayed shutdown | ||
| KiXtart | $RC = SHUTDOWN( "\\server", "", 0, 1, 1 ) | Reboot | ||
| KiXtart | $RC = LOGOFF( 1 ) | Logoff | ||
| KiXtart | $RC = SetSystemState( 0 ) | Lock | ||
| KiXtart | $RC = SetSystemState( 1 ) | Standby | ||
| KiXtart | $RC = SetSystemState( 2 ) | Hibernate | ||
| KiXtart | $RC = SetSystemState( 3, 0 ) | Poweroff | ||
| Perl | InitiateSystemShutdown( $sComputer, $sMessage, $uTimeoutSecs, $bForce, $bReboot ) | |||
| Perl | InitiateSystemShutdown( "", "", 0, 1, 1 ) | Reboot | ||
| Perl | InitiateSystemShutdown( "", "Going down...", 10, 0, 1 ) | Delayed reboot | ||
| Perl | InitiateSystemShutdown( "10.0.1.16", "Sorry", 5, 1, 0 ) | Delayed shutdown | ||
| Regina Rexx | RC = W32SysShutdown( how [,force] ) | |||
| Regina Rexx | RC = W32SysShutdown( "P", "F" ) | Poweroff | ||
| Regina Rexx | RC = W32SysShutdown( "L", "N" ) | Logoff | ||
| WSH | [1] Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")[2] [3] for each OpSys in OpSysSet[4] OpSys.Reboot()[5] next | Reboot | ||
| WSH | Replace line 4 in the script above with this one: [4] OpSys.Shutdown()to shut down the PC instead of rebooting it. | Shutdown | ||
| WSH | [1] Const EWX_LOGOFF = 0[2] [3] Set wmi = GetObject("winmgmts:{(Shutdown)}")[4] Set objSet = wmi.InstancesOf("Win32_OperatingSystem")[5] [6] For Each obj in objSet[7] Set os = obj[8] Exit For[9] Next[10] [11] os.Win32Shutdown EWX_LOGOFF | Logoff | ||
| WSH | Set objShell = CreateObject( "Shell.Application" ) | Open the Shutdown dialog | ||
| OS/2 | START /PM SHUTDOWN && EXIT | Shutdown | ||
| OS/2 | SETBOOT /B | Reboot | ||
| OS/2 | SETBOOT /IBD:C: | Reboot | ||
| OS/2 | SETBOOT /IBA:nonsense | Shutdown | ||
| OS/2 | LOGOFF | Logoff |
Subscribe to:
Posts (Atom)