Jump to content

Enter maintenance mode via cmd


eXpress
 Share

Recommended Posts

Hi there

Is it possible to start the maintenance mode via the commandline? (e.g. PCMonitorManager.exe call with param).

My server performs a weekly reboot. I have a shutdown script which ends all services, task, etc. and a start script which starts them again after the reboot.

Now, i have to manually start the maintenance mode, wait until the reboot over night is done, and then end the maintenance mode manually again.

Is it possible that i can start the maintenance mode in my shutdown script, and exit maintenance mode in the start script?

Thanks for any hint :-)

Regards

Simon

Link to comment
Share on other sites

  • Administrators

Or you can create a .reg file for the enabled and disabled file and call it from terminal like this:

regedit.exe /s path_to_your_reg_file
or even better you can create batch scripts that contain the command and place them in your PATH variable (by default system32 and windows are included in path) then you can type:
enablemaintenancemode.bat
and
disablemaintenancemode.bat

With PC Monitor the posibilities are endless ^_^

Paul.

Edited by Paul
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...