Starting from Windows 10 build 1809, Windows has a native SSH client that is based on the OpenSSH port. The OpenSSH client in Windows includes an ssh-keygen – the command-line tool for creating authentication keys for SSH. To create a pair of SSH keys in Windows, the ssh-keygen command can be executed from a Windows […]
cmd
Bad owner or permissions on ‘.ssh/config’ [SOLVED]
Starting from Windows 10 build 1809, Windows has a native SSH client that is based on the OpenSSH port. If you try to connect to some host from a Windows command-line prompt (CMD) or PowerShell using the ssh command, you may receive the error as follows: Bad owner or permissions on C:\\Users\\<username>/.ssh/config This short note […]
PasswordNeverExpires: Disable Password Expiration
A password expiration is a feature in Windows that forces users to change their passwords after a certain number of days. When it is time to change your password, Windows will send you a “Consider changing your password” notification. In this note i will show several ways of how to disable the password expiration of […]
What Active Directory Groups Am I In?
If your computer is running in a corporate environment, one day you may wonder which Active Directory (AD) groups your current user is a member of. The easiest way to see what AD groups i am a member of is by executing the appropriate commands from a command prompt (CMD or PowerShell) and this short […]
Start Maximized | Minimized Program – CMD (Batch)
A START command is used to run a program or command in a separate window from a Windows command prompt (CMD). The new window can be started as maximized or minimized, that can be controlled using the /MAX or /MIN switches correspondingly. Below i will show how to start a program in the maximized or […]
Windows: Get a User’s SID – CMD & PowerShell
Any user, group or computer in Windows has a unique SID (security identifier) assigned. The SIDs are used to control access to various Windows resources like files, registry keys, network shares, etc. Below i will show you how to get the user’s SID and how to do the reverse SID lookup (get the user name […]
Change Computer Name – Windows CMD & PowerShell
To show a computer’s name in Windows, simply execute the hostname command from a Windows command prompt (CMD) or PowerShell. There may be multiple reasons to rename the computer. In this article, i will show you how to change your computer’s name in Windows using the CMD and PowerShell.
Windows: Restart Explorer
Windows Explorer or explorer.exe is a process in Windows that is responsible for starting and displaying the most of the graphical user interfaces (GUI), including the Desktop, Taskbar, “Start” menu and File Explorer. If any of the components the Windows Explorer is responsible of are freezing, hanging and not responding, before restarting the whole computer […]
CMD: Delete Folder (Force `RMDIR`) – Windows
The rm -rf command in Linux is used to force the deletion of folders and their contents recursively. The rmdir command is a Windows rm equivalent in a Windows command prompt (CMD), that also can be used to force the folders deletion with all their contents. In this note i will show how to force […]
Open Command Prompt in Folder – CMD & PowerShell
While browsing files and folders in a default Windows graphical file manager application called File Explorer, sometimes you may want to open a folder in a command prompt (CMD) or PowerShell to execute some commands within the current folder. You can easily open the command prompt or PowerShell directly in the current folder without wasting […]