Skip to main content
Jorge Bernhardt Jorge Bernhardt

Windows PowerShell

2018

How to create a Group Managed Service Accounts (gMSA)
·410 words·2 mins· 100 views · 5 likes
Install-ADServiceAccount Microsoft Microsoft Windows New-ADServiceAccount
In this post, I want to show you how to create and use Group managed service accounts (gMSA). Before starting, I would like to identify the basic concepts and requirements.
How to rename a Network Adapter using Rename-NetAdapter cmdlet
·126 words·1 min· 100 views · 5 likes
Get-NetAdapter Microsoft Microsoft Windows PowerShell
Today I want to show you how to rename network interfaces using the Rename-NetAdapter cmdlet. It is a good practice to change the name of the network interfaces to facilitate the management of servers with several network cards.
How to create a KDS root key using PowerShell
·215 words·2 mins· 100 views · 5 likes
Add-KdsRootKey dssite.msc Get-KdsRootKey Microsoft
If you want to use the Group Managed Service Accounts feature, you must first create a root key for the group key distribution service within Active Directory. This is used by the KDS service in Domain Controllers to generate passwords.
How to create a Virtual Disk using PowerShell
·316 words·2 mins· 100 views · 5 likes
Format-Volume Get-VirtualDisk Initialize-Disk Microsoft
In a previous post I showed you how to create a storage pool, today I want to show you how to use PowerShell to create a virtual disk in your Storage Pool.
How to set the system time zone with PowerShell
·135 words·1 min· 100 views · 5 likes
Get-TimeZone Microsoft Microsoft Windows PowerShell
If you need to configure a Server Core or simply because you want to configure with PowerShell. In this post, I show you how to set the system time zone using the Set-TimeZone cmdlet.
How to Manage WinRM with PowerShell
·131 words·1 min· 100 views · 5 likes
Microsoft Microsoft Windows PowerShell Windows
Windows Remote Management (WinRM) allows you to manage a server from a remote location using PowerShell and WMI-based tools. In this post, I want to show you how to manage WinRM from a PowerShell session.
How to Managing Non-Domain joined Server using Server Manager
·416 words·2 mins· 100 views · 5 likes
Get-ChildItem Microsoft Microsoft Windows PowerShell
Today I want to show you how to manage non-domain joined servers or Workgroup servers using Server Manager. This can be very useful when working with multiple domains and managing all from the same computer.
How to share a Printer with PowerShell
·233 words·2 mins· 100 views · 5 likes
Get-Printer Microsoft Microsoft Windows PowerShell
Hi, today I want to show you how to share a printer using PowerShell. The cmdlet I will use is Set-Printer. This cmdlet allows to establish or update the configuration of a specified printer.
How to install the PowerShell Active Directory Module in Windows Server
·142 words·1 min· 100 views · 5 likes
Add-WindowsFeature Get-WindowsFeature Microsoft Microsoft Windows
Jorge here again. In this post, I want to show how to install the Active Directory Module for PowerShell. The AD module is already installed on domain controllers on Windows Server but on member servers, you can add the module as a feature in Server Manager or using PowerShell.
How to add Computer to a Domain using PowerShell
·285 words·2 mins· 100 views · 5 likes
Add-Computer Microsoft Microsoft Windows PowerShell
Suppose you want to add a computer to a domain using the command line, either when no GUI (Server Core) or just when configuring multiple computers in a script. This post can be interesting for you.
How to disable preliminary lock screen background on Windows Server 2016
·197 words·1 min· 100 views · 5 likes
GPO Microsoft Microsoft Windows Registry Editor
In this post, I want to show you how to disable the preliminary lock screen background on Windows Server 2016 using Group Policy Management Console and Registry Editor. GPO Workaround> GPO Workaround # Open Local Group Policy Editor (gpedit.
How to create a Shared Folder using PowerShell
·182 words·1 min· 100 views · 5 likes
Get-Help Get-SmbShare Microsoft Microsoft Windows
In this post, I want to show how to create a shared folder using PowerShell. To do this, we can first check the PowerShell help to know the parameters of the New-SmbShare cmdlet To check the PowerShell help, we will use the Get-Help command with the following syntax.
How to force a network profile in Windows using PowerShell
·184 words·1 min· 100 views · 5 likes
Get-NetConnectionProfile Microsoft Microsoft Windows PowerShell
Windows classifies the networks into three different types: public, private and domain, and this allows different firewall configurations to be applied according to the established profile. If you want to force a network to be of a different profile, my recommendation is that you use PowerShell.
How to disable IPv6 on network adapter using PowerShell
·176 words·1 min· 100 views · 5 likes
Disable-NetAdapterBinding Get-NetAdapter Get-NetAdapterBinding Microsoft
IPv6 is enabled by default in Windows, but sometimes you have a reason you need to disable IPv6. In this post, I want to show you how to do it using PowerShell.
How to create a Storage Pool using PowerShell
·238 words·2 mins· 100 views · 5 likes
Get-PhysicalDisk Get-StorageSubsystem Microsoft Microsoft Windows
In this post, I want to show you how to create a Storage Pool with Powershell; the cmdlet that I will use is: New-StoragePool To create a Storage Pool with PowerShell, use the New-StoregePool cmdlet with the following syntax:
How to set primary and secondary DNS server addresses with PowerShell
·221 words·2 mins· 100 views · 5 likes
DNS Enter-PSSession Get-DnsClientServerAddress Get-Help
In this post, I want to show how to configure your computer’s primary and secondary DNS servers using PowerShell. In this case, we will use the Set-DnsClientServerAddress cmdlet. The workaround in a local computer: The Get-NetAdapter cmdlet obtains the basic properties of the network adapter.
How to rename a computer with PowerShell
·317 words·2 mins· 100 views · 5 likes
Microsoft Microsoft Windows PowerShell Rename-Computer
In this post, I want to show you how to rename a local or remote computer with the PowerShell cmdlet: Rename-Computer. To rename a computer with PowerShell, use the Rename-Computer cmdlet with the following syntax: