# Tuesday, August 09, 2005
Tuesday, August 09, 2005 9:31:10 AM (GMT Daylight Time, UTC+01:00) ( Windows Server 2003 )
i encountered problems trying to shut down or reboot my windows server 2003 while logged in via remote desktop.  i initiate a shut down from the start up menu, and it logs me off and quits the RD session, but doesn't power off.  If i try and connect in again with RD, it shows me a blank screen on the server for a few seconds, and then quits with no error message.

if i try running "shutdown -s" then i click OK to the message that the computer is shutting down in 30 seconds, but it never does. system log entry: "Application popup: System Shutdown : The system is shutting down. Please save all work in progress and log off. Any unsaved changes will be lost. "

finally, if i push the power button it doesn't complete the shut down either. (i have 'shutdown' selected in power management for when the button is pressed).  i do see an event ID 26 in the system log at the time i pressed the button, with the message 'Application popup: Windows : Other people are logged on to this computer. Shutting down Windows might cause them to lose data. Do you want to continue shutting down?'.  this is a bit useless because the server has no mouse/keyboard/monitor, and i have no way to interact that message except using remote desktop (which doesn't even show that message on screen if i am logged in via RD), and i want to force a software shutdown without being asked questions i can't answer!

finally i found a work around to use the command line tool shutdown.exe with some more severe arguments.  This saves my raid array re-synching from hard-resets.

To Reboot:
shutdown.exe -r /t 10 /d p:1:1 /c "Maintenance, Planned"
To Shutdown:
shutdown.exe -s /t 10 /d p:1:1 /c "Maintenance, Planned"
Comments [2] | | # 
# Tuesday, August 02, 2005
Tuesday, August 02, 2005 1:43:45 PM (GMT Daylight Time, UTC+01:00) ( General )
How to properly use the javascript string replace function
Comments [1] | | # 
# Monday, August 01, 2005
Monday, August 01, 2005 2:59:54 PM (GMT Daylight Time, UTC+01:00) ( Asp.Net )
Scrollable DIV css code, useful for big checkboxlists etc
Comments [1] | | # 
# Thursday, June 30, 2005
Thursday, June 30, 2005 3:50:42 PM (GMT Daylight Time, UTC+01:00) ( Asp.Net )
Crystal Reports for .Net, locked file when exporting to PDF with a crHtmlText field
Comments [0] | | # 
Thursday, June 30, 2005 3:48:38 PM (GMT Daylight Time, UTC+01:00) ( Windows Server 2003 )
IIS6 basic authentication (challenge/response) with PHP not working
Comments [1] | | # 
# Tuesday, May 24, 2005
Tuesday, May 24, 2005 11:45:00 PM (GMT Daylight Time, UTC+01:00) ( Asp.Net )
A few useful functions for importing and exporting data in asp.net. Excel, PDF, Datasets, DataGrids, etc.
Comments [7] | | # 
# Wednesday, May 18, 2005
Wednesday, May 18, 2005 6:39:12 PM (GMT Daylight Time, UTC+01:00) ( Windows Server 2003 )
HowTo: set up disk status monitoring (i.e. for a raid array) and send results by email
Comments [2] | | # 
# Wednesday, May 11, 2005
Wednesday, May 11, 2005 1:33:48 PM (GMT Daylight Time, UTC+01:00) ( Asp.Net )
Fix: Forms authentication redirects to a bogus default.aspx page, with RedirectFromLoginPage()
Comments [0] | | # 
# Tuesday, April 26, 2005
Tuesday, April 26, 2005 5:00:35 PM (GMT Daylight Time, UTC+01:00) ( Database )
An SQL Query to find duplicate values
Comments [0] | | # 
# Monday, April 04, 2005
Monday, April 04, 2005 5:51:14 PM (GMT Daylight Time, UTC+01:00) ( Database )
MS Access: using the LIKE function with a parameter
Comments [0] | | #