This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add the AMA Extension - this may take a few minutes to run | |
$AMAExtension = @{ | |
Name = "AMAWindows" | |
ExtensionType = "AzureMonitorWindowsAgent" | |
Publisher = "Microsoft.Azure.Monitor" | |
ResourceGroupName = $ResourceGroup | |
MachineName = $ServerName | |
Location = $Location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Query AD tiering level from AD | |
Function Get-ADTieringLevel | |
{ | |
Param( | |
$ServerName | |
) | |
$OU = ([adsisearcher]"(&(name=$ServerName)(objectClass=computer))").FindOne().path | |
OlderNewer