Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I've tried a couple of recommendations around the web for powershell and batch for restarting a Windows machine. Each script seems to work fine on all machines with the exception of one workstation that seems to shutdown only and not perform a restart - when the scheduled task is ran via Pulseway.

Has anyone ever experienced this - where the machine simply shuts down vs restarting? Also, is there a reliable Windows restart script that anyone can share? Thank you.

  • Administrators

What command are you running to restart the operating system? Is it a simple:

shutdown -r -f -t 00

If so, try to restart the OS via WMI:

Get-WmiObject win32_operatingsystem -ComputerName Quark | Invoke-WMIMethod -name Win32Shutdown -ArgumentList @(6)

-Paul

  • Author

Thanks Paul. So where you have  "-ComputerName Quark"  I'm guessing Quark must be replaced by the actual name of the computer?

  • Author
On 7/4/2017 at 5:55 AM, Paul said:

What command are you running to restart the operating system? Is it a simple:


shutdown -r -f -t 00

If so, try to restart the OS via WMI:


Get-WmiObject win32_operatingsystem -ComputerName Quark | Invoke-WMIMethod -name Win32Shutdown -ArgumentList @(6)

-Paul

 

The script above looks good on a test machine. I'll test it out tonight on the one that's simply shutting down only and let you know. Thanks again.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.