You're most welcome.
Answer from Brink on learn.microsoft.comHow do I remove multiple desktops
How to close windows desktops.
i accidentally added too many desktops to my laptop and now i cant view the desktop to delete them how can i delete the desktops without using task view
Is there a way to close these at the same time?
Videos
All answers I could quickly find on this topic involve either the tip Molly gave or using an application (or coding it yourself). For example (I haven't tried this), Close All Windows.
Also, by pressing Ctrl + Shift + Esc you get the Windows Task Manager, where you can see all running applications at once (among other things), select them, and End Task them.
I like to see my open windows ungrouped, but realized that this i.e. closing multiple windows at once was a problem with such a setting. A less time-taking method would be to use the command line like this :
taskkill /im explorer.exe -f
And then restart explorer using :
explorer
Caution : This will cause processes like file copying on the default Windows interface to abort.
I was just playing and online game so I got intense so I'm guessing I hit a hotkey next think I know desktop 2 appears and the game vanishes. I'm assuming it's on desktop 1 because I could hear I died lol. I really don't need this to be honest so can I remove it or disable the command?
Hi Elijah, I am Paulo and I'd like to help.
You may press Win+Ctrl+ F4 or Win+Ctrl+Fn+F4 to close each virtual desktop. If it doesn't work, you may try the Powershell script from this thread to close them all at once.
https://answers.microsoft.com/en-us/windows/for...
You're very welcome :)
this was very helpfull thank u
Hi JonathanTodd6,
Good day! This is Jhakesong and I will be happy to assist you with this.
I am sorry to hear about the inconvenience. Give this power shell script a try and see if it suits your needs in closing the virtual desktops at once.
Copy and paste this code in a notepad and save it as a .ps1 file and run it with powershell.
Function CloseVirtualDesktopInWin10
{
$KeyShortcut = Add-Type -MemberDefinition @"
[DllImport("user32.dll")]
static extern void keybd\_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo);
//WIN + CTRL + F4: Close the virtual desktop
public static void CloseVirtualDesktopInWin10()
{
//Key down
keybd\_event((byte)0x5B, 0, 0, UIntPtr.Zero); //Left Windows key
keybd\_event((byte)0x11, 0, 0, UIntPtr.Zero); //CTRL
keybd\_event((byte)0x73, 0, 0, UIntPtr.Zero); //F4
//Key up
keybd\_event((byte)0x5B, 0, (uint)0x2, UIntPtr.Zero);
keybd\_event((byte)0x11, 0, (uint)0x2, UIntPtr.Zero);
keybd\_event((byte)0x73, 0, (uint)0x2, UIntPtr.Zero);
}
"@ -Name CloseVirtualDesktop -UsingNamespace System.Threading -PassThru
$KeyShortcut::CloseVirtualDesktopInWin10()
}
Function CloseAllVirtualDesktopInWin10() {
$maxNumber=1..800
foreach ($n in $maxNumber)
{
CloseVirtualDesktopInWin10
}
}
CloseAllVirtualDesktopInWin10
Here is how to use it:
https://www.addictivetips.com/windows-tips/clos...
Reference:
https://www.reddit.com/r/techsupport/comments/a...
Note:
- Press Windows key + X, launch Windows Powershell Admin
- Paste this command and press enter:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
- Right click your .ps1 file and run it with Powershell.
Let me know how it goes. Have a great day!
____________________________________________________________
Standard Disclaimer: These are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products often classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it. We strongly suggest not to install or purchase anything from the link.
That worked! Thank you so much!
I selected 100 over videos and pressed enter. I thought it would start from beginning and play it from start to end. Similar to what i would do if i opened multiple images.
Well i selected 100 over videos and pressed enter. Now my computer is stuck because there are too many videos opening at once and its too slow. Even pressing control alt del is really slow. I want to kill all processes and kill anything else that is coming up as well. I closed all windows using task bar but it only killed the ones open and not the ones that were opening.
Now my computer is slowly filling up with the prompt "The application is not responding. This program may respond again if you wait. Do you want to end this process?" This is just one of the prompts for my 100 over prompts which will come later.
If this happens again, is there a command i can press on my computer to cancel everything and freeze all processes from continuing without shutting down my computer? Thanks
The fastest native solution seems to be Win + Tab and then middle-click the Apps to close them.
The best 3rd party solution I found is 7+ Taskbar Tweaker. You can configure it to close Tasks by middle-click to the tasks entry immediately in the task bar. Unfortunately, Taskbar Tweaker seems to be tailor-fit very closely to Windows and broke with every major update (Anniversary, Creator). The maintainer each time fixed it within some weeks, but meanwhile everything defaults to the old behavior of opening new instances instead of closing old ones.
In my case, I simply open the task manager, then in the tab Application, I select the Apps to close, then I click the End task button.