Windows 10: is there a way to run cleanmgr.exe on remote machine using powershell

Discus and support is there a way to run cleanmgr.exe on remote machine using powershell in Windows 10 Customization to solve the problem; Running CleanMgr.exe in a powershell script or by itself seems to work fine as long as you run it locally with an account that has local admin rights.... Discussion in 'Windows 10 Customization' started by Shruthikeerthi, Mar 14, 2022.

  1. is there a way to run cleanmgr.exe on remote machine using powershell


    Running CleanMgr.exe in a powershell script or by itself seems to work fine as long as you run it locally with an account that has local admin rights. But while trying to run it remotely via any remote management tool or remote scripting command Invoke-Command and it does not run. Would someone please let me know if there is way to get cleanmgr.exe to run remotely without any user interaction. like in,

    :)
     
    Shruthikeerthi, Mar 14, 2022
    #1
  2. mose Win User

    Running Powershell for setting default programs


    This worked. How would you setup the dism command to be used in an MDT task sequence step?
    Or is there a way to convert this to Powershell and run in an MDT task sequence.
    I would like to have defaults set as part of the imaging process for new machines.
     
  3. Eric Ber Win User
    Can't run .exe file

    Hi Phil,

    There are several reasons why you are having issues running .exe files on your Windows 10 laptop. To assist you better, kindly answer the questions below:

    • Have you made any changes to your laptop prior to this issue?
    • What troubleshooting steps have you done so far?
    • What is the error message that you received when running .exe files?

    Regards.
     
    Eric Ber, Mar 14, 2022
    #3
  4. is there a way to run cleanmgr.exe on remote machine using powershell

    USB drive will not run exes.

    Hi,

    Thank you for posting your query in Microsoft Community. I understand the inconvenience caused to you and will help you in solving the issue.

    To assist you better, I would like to ask if you have installed any Antivirus in the Laptop.

    I suggest you to run the program in compatibility mode by following the steps provided below and check if the issue persist.

    • Right click on the “.exe” file of the program and select properties.
    • Under Compatibility tab, check the option for “Run in Compatibility mode”.
    • Select the Operating System from the drop down list.
    • Click on Apply and OK.

    Hope the information is helpful. Feel free to write to us for any other assistance with Windows, we’ll be glad to assist you.
     
    Eeshwar Kumar, Mar 14, 2022
    #4
Thema:

is there a way to run cleanmgr.exe on remote machine using powershell

Loading...
  1. is there a way to run cleanmgr.exe on remote machine using powershell - Similar Threads - run cleanmgr exe

  2. Powershell not exiting properly from a script running on a remote device

    in Windows 10 Gaming
    Powershell not exiting properly from a script running on a remote device: We run powershell script through Vmware Vcenter API on the target VM in every 5 mins to collect some data. We noticed in one of the VMs on 19th that one powershell.exe was consuimg 45% CPU , when we checked the powershell logs we saw that the process is alive from around 4...
  3. Powershell not exiting properly from a script running on a remote device

    in Windows 10 Software and Apps
    Powershell not exiting properly from a script running on a remote device: We run powershell script through Vmware Vcenter API on the target VM in every 5 mins to collect some data. We noticed in one of the VMs on 19th that one powershell.exe was consuimg 45% CPU , when we checked the powershell logs we saw that the process is alive from around 4...
  4. is there a way to run cleanmgr.exe on remote machine using powershell

    in Windows 10 Gaming
    is there a way to run cleanmgr.exe on remote machine using powershell: Running CleanMgr.exe in a powershell script or by itself seems to work fine as long as you run it locally with an account that has local admin rights. But while trying to run it remotely via any remote management tool or remote scripting command Invoke-Command and it does not...
  5. is there a way to run cleanmgr.exe on remote machine using powershell

    in Windows 10 Software and Apps
    is there a way to run cleanmgr.exe on remote machine using powershell: Running CleanMgr.exe in a powershell script or by itself seems to work fine as long as you run it locally with an account that has local admin rights. But while trying to run it remotely via any remote management tool or remote scripting command Invoke-Command and it does not...
  6. How to use PowerShell to restart a Remote Windows computer

    in Windows 10 News
    How to use PowerShell to restart a Remote Windows computer: [ATTACH]Every now and then, most especially, a system administrator will need to restart a […] This article How to use PowerShell to restart a Remote Windows computer first appeared on TheWindowsClub.com. read more...
  7. How to Run CleanMGR to Automatically Include System Files

    in Windows 10 Customization
    How to Run CleanMGR to Automatically Include System Files: I am trying to create a shortcut that will run the CleanMGR with all options selected AND include the System Files. I have found that running: Code: C:\Windows\System32\cleanmgr.exe /LOWDISK This will provide a prompt to the user. or Code: C:\Windows\System32\cleanmgr.exe...
  8. Enable Remote Desktop using Command Prompt or PowerShell

    in Windows 10 News
    Enable Remote Desktop using Command Prompt or PowerShell: [ATTACH] [ATTACH]If you want to use the Remote Desktop feature without opening the Windows Settings panel, then you can enable Remote Desktop using Command Prompt or Windows PowerShell. If you have a remote desktop client on your mobile or another computer, [...] This post...
  9. Exe file will not run - can't find a way to get it to run

    in AntiVirus, Firewalls and System Security
    Exe file will not run - can't find a way to get it to run: I am trying to run a .exe file for some software but it gets blocked. I can not find a way to get it to run. I have tried as Administrator, there is also no tick box under file/properties to 'unblock' the file. I added an inbound and outbound rule to my Windows Defender to...
  10. unknown remote PowerShell administrato rcreating virtual machines

    in Windows 10 Network and Sharing
    unknown remote PowerShell administrato rcreating virtual machines: there are unauthorized users who remotely accessed my all in one pavilion windows 10 desktop on several occasions while attempting to use my online brokerage account I noticed that several functions involving time were not functioning the transaction history was several days...