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....
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,...
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)....
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 ...
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 ...
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 \ ...
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 ...
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 ...
38
votes
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-...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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"
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
windows × 17694active-directory × 1654
windows-server-2008 × 1253
networking × 1126
linux × 891
powershell × 762
group-policy × 748
windows-server-2003 × 719
domain-name-system × 652
windows-server-2012-r2 × 616
iis × 588
windows-server-2008-r2 × 572
security × 542
windows-7 × 506
windows-server-2012 × 481
vpn × 407
permissions × 368
network-share × 360
windows-server-2016 × 339
remote-desktop × 313
domain × 294
backup × 290
windows-xp × 285
rdp × 268
sql-server × 263