All Questions
Tagged with windows-10 command-line
88
questions
15
votes
3
answers
37k
views
How can I restore Cmd.exe (Command Prompt) if it doesn't exist?
cmd.exe is not in the directory C:\Windows\System32. I think that I accidentally deleted it while messing with the environment variables, I don't know.
It's not launching from PowerShell, and I also ...
14
votes
2
answers
100k
views
Use command prompt to change date and time
Recently I worked a lot with the command prompt. Now I want to know if it is possible to change the date and time of the system (Windows 10), only with the command prompt and how I can do it.
12
votes
4
answers
35k
views
Run Command Prompt as Administrator by Default on Windows 10
After the recent upgrade to Windows 10, the good ol' AppCompatFlags method no longer works. Which is something like this -
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\...
11
votes
4
answers
25k
views
Windows command prompt - Get relocated user's Documents folder
I'm trying to write a simple batch script that copies some files from the %userprofile%\Documents directory.
I'm testing the script on my machine, but after some failures I realized that I moved my ...
10
votes
5
answers
17k
views
Unlock Bitlocked data drive as standard user on the command line
I have a Windows 10 Pro PC, no domain, I don't use BitLocker on the system drive but have encrypted some fixed data drives using BitLocker and a password (no TPM).
When I like to unlock these drives I ...
9
votes
6
answers
20k
views
Can the "Alarm & Clock" application be executed via command line?
I would like to be able to quickly set a timer using the Alarms & Clock app in Windows 10. Ideally, I would prefer to press the Win key and type something to create (and potentially start) a timer,...
8
votes
5
answers
29k
views
Compare two folders and output missing files in both folders
I would like to compare two folders, strictly for filenames. (Not the file contents). I am on windows 10 and would like to use command line tools.
Here is scenario that may explain the issue.
...
7
votes
1
answer
9k
views
How to toggle Wi-Fi in Windows 10 via the command line?
If I try to connect to a wireless network using netsh wlan connect when the Wi-Fi toggle switch is off, the following error is displayed:
Function WlanGetAvailableNetworkList returns error 2150899714:...
7
votes
1
answer
15k
views
List SMB network shares and usernames they're authenticated under from command prompt
As noted in list network shares from command prompt, in Command Prompt (cmd.exe), I can use the following command to list available network shares:
net view \\computer
In my case, this gives ...
6
votes
2
answers
2k
views
How to set Chrome Window Name on launch via CLI or other automation
As of Chrome 90, there is a built-in feature under "(three dots menu) > More tools > Name window..." which allows you to rename a window. This can be very handy for a multitude of ...
6
votes
1
answer
31k
views
How can I disable Windows Defender using the command line? [duplicate]
I am looking for a way to disable Windows Defender on Windows 8/8.1/10 using the command line. Everything I've found so far has involved using a GUI at some point, and this isn't useful for a process ...
6
votes
1
answer
7k
views
How to switch between light and dark modes via command line in win 10?
Is there a command line to set the color personalization Dark or Light in the Colors settings?
5
votes
3
answers
15k
views
Windows Bash won't open in 10 Anniversary Update
After I installed the Windows 10 Anniversary Update, I was eager to try the new Bash command prompt. But when launched from the start menu (Win+R -> bash.exe), the bash window closes automatically.
5
votes
1
answer
19k
views
How to Set Logon User Rights with the Ntrights.exe in windows 10(64 bit) [duplicate]
I need to know whether ntrights.exe 64 bit version exists?
If not, which is the 64 bit equivalent of ntrights.exe?
Thanks in advance.
5
votes
1
answer
7k
views
Shortening Windows 10 command prompt
I'm trying to figure out how to shorten the prompt in Windows 10 so I don't end up with a deeply nested directory path taking up most (or all) of the command line.
I've tried applying the information ...