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 […]
powershell
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: `lsusb` Equivalent – PowerShell
The lsusb command in Linux, known as the “List USB” command, is widely used to list the connected USB devices and display the information about them. One of the quickest ways to list the connected USB devices in Windows is by using the “Device Manger”: simply press the ⊞ Win key to open the “Start […]
Get Members of AD Group in PowerShell
Get-ADGroupMember command in a Windows PowerShell is used to get the members of an Active Directory (AD) group. To able to get the AD group members using the ADGroupMember command you need to have an “Active Directory Users and Computers” tool installed and you should be logged into a domain-joined computer as an Active Directory […]
Get Active Directory Groups – PowerShell
Get-ADGroup command in a Windows PowerShell is used to query a Domain Controller and return Active Directory group objects. Particularly it can be used to get a list of all the Active Directory groups in the Domain Controller the computer is connected to. To get the Active Directory groups using the Get-ADGroup command you need […]
Install “Active Directory Users and Computers”
“Active Directory Users and Computers” is a management console used to administer Active Directory (manage users, groups, computers, polices, etc.). By default, it is deployed on a Windows Server host, when it’s promoted to the domain controller during the “Active Directory Domain Services” role installation. But the “Active Directory Users and Computers” can also be […]
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 […]
Open File Explorer from CMD & PowerShell
File Explorer, is a default file manager application in Windows that provides a graphical user interface for accessing the file systems. While working in a Windows command prompt (CMD) or PowerShell, sometimes you may want to open the current folder in the File Explorer to continue working from there. This note shows how to open […]
Windows: `Echo` Newline (Line Break) [\n] – CMD & PowerShell
In a Windows Command Prompt (CMD) and PowerShell when you execute the echo command to print some text or redirect it to a file, you can break it into multiple lines. In Linux you can do this by using the \n. This short note shows how to break lines and insert new lines using the […]