Windows 10: cleanmgr.exe via Powershell

Discus and support cleanmgr.exe via Powershell in Windows 10 Support to solve the problem; Hello, I would like to hear some tips on how to fix the PowerShell script. Generally, it works fine but I want to add something like a timer that I can... Discussion in 'Windows 10 Support' started by GameOver, May 19, 2020.

  1. GameOver Win User

    cleanmgr.exe via Powershell


    Hello,
    I would like to hear some tips on how to fix the PowerShell script. Generally, it works fine but I want to add something like a timer that I can run a script and it will stop in 15 min anyway! (that the time, when 'clearmgr' usually will complete the task) Why I need that? Cuz I will run it via PDQ Deploy tool for more than 300 computers and it might be stuck sometimes for some reason for an unlimited time so I want to eliminate any freezes or lags.

    Please take a look at how to add the correct addition to that script. Or maybe rewrite it and do it differently?

    Thank you in advance!

    :)
     
    GameOver, May 19, 2020
    #1
  2. Kursah Win User

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, May 19, 2020
    #2
  3. Mark Isi Win User
    PowerShell randomly poping-up in tool bar

    Hello,

    Just to verify, do you have any scheduled tasks that uses Powershell? Scheduled tasks makes Powershell window appear periodically on your computer, therefore we suggest that you check the Task Scheduler. Here are the steps:

    • Click on Start.
    • In the search bar, type Task Scheduler and click on

      Task Scheduler
      in the results.
    • Under Active Tasks, check for any tasks that use Powershell and the scheduled time.

    If the issue still persist, we suggest that you run a Windows Defender scan to see if it will pick up any malware that the first scan missed.

    Let us know the outcome.
     
    Mark Isi, May 19, 2020
    #3
  4. KeithM Win User

    cleanmgr.exe via Powershell

    How to change the WinX menu, including Powershell/Powershell (Admin)

    This part intrigues me. As suggested earler, please post a screenshot of the error message. Also, please clarify/test the follwoing:
    1. Can you start PowerShell from the Start Menu?
    2. If you navigate to %localappdata%\Microsoft\Windows\WinX\Group3, does PowerShell launch from the shortcuts there?
    3. If #1 works & #2 doesn't, compare (& post) the target text from each shortcuts properties. For the Start Menu shortcut, right-click & select Open file location to navigate to the Start Menu folder.

    Keith
     
    KeithM, May 19, 2020
    #4
Thema:

cleanmgr.exe via Powershell

Loading...
  1. cleanmgr.exe via Powershell - Similar Threads - cleanmgr exe via

  2. Powershell command for installing exe and msi

    in Windows 10 Support
    Powershell command for installing exe and msi: Can someone help me with powershell commands for installing some exe and msi files from a pendrive? I have apps like Cisco Jabber (MSI), Cisco AnyConnect (exe), Dell Command Update (MSI), and Webex Teams(MSI) I need to add to my powershell script to automatically install the...
  3. OneDrive configuration via PowerShell

    in Windows 10 Installation and Upgrade
    OneDrive configuration via PowerShell: Hi, after first launch and configuration of Win10, the last part which is not done automatically in my Script is OneDrive configuration. Is it possible to somehow run OneDrive from PS and then let it configure itself with already registered credentials for...
  4. CleanMgr+ and old updates

    in Windows 10 Updates and Activation
    CleanMgr+ and old updates: Installed CleanMgr+ and it has an option to uninstall old updates??? How can I tell which update is no longer needed? 131957
  5. CleanMgr+ and old updates

    in Windows 10 Support
    CleanMgr+ and old updates: Installed CleanMgr+ and it has an option to uninstall old updates??? How can I tell which update is no longer needed? 131957
  6. Microsoft Store Not Re-installing via Powershell.

    in Microsoft Windows 10 Store
    Microsoft Store Not Re-installing via Powershell.: After attempting to install Sea of Thieves via the Microsoft Store, and failing due to some error. I have tried to reinstall the Microsoft Store, as a previous thread said I had to enter the the command: Add-AppxPackage -register "C:\Program...
  7. Please help with installing Store app via Powershell

    in Windows 10 Software and Apps
    Please help with installing Store app via Powershell: I have been trying to download and install Gears of War 4 via the store but it always fails and or never completes downloading the game for me. So I went ahead and used fiddler to download the full game file directly and install it using Powershell method. The file...
  8. Please help with installing Store app via Powershell

    in Windows 10 Support
    Please help with installing Store app via Powershell: I have been trying to download and install Gears of War 4 via the store but it always fails and or never completes downloading the game for me. So I went ahead and used fiddler to download the full game file directly and install it using Powershell method. The file...
  9. Install Debian LXSS via PowerShell

    in Windows 10 Installation and Upgrade
    Install Debian LXSS via PowerShell: Hello, I googled and found instructions on how to install Ubuntu LXSS via PowerShell with Code: Get-AppxPackage https://aka.ms/Ubuntu...[/quote] (I dont rememer exact wording here). Now I want to do the same with Debian? Which command to be used to LIST SEARCH Debian LXSS...
  10. IP Geolocation via Command Prompt\Powershell

    in Windows 10 Network and Sharing
    IP Geolocation via Command Prompt\Powershell: Hello, I'm looking for a way to check PC's IP Geolocation by using command prompt or powershell (no scripts). I hope there are some experts here who can help me out. I have found a very easy to do it on UNIX systems but my main machines will be Windows 7/8.1/10 based....