Skip to main content
104 votes
Accepted

Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?

You can use Docker Desktop for Windows as the engine and Docker for Linux as the client in WSL on Ubuntu / Debian on Windows. Connect them via TCP. Install Docker Desktop for Windows: https://hub....
Carlos Rafael Ramirez's user avatar
103 votes

How to search Powershell command history from previous sessions

Press Ctrl+R and then start typing, to search backward in history interactively. This matches the text from anywhere in the command line. Press Ctrl+R again to find next match. Ctrl+S works like above,...
Moha Dehghan's user avatar
  • 1,131
83 votes
Accepted

How to search Powershell command history from previous sessions

The persistent history you mention is provided by PSReadLine. It is separate from the session-bound Get-History. The history is stored in a file defined by the property (Get-PSReadlineOption)....
jscott's user avatar
  • 24.9k
72 votes

ssh on windows - Corrupted MAC on input

Raoul's answer to his own question is correct. I ran into the same issue and adding the correct algorithm name after the -m option works (in my case the option was -m hmac-sha2-512 to connect from ...
Jake's user avatar
  • 821
59 votes
Accepted

Windows 2019: can't figure out why my drive is full

You could try WizTree (wiztreefree.com), which is similar to WinDirStat but it bypasses the filesystem driver and reads the MFT directly if run as an administrator. It will show space taken by ...
benrg's user avatar
  • 646
56 votes

How to detect whether a user is using USB tethering?

You can use Group Policy to prevent the installation of new network devices. You'll find an option in Administrative Templates \ System \ Device Installation \ Device Installation Restrictions \ ...
Michael Hampton's user avatar
40 votes

Using rsync from msysgit for binary files

My original instructions to get rsync working with Git for Windows were quite a bit outdated, so I've revamped this answer for mid-2023 to cover MSYS2's switch to zstd and the additional dependencies ...
nextgentech's user avatar
40 votes

Is there any reason to allow SMB over the internet?

SMB is a file sharing protocol and, as such, it is sometime left open to the internet for, well, sharing files. However, this is a very bad idea. Compared to simpler protocol as FTP or WebDAV, which ...
shodanshok's user avatar
  • 51.3k
38 votes

How can I determine my user account's OU in a Windows domain?

In Command Prompt, whoami /fqdn
cychoi's user avatar
  • 610
38 votes

How to check if a port is blocked on a Windows machine?

Since PowerShell 4.0 you can use the command Test-NetConnection If you want to test Port 3306 as in your example the command is Test-NetConnection -ComputerName localhost -Port 3306 TechNet Test-...
Marcel Janus's user avatar
  • 1,165
38 votes

How does Windows decide which DNS Server to use when resolving names?

In Windows 10 you must update the metric of each interface in the order you want. Goto Control Panel > Network and Internet > Network Connections Right click the desired connection (Higher Priority ...
Jacob Evans's user avatar
  • 8,341
37 votes
Accepted

How can I stop the Windows Recovery Environment being used as a back door?

You can use reagentc to disable WinRE: reagentc /disable See the Microsoft documentation for additional command-line options. When WinRE is disabled in this way, the startup menus are still ...
Harry Johnston's user avatar
36 votes

Equivalent to the htop command on Windows

You can try htop-alternative for windows - NTop https://github.com/Nuke928/NTop You can install it with choco install ntop.portable or with scoop install ntop
Geograph's user avatar
  • 461
36 votes

Ctrl + Alt + Del prior to Windows 10 logon no longer needed?

Aaron Margosis who writes for the Microsoft Security Guidance blog on TechNet addressed this specifically a couple of times regarding the change to "Not Configured" for Secure Attention Sequence aka ...
spacenomyous's user avatar
  • 1,339
36 votes

Server motherboard died and took Intel RAID controller configuration with it. How do I recover the data?

Put all three disks into the Linux machine. Serously. Your RAID is likely using "intel matrix storage manager" (IMSM) on-disk metadata format, which is natively recognized by modern Linux ...
Nikita Kipriyanov's user avatar
35 votes

RDP file with embedded password asks for password

I had the issue on Windows 10 with perma asking password when I try to connect to a new machine. First, the password line in the RDP must be named: password 51:b:myEncryptedPassword And the pass must ...
Makusensu's user avatar
  • 451
34 votes

how do I perform a file transfer using remote desktop on windows 10?

Copy+paste works for me, in both directions For example, to move a file from local --> remote, minimize Remote Desktop and copy the file on your local machine, then open Remote Desktop and paste ...
BlueRaja's user avatar
  • 1,216
34 votes
Accepted

How do you check if a hard drive was encrypted with software or hardware when using BitLocker?

There exists a pretty new article on MSRC, partially explaining the issue and how to solve it. Thanks @Kevin Microsoft is aware of reports of vulnerabilities in the hardware encryption of certain ...
Lenniey's user avatar
  • 5,380
33 votes

Creating a windows account only for share access

As the reply of joeqwerty is not clear, I want to put the steps in line. This works for Windows 7, 8, and 10 (I'm on 10), as well as Windows Server 2003, 2008, and 2012. Create the user (if you don't ...
DefToneR's user avatar
  • 537
33 votes

Can I override domain group policy with local group policy as a local admin?

I've worked around this by creating a script that overwrites the policies I don't want in the registry (you can use the "REG" command in a batch script). This script can be set to run using Task ...
Truisms Hounds's user avatar
32 votes

Auto Reconnect VPN on Disconnection due to any reason - Persistent VPN

I sort it out using "Task Scheduler" Here are steps to do it Make VPN Connection and give it Some Name Let say "My VPN" Open "Task Scheduler" from Start Menu and click "Create Task" (Option can be ...
Umair Aziz's user avatar
31 votes

Adding a user to the local Administrator group using powershell

On Server 2016 and Windows 10 Version 1607 and later you can use the new PowerShell local user cmdlets: Add-LocalGroupMember -Group Administrators -Member username This was added in Windows ...
Peter Hahndorf's user avatar
31 votes
Accepted

How can I programmatically cause a new Windows user's profile to be created?

Windows can create a user-profile on-demand, using the CreateProfile API However, if don't want to create an executable to perform this operation, you can call the API in PowerShell. Others have ...
Swisstone's user avatar
  • 6,965
30 votes
Accepted

How to schedule a task to call a URL

Use the Invoke-WebRequest cmdlet from Powershell. In your task: Action: Start a program Program/script: powershell.exe Arguments: -Command "Invoke-WebRequest http://myapp/BackgroundTask/Run"
Ryan Bolger's user avatar
  • 16.9k
28 votes
Accepted

Are these DNS settings a good idea or not?

Workstations should have your internal DNS server(s) as the only DNS server(s) in TCP/IP configuration PCs pick DNS server from the list and stick to it for some time. So if by some chance your ...
J-M's user avatar
  • 2,050
28 votes

How can I enable packet forwarding on Windows?

If you want to enable forwarding for a specific interface or all interfaces you can do it easily from PowerShell, no reboot required. (NOTE: be sure to run as an Administrator if you want to change ...
Alex Moore's user avatar
  • 1,804
26 votes

How can I manually determine the CodePage and Locale of the current OS

Note that a given system has two active code pages of interest, as determined by the legacy setting named language for non-Unicode programs, formerly known as system locale (see the bottom section for ...
mklement's user avatar
  • 596
26 votes

How does Windows decide which DNS Server to use when resolving names?

To specifically answer the question, Windows uses the first DNS records associated with the highest ranking network interface (an InterfaceMetric with a lower value has higher rank). Examples below ...
Jonathan B.'s user avatar
25 votes
Accepted

Is it possible to access the login windows screen through RDP?

Yes. On the server, you will have to allow RDP sessions with network level authentication disabled (which is in the control panel remote settings), and either your RDP client must be old enough to ...
mihi's user avatar
  • 900

Only top scored, non community-wiki answers of a minimum length are eligible