How to deploy an Azure Virtual Desktop environment using PowerShell

To deploy an Azure Virtual Desktop environment using PowerShell, you need to perform the following steps: That’s it! You have now deployed an Azure Virtual Desktop environment using PowerShell. Please note that some parameter values, such as resource group name, location, virtual network details, and user principal names, should be replaced with your specific values.

Read more

Missing “UserType” attribute in Azure AD

UserType is not always accurate for identifying external or member users If you search an Office 365 user with Get-AzureADUser or Get-MsolUser, you get details about the account type with the attribute UserType. The value can be: Member: the user is part of the Azure AD tenant Guest: the user is a guest, for example to access to Microsoft Teams or SharePoint site According […]

Read more

Send Mail with Attachment, PowerShell, and Microsoft Graph API

API Reference and Permissions The official documentation is here: Send mail – Microsoft Graph v1.0 | Microsoft Docs fileAttachment resource type – Microsoft Graph v1.0 | Microsoft Docs Azure App Registration Rights: Mail.Send The PowerShell Script to send Mail with Attachment using MS GRAPH API That’s the Script on using PowerShell with MS GRAPH API to send a Mail with […]

Read more

Create an Azure App Registration with PowerShell and MS GRAPH API

API Reference and Permissions Read the following DOCS for more Details https://docs.microsoft.com/en-us/graph/api/application-post-applications?view=graph-rest-1.0&tabs=http Create an Azure App Reg with the following GRAPH API Application Permissions Application.ReadWrite.OwnedBy Application.ReadWrite.All All done, then let’s see the Script The Result We get an empty Azure App Registration without a Secret, Cert, or Permissions.

Read more

How to Connect to Exchange Online PowerShell via v2 Module

In this article, you will learn how to prepare to use the EXO V2 module to run Exchange Online unattended scripts with app-only modern authentication. You’ll learn how to: Register a new app in Azure Active Directory and enable its service principal. Assign API permissions and roles. Generate and upload a self-signed certificate. Use the app and certificate to authenticate and […]

Read more

Get DNS server IP’s using PowerShell

On servers, we use static IP configuration and static DNS configuration. If you have multiple sites in your environment, this list of DNS server IPs will vary from one site’s server to another. Given these, we sometimes end up with incorrect DNS IP entries in some of the servers. The script I am going to discuss will help you query […]

Read more

Connect to O365 v2 (EXO v2)

In order to Connect to O365 (EXO v2) using modern authentication you will need to install and import the EXO v2 module. ***PowerShell needs to have TLS 1.2 enabled in order to run EXO v2*** Run this in PowerShell:   [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module -Name ExchangeOnlineManagement -Force If you have this module already installed, then you just need to import it […]

Read more

How to Use PowerShell to Create AD User Accounts in Bulk in Windows Server 2016

Lets get started.. 1 – For this demo, I will use my existing AD Server with Windows.ae domain and previously created empty OU call Network Branch. My Network Branch OU is now empty without any User in it, so I would like to import 25 users in just 1 shot. 2 – For this step, you need a Notepad with Your Domain user information. This can be done in MS […]

Read more

How to Manage Microsoft Teams using PowerShell

Install the Teams PowerShell Module The first step in managing Teams via PowerShell is to install the Teams Cmdlets module.  Running PowerShell as an Administrator, you will need to run the following and allow install from the untrusted repo as well as installing the NuGet package: Install-Module -Name MicrosoftTeams Connect PowerShell to the Tenant The next step is to connect […]

Read more
1 2 3 11