Schedule ps1 script (DPM2012) RRS feed

  • Question

  • We have recently updated from DPM2010 to DPM2012. The update process was easy and everything seems to work well. We have to run a script scheduled in the past as follows:

    powershell -PSConsoleFile "C:\Program Files\Microsoft DPM\DPM\bin\dpmshell.psc1" -command D:\Konfiguration\ChangeMedia\media_change_DPMFS02.ps1

    This worked well with DPM2010 however not with DPM2012 as “dpmshell.psc1” is not available anymore.

    Can anyone help us to get the “media_change_DPMFS02.ps1” file working with the DPM Shell again ?

    Thursday, September 20, 2012 11:48 AM


  • Got it working by putting the following command as the first line in the “media_change_DPMFS02.ps1” file running the following command:

    C:\Windows\system32\windowspowershell\v1.0\powershell.exe D:\Konfiguration\ChangeMedia\media_change_DPMFS02.ps1

    • Marked as answer by KMServices Thursday, September 20, 2012 12:55 PM
    Thursday, September 20, 2012 12:55 PM