Install Minikube on Windows

Minikube is a single-node Kubernetes cluster that can be installed on macOS, Linux and Windows.

It lets you to try out Kubernetes locally on your personal computer or use it for daily development work.

In this note i will show how to install Minikube & Kubectl on Windows and deploy a first “Hello Minikube” application on a local Kubernetes cluster. (more…)

This computer doesn’t have VT-X/AMD-v enabled

During the first attempt to start Minikube you may receive the following error: “This computer doesn’t have VT-X/AMD-v enabled“.

This error may occur even if virtualization is enabled in BIOS and you don’t have any issues with creating and running the virtual machines on your computer.

This note shows a fast workaround of the error: “This computer doesn’t have VT-X/AMD-v enabled“. (more…)

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 user with the relevant permission.

In this note i will show how to get the AD group members using the ADGroupMember command from the PowerShell.

Cool Tip: How to get Active Directory groups using PowerShell! Read more →

Get Members of AD Group in PowerShell

To get the members of an AD group in the domain the computer is connected to, use the PowerShell’s Get-ADGroupMember command as follows:

PS C:\> Get-ADGroupMember -Identity "<groupName>"

If the AD group which members you need to get is in another domain, add the Server parameter:

PS C:\> Get-ADGroupMember -Identity "<groupName>" -Server <domain>

To get the sorted list of the AD group member names only:

PS C:\> Get-ADGroupMember -Identity "<groupName>" | Select Name | Sort Name

To extract the every member of the “nested” AD group (when another groups are among the group members), add the Recursive attribute:

PS C:\> Get-ADGroupMember -Identity "<groupName>" -Recursive | Select Name | Sort Name

If you are getting an error as follows while trying to execute the commands above, you need to install the Active Directory Users and Computers on your computer:

Get-ADGroupMember : The term ‘Get-ADGroupMember’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Cool Tip: Find out what domain controller am i connected to! Read more →

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 to have an “Active Directory Users and Computers” tool installed and you should be logged into a domain-joined computer as an Active Directory user with the relevant permission.

In this note i will show how to get the Active Directory groups using the Get-ADGroup command from the PowerShell.

Cool Tip: Find out what domain controller am i connected to! Read more →

Get Active Directory Groups

To get all the Active Directory groups in the domain the computer is connected to, use the PowerShell’s Get-ADGroup command as follows:

PS C:\> Get-ADGroup -Filter *

To get the Active Directory groups in another domain, add the Server parameter:

PS C:\> Get-ADGroup -Filter * -Server <domain>

To get the sorted list of the Active Directory group names only:

PS C:\> Get-ADGroup -Filter * | Select Name | Sort Name

Use the following construction to search for the Active Directory groups using the PowerShell’s grep equivalent, e.g. to get the Active Directory group names starting with “Adm“):

PS C:\> Get-ADGroup -Filter * | Select Name | Out-String -Stream | Select-String "^Adm.*"

To find a single group, use the Identity parameter, e.g. to check if an Active Directory group called ‘Administrators‘ exists, run the command below:

PS C:\> Get-ADGroup -Identity 'Administrators'

If you are getting an error as follows while trying to execute the commands above, you need to install the Active Directory Users and Computers on your computer:

Get-ADGroup : The term ‘Get-ADGroup’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Cool Tip: How to get the members of an AD group in PowerShell! Read more →

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 installed on a Windows computer manually through a graphical user interface (GUI) or using a Windows PowerShell and this note shows how to do this. (more…)

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 time on opening them from some other place (e.g. from a “Start” menu) and navigating to the required folder manually.

This note shows very easy and efficient way of how to open the CMD or PowerShell withing the current folder. (more…)

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 the File Explorer from the CMD or Windows PowerShell using the explorer command. (more…)

Kubectl: Debug – Increase Verbosity

While troubleshooting Kubernetes-related issues it is useful to know how to increase the verbosity level of the main debugging tool – the kubectl command.

The verbosity of the kubectl command is controlled by the -v or --v flags followed by an integer from 0 to 9 that represents the log level.

In this note i will show how to increase the verbosity level of the kubectl command, that is extremely useful for debugging of the Kubernetes-related issues. (more…)

Increase Image Size in KB (Without Changing Pixels)

Sometimes it is requires to increase an image size without changing its pixels i.e. increase the size of a file without changing a quality, dimension or resolution of the image or photo.

You may need this for example in some applications or web-services that don’t allow to upload images if their size is less than some minimum, e.g. less than 50KB.

There is no need to search for some online “photo size increaser” or install any additional software as Windows, macOS and Linux users can easily increase an image size using the built-in command-line tools.

In this note i will show how to increase an image size without changing its pixels in Windows, macOS and Linux from the command line. (more…)