"Trying to connect to $ViewServer ADAM database ..."

Write-Verbose -Message "Trying to connect to $ViewServer ADAM database ..."

"Could not connect to $ViewServer ADAM database: $($_.Exception.Message)"

Write-Warning -Message "Could not connect to $ViewServer ADAM database: $($_.Exception.Message)"

"A drive with the name '$ViewServer' does not exist."

Write-Warning -Message "A drive with the name '$ViewServer' does not exist."

"$ViewServer ADAM database is not connected. Attempting to connect ..."

Write-Verbose -Message "$ViewServer ADAM database is not connected. Attempting to connect ..."

"Trying to remove $Computer from $ViewServer ADAM database ..."

Write-Verbose -Message "Trying to remove $Computer from $ViewServer ADAM database ..."

"$Computer was not found in ADAM database. Please check spelling and try again."

Write-Warning -Message "$Computer was not found in ADAM database. Please check spelling and try again."

"Trying to remove $Computer from Active Directory ..."

Write-Verbose -Message "Trying to remove $Computer from Active Directory ..."

"$Computer was not found in Active Directory. Please check spelling and try again."

Write-Warning -Message "$Computer was not found in Active Directory. Please check spelling and try again."

"Trying to remove $Computer from vCenter datastore ..."

Write-Verbose -Message "Trying to remove $Computer from vCenter datastore ..."

"$Computer could not be removed from vCenter datastore."

Write-Warning -Message "$Computer could not be removed from vCenter datastore."

"$Computer currently PoweredOn. Trying to set VM to PoweredOff ..."

Write-Verbose -Message "$Computer currently PoweredOn. Trying to set VM to PoweredOff ..."

"Trying to remove $Computer from vCenter datastore ..."

Write-Verbose -Message "Trying to remove $Computer from vCenter datastore ..."

"$Computer could not be removed from vCenter datastore."

Write-Warning -Message "$Computer could not be removed from vCenter datastore."

"Could not set $Computer to PoweredOff. Cannot remove VM while VM is PoweredOn."

Write-Warning -Message "Could not set $Computer to PoweredOff. Cannot remove VM while VM is PoweredOn."

"$Computer was not found in vCenter datastore. Please check spelling and try again."

Write-Warning -Message "$Computer was not found in vCenter datastore. Please check spelling and try again."

"Could not connect to VCenterServer. Please verify appropriate credentials are being used."

Write-Warning -Message "Could not connect to VCenterServer. Please verify appropriate credentials are being used."

$DatastoreEntries = Get-ChildItem -Path "$Datastore" | Where-Object -FilterScript { ( $_ .Name -like "$Computer" ) -or ( $_ .Name -like "$Computer `_ *" ) }

"Are you sure you want to delete the datastore folder $($Entry.Name)?"

$message = "Are you sure you want to delete the datastore folder $($Entry.Name)?"

$no = New-Object -TypeName System.Management.Automation.Host.ChoiceDescription -ArgumentList "&No" , "Keep $($Entry.Name)."

"$Computer was not found in vCenter datastore. Please check spelling and try again."

Write-warning -Message "$Computer was not found in vCenter datastore. Please check spelling and try again."