Hi,
I am running a powers hell script to take AD backup. While running I am getting below error.
Wait-Process : Cannot find a process with the name "wbadmin". Verify the process name and call the cmdlet again.
+ Wait-Process <<<< -name wbadmin
+ CategoryInfo : ObjectNotFound: (wbadmin:String) [Wait-Process], ProcessCommandException
+ FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.WaitProcessCommand
As per the erro i have checked 29th line of my powershell script and found below.
Invoke-Expression ($BackupCMD)Wait-Process -name wbadmin
sleep 10
Can anyone help me to fix this error ?