none
error while running powershell script RRS feed

  • Question

  • 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 ?

    • Moved by Bill_Stewart Friday, November 20, 2015 7:36 PM Unanswerable drive-by question
    Tuesday, August 25, 2015 3:04 PM

All replies

  • 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.


    \_(ツ)_/

    Tuesday, August 25, 2015 3:13 PM