All Questions
Tagged with windows-10 powershell
84
questions
14
votes
4
answers
75k
views
Unable to uninstall Universal Apps through PowerShell
I was in the process of uninstalling all the Universal Apps from a new Windows 10 installation when I hit a roadblock.
It's not the first time I do this and it always goes well. However, this time, ...
24
votes
9
answers
174k
views
Remove appx package for all users
Fresh Windows 10 install. Somehow the MSN Weather app became corrupted. (Unable to launch) I removed the app with the following Powershell command:
Remove-AppxPackage -Package Microsoft....
40
votes
8
answers
115k
views
Switching default audio device with a batch file
I'm trying to write a batch file on Windows 10 that allows me to switch between my headset and my speakers as default audio device when I run it. I don't want to use any third-party software.
I tried ...
24
votes
9
answers
394k
views
How can I reinstall Windows 10's calculator app?
I uninstalled the Calculator app like this in PowerShell:
Get-AppxPackage *windowscalculator* | Remove-AppxPackage
How do I reinstall it?
24
votes
4
answers
20k
views
Configure Windows Creators Update Night Light via Registry
How can the new Night Light feature in Windows 10 (Pro) Creators Update be configured via the registry?
I'd like to auto configure new/updated installations when using my configuration management ...
8
votes
1
answer
6k
views
Is there a way to make Windows Terminal the default container for CMD and Powershell?
If I open the new Windows Terminal, I can then open tabs for CMD, Powershell, Wsl, etc.
But if I run Powershell.exe or CMD.exe directly or open a .ps1/.bat script, they will be shown using their ...
19
votes
4
answers
76k
views
How do I replace the system shell (explorer.exe) with another process in Windows 10?
This is for Windows 10.
Is there a way to replace explorer.exe with, for example, a powershell script?
I'm looking to start a custom shell application without having to have explorer.exe run in ...
8
votes
1
answer
13k
views
How to pass commands into the shell opened in new Windows Terminal
I can run the following command from PowerShell to start another PowerShell instance, change the window name, then run ls command and open Chrome to a specific web site from the new PowerShell ...
6
votes
1
answer
9k
views
Using a UWP API Namespace in PowerShell
I was looking for how to use a namespace for working with the Windows 10 lock screen in PowerShell and came across this answer: https://superuser.com/a/1062551/700258, however it doesn't say anything ...
2
votes
2
answers
2k
views
Modify a powershell that receive argument On/off to start/stop service to a script that checks if service is on (or off) and stops it (or starts it)
I have this code from here, that start or stop to bluetooth service based on the argument it receives.
bluetooth.ps1 -BluetoothStatus On
or
bluetooth.ps1 -BluetoothStatus Off
I would like to ...
1
vote
1
answer
1k
views
Windows 10: "Disable-NetAdapter" disconnect the hardware Bluetooth from the computer instead of turning it OFF
The Bluetooth worked fine until I run Disable-NetAdapter * and then Enable-NetAdapter *. It was supposed to just turn OFF/ON all net adapters (including Bluetooth), but it actually disconnects the ...
39
votes
4
answers
61k
views
Is it possible to update the built-in OpenSSH Client in Windows 10?
I'm experiencing certain issues with the built-in OpenSSH client that, according to the Win32-OpenSSH Github page, seem resolved in newer versions. The newest version is v7.9 while the preinstalled ...
24
votes
6
answers
25k
views
Powershell slow starting on Windows 10
I have problem with slow starting of powershell prompt on Windows 10 ( Version 1703 - Creators Update ).
My hw specs ( quite fast machine ): Intel i5-7440HQ (Quad Core) / 32GB DDR4 RAM / 512 Samsung ...
14
votes
4
answers
19k
views
Windows 10 - virtual desktop startup automation
I've not been able to find much on this so I thought I'd ask here:
I am looking for a way to have multiple virtual desktops created on logon and a few applications automatically started in each. For ...
1
vote
2
answers
15k
views
How to replace the Desktop background image with a solid color, using PowerShell and registry?
I would like to replace the default Desktop background image with a darker solid color, on an unregistered Windows 10 Pro (Insider Preview) edition. I am testing various terminal coloring schemes, and ...