get computer

Get AD Computer examples

In this post, I want to share a few examples of Get-ADComputer command. If ever you wondered how to get computer objects from Active Directory by some specific property, by password last set property or range, last logon date, or some other search criteria this article if for you. Below you can find few scripts that I was using recently 🙂 Get all computers To get all computers from Active …

How to disable Azure Front Door node

Hey Scripters! Today’s post is about how to disable Azure Front Door node using PowerShell. Azure Front Door is quite new Azure service, which allows you to define, manage, and monitor the global routing for your web traffic. It works on layer 7 and it’s quite similar in way of working to Application Gateway. To manage Azure Front Door by PowerShell, you should have Az.Frontdoor module installed. But in some …

custom script extension

Add Custom Script Extension on multiple Azure VMs

Hi Scripters! Today want to share with you my script to add custom script extension on multiple Azure VMs. Recently I was working on a project where one of the requirement was installation of FTP service on 20+ virtual machines already created in Azure. I’ve created a script for FTP service installation on single server, but how to apply it automatically to multiple of them. Decided to add custom script …

Check possibility of Azure resource migration

Hey Folks! Today I want to show you script for Azure resource migration validation to new subscription. Some time ago I have a request from customer to migrate some project specific Azure resources to new subscription. I wanted to be sure that I will do not have any problem once I click “Move” button directly from portal. I googled for solution and couldn’t find any script which will tell me …

Remove Azure Initiative with related policies

Hello Scripters! Remove Azure Initiative is the topic on which I was fighting last time and today I have for you PowerShell script which will remove it with correlated policies and assignments. Azure policies allows cloud admin/devops to manage Azure governance model. You can block specific resources to be created, enforce enabling diagnostic logs on all resources or simply inherit tags from resource group to resources inside. But what is …

Execute Azure Data Factory pipeline

Hi! Today I have for you script which can help you with execute Azure Data Factory pipeline. For those who never used Azure Data Factory – it’s Azure’s cloud ETL service for scale-out serverless data integration and data transformation. It’s very useful in scenarios when we want to automate a lot of things using different Azure data services. One of the main feature of this service is pipeline. It’s a …

Enable backup for all Azure VMs in your subscription

Hey Folks! Today I’ve got for you script which will enable backup for all Azure VMs in your subscription. All admins which setup IaaS environment in cloud, doesn’t matter if this is Azure or Amazon must remember that data from virtual machines should be configured to restore them in any time. In Azure there is a separate service to manage all backups of virtual machines called Recovery Service Vault. You …

lastlogondate

PowerShell Tip of the Week: Get duplicated AD groups

In this post, I want to share a simple method to find duplicated Active Directory objects. Get-ADGroup Recently I was looking for duplicated groups. I was using one of the ActiveDirectory module commands and a simple filter to find all groups. The Get-ADGroup cmdlet gets a group or performs a search to retrieve multiple groups from an Active Directory. The Identity parameter specifies the Active Directory group to get. You can identify a group …

Connect-MsolService

Identify Objects with DirSyncProvisioningErrors using PowerShell

Find out how to identify objects that have DirSyncProvisioningErrors using PowerShell. Some time ago we added an article on how to Identify Azure AD provisioning errors. In this short post, I will share a simple script for creating a CSV report for such errors. Azure Active Directory To get errors we need to first connect to Azure Active Directory using Connect-MsolService and entering credentials for a tenant administrator. Credentials: Connection and …

Remote Shared Mailbox

Get Remote Shared Mailbox using LDAPFilter

Find out how to get Remote Shared Mailbox using LDAPFilter. In this short article, I wanted to share a PowerShell script for getting user objects where property msExchRecipientTypeDetails is a Remote Shared Mailbox. Recipient Type Values First, we need to find which property and value are for Remote Shared Mailboxes. There are three attributes that we can check: msExchRemoteRecipientType msExchRecipientDisplayType msExchRecipientTypeDetails In this case, we will focus on msExchRecipientTypeDetails attribute …