error while running powershell script

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.

At C:\Windows\ad_backup.ps1:29 char:13
+ 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 ?

August 25th, 2015 11:05am

Have you asked the person who wrote the script for help.

There is no way to know what is wrong from what you have posted.

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 11:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics