C:\Users\user>"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -command "$s= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://Exchservername/PowerShell/ -Authentication Kerberos ; Import-PSsession $s; C:\Failback.ps1 but nothing is happening and there are no errors only warning is coming.
Warning: Some imported command names include unapprovedd verbs which might make them less discoverable. Use the Verbose parameter for more details or type get-verb to see the lost of approved verbs.
Below is the PS script
Get-MailboxDatabase | Sort Name | ForEach {$MBdb=$_.Name; $ServerHosting=$_.Server.Name ;$ActivationPreference=$_.ActivationPreference| Where {$_.Value -eq 1};
If ( $ServerHosting -ne $ActivationPreference.Key)
{
Move-ActiveMailboxDatabase $MBdb -ActivateOnServer $ActivationPreference.Key -confirm:$False
}
}