reboot

How do I detect if a Windows server is available after a reboot?

I want to automate a Windows 2000+ server reboot process using Task Scheduler or similar tool to remotely reboot a server and wait for it to come back up. I can issue shutdown or psshutdown to remotely reboot, but I want something better than sleep to wait for it to come back. I need to verify it is back online within n minutes or thro...

How to force a reboot instead of shutdown (XP)

I have a Windows XP SP2 virtual machine which can be accessed via VNC. It's also running Deep Freeze so there should be no problem in forcing it to reboot. I am looking for a way to force the operating system to reboot instead of shutting down or completely remove the ability to shut down the machine using software applications (such as ...

Comparing cold-start to warm start

Our application takes significantly more time to launch after a reboot (cold start) than if it was already opened once (warm start). Most (if not all) the difference seems to come from loading DLLs, when the DLLs' are in cached memory pages they load much faster. We tried using ClearMem to simulate rebooting (since its much less time c...

How to force restart a Windows box using VBScript?

I'm trying to find a way to force Windows to reboot, and I am running into issues. I've tried Set OpSysSet = GetObject("winmgmts:{authenticationlevel=Pkt," _ & "(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where "_ & "Primary=true") for each OpSys in OpSysSet retVal = OpSys.Reboot() next I've also tried...

Why do some installers need to restart the computer before you run the program?

I'm fairly new to deploying desktop applications, so this is the first time I'm building an installer for my software. Currently, the first time I run my software after installing it, it crashes. After that, it runs fine. I'm still in the process of debugging this issue, but I've noticed that a reboot immediately after installing and ...

wcf certificate Keyset does not exist problem after reboot

Hi There are two projects in one VS solution: client(wpf app) and а wcf service lib. I'm using Message security and a custom AspNetMembershipPrivider on th server side to validate username and pass. As i'm not using Windows security, I had to use certificate on server to establish secure chanell, and what i did: - opened my local IIS ma...

How to you determine when Windows is done rebooting?

I am using the Windows Update API to update a bunch of VM's. With Windows Update comes the inevitable reboots. Can anyone think of a way that I could tell from a remote server if the windows box has indeed finished its reboot? All ideas or thoughts would appreciated. EDIT: Because the VM's are in Lab Manager and using a fenced configura...

reboot Linux box from user space

I need to reboot a Linux box from a user space process. I want to have the following behavior: sync file systems not attempt to gracefully stop processes, go to runlevel 5/6, etc., for I assume things are bad and that would fail Can those requirements be achieved together at all? I was planning to write a 'b' into proc/sysrq-trigge...

bash/cygwin/$PATH: Do I really have to reboot to alter $PATH?

I wanted to use the Python installed under cygwin rather than one installed under WinXP directly, so I edited ~/.bashrc and sourced it. Nothing changed. I tried other things, but nothing I did changed $PATH in any way. So I rebooted. Aha; now $PATH has changed to what I wanted. But, can anyone explain WHY this happened? When do cha...

Reboot machine from a C#/WPF app

I want to have a button in my WPF app that restarts the machine. This app is always running on Vista. The fact that a quick search hasn't turned anything up makes me think this might be harder than I wish it was... any ideas? Thanks! ...

I found this Reboot Vista.vbs script. Can you help with it ?

Hi guys. Found this Reboot Vista.vbs script on a number of forums. Seems like the whole post ( text including the code ) was posted on many forums. So I don't know who the original author is. Heres the code here: Option Explicit On Error Resume Next Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff ...

Notification when laptop is switch on (boot)

Hi I need to know, is that possible to get a notification through email whenever my laptop is switched on or is connected to internet ? An alternative is to get notification when set service 'Starts' on system boot. Need C# code for this service. Thanks & regards Khushi ...

Does installing ASP.NET MVC require a server reboot?

Does installing ASP.NET MVC require a server reboot? I've set up quite a few ASP.NET MVC sites on production servers in my time, but today, I'm deploying to a server without MVC installed for the first time. So, I installed the latest MVC release, restarted the IIS and went through the usual hoops to set up a MVC website on IIS6 (aspne...

Is it possible to prompt for restart machine after installation using WiX?

Is it possible to prompt for restart machine after installation using WiX? ...

Windows service cannot access shared folder at boot time until manually started or Windows Explorer fiddled

I have a Windows service running in local system that simply keeps trying to access a file with a UNC path of the form \\machine\folder\file.txt until it succeeds. It succeeds immediately when I start the service manually, but on reboot it gets System Error 53 (Network Path not found) until I do something such as logoff or "fiddle" with ...

How can I get the Windows last reboot reason

I'd like to know what is the Windows API function (if any exists) that provides information about the last Windows reboot source. There are three main possible causes: The computer crashed on a blue screen A user or a program shutdown/restarted the computer A power lost The more details I can get the better. However, I need to know a...

How to implement such a function in PHP?

It should test if a specific port is open on localhost,if not,reboot. It's run in windows. ...

Adding .NET App to Registry to Launch after Reboot to Complete Certain Actions

If my app needs to reboot the system to change something and I'd like it to automatically continue its actions after the reboot, how can I add a key to the registry (more importantly, where in the registry) to launch the app on the first reboot? Just to be clear, I want this reboot-launch to happen only once. In other words, once the com...

Restart remote target machine with gdb

I'm debugging a Mac OS X kernel via a remote target (target remote-kdp) when it gets into a kernel panic. I can introspect the state of the machine at the time, but if I need to restart the machine I have to do a hard power down, which involves direct physical access. This means I can't script introspecting kernel panics. Is it possible...

OS Reboot, Shutdown, Hibernate, Sleep, Wakeup (Windows Python)

Hi, I'm looking for an automatize way of doing Windows Power Management functions: - Reboot - Shutdown - Hibernate - Sleep - Wakeup Is there a Python module to cover this functionality? Of course any other solutions are also appreciated... ...