Below is a working PowerShell function that will help you enable/disable Deletion Protection on organizational units, user and group objects. I included online help in this one so just dot source it or put it in a module to use it. Once loaded, just type Get-Help Set-Deletion Protection –Full to see the entire help file and examples on how to use it. There are actually two functions here. The first supports the second. <# .SYNOPSIS Confirms if a module is available. .DESCRIPTION Confirms if the provided parameter is available on the local client. .PARAMETER ModuleName The name of the module who’s presence is being checked. .EXAMPLE Confirm-Module ActiveDirectory Checks to see if the ActiveDirectory module is present on the local machine ...
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.