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.
Posted

Hi,

I am trying to automate the run of disk clean-up tool (cleanmgr) on my managed computers. I have created a script that prepares the "sageset" on computers and that seems to be working OK. The problem I am running into is that when I remotely launch the script/1-liner that executes the cleanmgr to effectively run the created sageset, it just hangs while using a certain percentage of CPU. Do you have any idea what I'm doing wrong?

prepare.sageset.ps1: this prepares the "sageset" in registry. I'm using sageset 0x0100.

run.cleanup.ps1: this starts the "sagerun". It works just fine when executed manually from powershell but I'm running into the above-descripted problem when run via pulseway.

 

Hope you can give me some directions. Thanks.

prepare.sageset.ps1

run.cleanup.ps1

Featured Replies

  • Administrators

Hi,

Does the cleanmgr process start when you're invoking the script from the Pulseway automation? Please note that when you're running the script it will run under the LOCALSYSTEM account, if you want it to run under the local user account you have to setup the powershell impersonation from the Pulseway Manager -> Settings -> Runtime.

-Paul

  • Author

Hi Paul, thanks for your reply. This helps understand what's going wrong.

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.