Setup an Active Directory Lab Environment
![](https://amanifavas.net/wp-content/uploads/2023/07/install-active-directory-6.webp)
Building an Active Directory lab is easy and is a great way to learn, test and troubleshoot Active Directory. Lets dive right in. Active Directory Lab Environment Overview: This guide will cover the following. Create an Isolated network using 192.168.20.0/24 network. The Active Directory test network will not have access to other networks or […]
Intune powershell script that gets Windows device compliance state based on UPN list
![](https://amanifavas.net/wp-content/uploads/2023/02/files-1024x568.jpg)
You can use the following PowerShell script to easily get Windows device compliance state from Intune based on a CSV user principal name list. This Powershell script connects to Microsoft Graph Intune and gets information from Intune Windows devices like “userPrincipalName”, “deviceName”, “complianceState”. Then imports a CSV file with user principal names list and […]
Install all RSAT tools via PowerShell
![](https://amanifavas.net/wp-content/uploads/2023/02/RSAT.jpg)
You can use the following one line of PowerShell to easily install all of the available Remote Server Administration Tools (RSAT) in one go. I end up running this after every Windows feature update. Saves wasting time with a GUI. Open an admin PowerShell prompt get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online Individuals Tools […]