Here is a quick tip to install the VMware PowerCLI, which is – like the name says – for Windows PowerShell.
To initiate the installation process, type this command into the Powershell Console:
Install-Module -Name VMware.PowerCLI
Powershell will ask you if you wish to install “NuGet”, which is required to automatically download and install VMware PowerCLI from PSGallery. You also have to trust the PSGallery repository in order to proceed with the installation.
Now you can list all of the VMware PowerCLI Modules:
Get-Module -ListAvailable | where { $_.Name -match “vmware” }
Or just check your currently installed VMware PowerCLI version:
With Windows Server 2008 R2, Active Directory has now a recycle bin. With this feature you do not have to use for example Windows Server Backup to initiate an authoritative AD restore, instead you can quickly recover deleted Users, OUs, Groups and other objects through Active Directory Administrative Center (Windows Server 2012 an upwards) or PowerShell
Enabling AD Recycle Bin (PowerShell commands
Enable-ADOptionalFeature ‘Recycle Bin Feature’ -Scope ForestOrConfigurationSet -Target ajni.lab
We can also restore from Active
Directory Administrative Center (ADAC)
Note that while AD Recycle Bin gives you the
flexibility of quickly restoring deleted AD Objects, you should also have a
functional Windows Server Backup and VM Backup with solutions like HPE Data Protector
or VEEAM. Just in case something goes horribly wrong!