CAUSE:The on-premises AD DS is no longer available. Therefore, you can’t manage or delete the object from the on-premises environment. Solution: Install the Azure Active Directory Module for Windows PowerShell. For more info, go to the following Microsoft website: Manage Azure AD using Windows PowerShell Connect to Azure AD by using Windows PowerShell. Disable directory… Read More Directory synchronization is currently in a pending disable state for this directory
You try to reset password for your Azure VM via the Azure portal – Reset Password method and you get the error message – “VMAccss extension does not work with domain controller”. How do we reset the password now? Good News! We can reset the password by deploying a custom script extension (powershell script) to… Read More Reset Azure VM password using Powershell
To check what are the patches that are installed in your computer, we can use Get-HotFix command. Open PowerShell console and type Get-HotFix. You can also do this via WMI commands in PowerShell:get-wmiobject -class win32_quickfixengineering To check if a specific patch is installed on a remote computer, an Admin can use the below simple PowerShell… Read More Using PowerShell to validate Patch installed in client machines.
This script will move computers in a multi-domain forest from one Organizational Unit to another. Note: In the CSV file, put Name as the first entry. So your .csv will look like this: Name Computer1 Computer2 Computer3
In this post, I will explain how to remove users or groups from Azure AD that were synchronised into Azure AD (your tenant) but are left behind after removing Azure AD Connect . In other words, you cannot delete them from Azure portal as the ‘Delete’ option will be greyed out. We need to use Azure… Read More Delete synced AD users and groups from Azure AD
Sometimes you need to restart the computer to complete deployments via SCCM. While SCCM has its own ways of handling reboots, I thought it would be better if we can customize the reboot and improve End-user experience. Thanks to Maurice Daly for the original code. This script generates a GUI with the below options for… Read More CUSTOM RESTART POWERSHELL GUI FORM