Skip to main content
Jorge Bernhardt Jorge Bernhardt

PowerShell

2018

How To use Set-ADObject cmdlet to Enable a Global Catalog on a DC
·155 words·1 min· 100 views · 5 likes
Get-ADDomainController Microsoft Microsoft Windows nltest.exe
In this mini-post, I want to show you how to enable or disable a global catalog on a Domain Controller (DC) using Windows PowerShell. To perform this task, use the Set-ADObject cmdlet with the following syntax:
Enable scavenging settings on a DNS server with PowerShell
·340 words·2 mins· 100 views · 5 likes
DNS Get-DnsServerScavenging Microsoft Microsoft Windows
It is likely that by using the BPA (Best Practices Analyzer) on a new DNS server, you will find the following warning. In this post, I want to show you how to use the Set-DnsServerScavenging cmdlet to correct this warning.
How to install the Windows PowerShell Web Access Gateway
·347 words·2 mins· 100 views · 5 likes
Add-PswaAuthorizationRule Get-WindowsFeature Install-PswaWebApplication Install-WindowsFeature
In this post, I want to show you how to install the Windows PowerShell Web Access gateway on a server that is running Windows Server 2016 by using Windows PowerShell cmdlets.
How to Audit PowerShell Usage Using Transcription
·253 words·2 mins· 100 views · 5 likes
GPO Microsoft Microsoft Windows PowerShell
Hello, today I want to show you how to use the group policy to configure the registry transcription to audit the use of PowerShell on servers. Requirements: This tutorial assumes that the target system already has WMF 5.
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 create a Resource Group in Microsoft Azure
·454 words·3 mins· 100 views · 5 likes
Azure CLI Azure PowerShell Get-AzureRmLocation Get-AzureRmSubscription
This post is the first in a series in which I will show how to create different resources in Microsoft Azure. Today I will show you how to create an essential component: a Resource Group.
How to install the Azure PowerShell Module from PowerShell Gallery
·152 words·1 min· 100 views · 5 likes
Get-InstalledModule Install-Module Microsoft Microsoft Azure
The Azure portal is a good place to start and learn the existing resources in Microsoft Azure, but if you want to work with them, the Azure PowerShell module is the way.
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 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: