Skip to main content
Jorge Bernhardt Jorge Bernhardt

Windows Server 2012

2021

How to configure IIS logging using PowerShell
·856 words·5 mins· 100 views · 5 likes
Get-ChildItem Get-ItemProperty Get-PSProvider Import-Module
Log files are great places to look when troubleshooting or analyzing your website traffic. Every time your IIS receives a client’s request, it records that request in a log file. In this post, I want to show you how to use PowerShell to configure and manage IIS log files, such as changing the logging frequency or setting the folder where IIS will store log files or, if you prefer, how to turn off logging.
How to install IIS on Windows Server with SSL using PowerShell
·703 words·4 mins· 100 views · 5 likes
Get-ChildItem Get-PSProvider Get-WebBinding Import-Module
Today I want to show you how to install Internet Information Server (IIS) on my favorite operating system, Windows Server using PowerShell. IIS is a great feature that allows us to provide our server with an extensible web server.

2020

How to Add a Public Domain UPN Suffix to Domain Users in Active Directory
·453 words·3 mins· 100 views · 5 likes
Active Directory Get-ADForest Microsoft Microsoft 365
A User Principal Name (UPN) is an attribute that is an internet communication standard for user accounts. A UPN consists of a UPN prefix (the user account name) and a UPN suffix (a DNS domain name).
How to check the size of the Active Directory Database
·303 words·2 mins· 100 views · 5 likes
Active Directory Active Directory Database Microsoft Microsoft Windows
The size of the active directory database on a domain controller is the size of the NTDS.dit file. This size may vary between domain controllers in the same domain, due to non-replicated changes, differences with non-replicated data, and white-space from purge objects.

2019

How to Collect Information from Domain Controllers
·564 words·3 mins· 100 views · 5 likes
Active Directory dcdiag.exe Get-ADDomain Get-ADDomainController
Recently I have needed to collect information from domain controllers to generate a pre-migration report. To perform this task, I used different tools available on Windows Server. Today, in this post, I will show you how to collect information from domain controllers using a PowerShell script and command-line tools such as DCDIAG and NLTEST.
How to relocate Hyper-V VM files to another location
·482 words·3 mins· 100 views · 5 likes
Microsoft Microsoft Windows Move-VMStorage Storage
Either because your storage device begins to run out of space, or you simply need to reorganize the files of your virtual machines it is often necessary to move the storage of our virtual machines to a new location.
Active Directory Snapshots using NTDSUTIL
·482 words·3 mins· 100 views · 5 likes
Active Directory Database dsamain.exe Microsoft Microsoft Windows
In this post, I want to show you how you can use ntdsutil.exe to create snapshots of the Active Directory database and how you can use tools to examine its contents, either to compare or transfer objects without starting in Restore Mode Directory Services (DSRM)
How to disable weak versions of SSL/TLS Protocols on Windows Servers
·801 words·4 mins· 100 views · 5 likes
Microsoft Microsoft Windows New-Item New-ItemProperty
Hi, in this post, I want to show you how to disable the weak versions of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols using Windows PowerShell. Surely, before disabling weak versions of SSL / TSL protocols, you will want to make sure that you can use the TLS 1.
Transfer and Seize FSMO roles Using PowerShell
·314 words·2 mins· 100 views · 5 likes
Get-ADDomain Get-ADForest Microsoft Microsoft Windows
Today, in this post, I want to show you how to transfer or seize one or more flexible single master operations (FSMO) roles from one Domain Controller to another using PowerShell.
Using PowerShell to Create BPA Reports in HTML Format
·333 words·2 mins· 100 views · 5 likes
Get-BPAModel Get-BPAResult Invoke-BPAModel Microsoft
In this post, I want to show you how to use PowerShell to create HTML reports with the Best Practices Analyzer (BPA) results. Best Practices Analyzer (BPA) is a server management tool that is available in Windows Server.
Implement Offline Domain Join
·233 words·2 mins· 100 views · 5 likes
djoin.exe Microsoft Microsoft Windows Windows
Today, in this mini-post, I want to show you how to perform an offline domain join. During this process, a computer is configured to join a domain without network access to the active directory.
How to compact the Active Directory Database
·282 words·2 mins· 100 views · 5 likes
Active Directory Database Microsoft Microsoft Windows NtdsUtil.exe
In this mini-post, I want to show you how to perform an offline defragmentation of the Active Directory database. To perform the maintenance of the AD DS database offline, we will use the NtdsUtil.
How to use Hyper-V Resource Metering
·253 words·2 mins· 100 views · 5 likes
Disable-VMResourceMetering Enable-VMResourceMetering Measure-VM Microsoft
If you want to track the use of a virtual machine in your Hyper-v environment. This blog post may interest you. Resource metering uses PowerShell cmdlets to track various performance metrics for individuals VMs, such as:
How to Enable Group Policy Loopback Processing
·253 words·2 mins· 100 views · 5 likes
GPO Microsoft Microsoft Windows Windows
In this post, I want to show you how to use Group Policy Loopback processing to assign user policies to computer objects. As we know, A user GPO is applied to an organizational unit (OU) that contains users, and a computer GPO is applied to a UO that contains computers.

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 Register the Active Directory Schema MMC Snap-in
·170 words·1 min· 100 views · 5 likes
Active Directory schema Microsoft Microsoft Windows Regsvr32
In this post, I want to show you how to use the Active Directory schema plugin on a domain controller. First, you must register a DLL (schmmgmt.dll). Use the Regsvr32 utility with the following syntax: