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 […]
Find Out Text File Line Endings – LF or CLRF
A newline (also known as a line ending, end of line (EOL) or line break) is a character used to represent the end of a line of text and the beginning of a new line. Text files created on DOS/Windows machines have different line endings than files created on Unix/Linux. This note shows how to […]
SSHPass: SSH Login With Password – Command Line
A password-based authentication is often a default way to connect to a remote host over SSH. But as it requires a user to enter a password manually, this creates some complicity if you need to automate the SSH login. This note shows how to login over SSH by passing the password as a parameter on […]
Ansible Playbook “Dry Run” – Check Mode
An Ansible’s “dry run” or check mode feature is just a simulation of the execution of the ansible-playbook command. When the ansible-playbook command is executed in the check mode, it will not make any changes on a target system. With the Ansible’s “dry run” feature you can see if the target system is getting changed […]
Sublime: “Open Git Repository” Hotkey
To open a Sublime Merge from a Sublime Text it is required to open a context menu with the right-click and select the “Open Git Repository”. By default, there is no a keyboard shortcut to open the Sublime Merge quickly, that is not very handy. This short note shows how to create a key binding […]
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 […]
Docker Compose: Pull Latest Image Version
The docker-compose up command doesn’t check a registry for a newer version of an image if it finds the image:latest among the locally cached images. So after a while you may find, that despite of the :latest tag of the image in a docker-compose.yml file, the docker-compose up command doesn’t pull the latest version of […]
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 […]
Windows: Migrate Domain User Profile To Local
If you are leaving a company and keep your corporate laptop, that is in a company’s AD domain (e.g. AzureAD), with you, you may wonder how to keep your user’s profile settings and data before removing it from the domain. Unfortunately, by the moment, Microsoft doesn’t propose any official tool to migrate the domain user […]
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.