none
DPMshell.psc1 missing RRS feed

  • Question

  • Hello together,

    ive upgraded my DPM Server from 2012 Beta to the final Version.

    Now my Skripts dont work, because the DPMshell.psc1 is missing. I dont find any *.psc1 File.

    Is there a other Name? Or can someone send me this file :)?!?

    Kind Regards

    Martin

    Friday, April 20, 2012 9:21 AM

Answers

  • What if you do this way...

    Import-Module -Name dataprotectionmanager
    $DPMLib = Get-DPMLibrary -DPMServerName "servername"
    Start-DPMLibraryInventory -DPMLibrary[1] $DPMLib -FastInventory

    And the command line to call this script via task scheduler is 

    powershell.exe -noninteractive -nologo -file "<script_path>"


    Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights

    • Marked as answer by Martyi88 Tuesday, May 22, 2012 9:11 AM
    Tuesday, May 22, 2012 7:44 AM
    Moderator

All replies

  • Have You any pcs1 file found?

    I will use it to start PShell scripts per schedule

    Friday, May 11, 2012 1:16 PM
  • no. i dont found.

    At moment i do all jobs manually :(

    Monday, May 14, 2012 11:47 AM
  • look at this http://social.technet.microsoft.com/Forums/en-US/dpmtapebackuprecovery/thread/84fe86a9-d168-4249-95ed-4cfc6fa2d868 (at the end)

    the I found a solution for dpmutil.ps1

    you have to add modules in your PS scripts

    Monday, May 14, 2012 1:46 PM
  • mmh it dont work for me.

    i added the module like in your post...

    $installPath = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Setup" "UIInstallPath").UIInstallPath
    $dpmModuleFullPath = $installPath + "Modules\DataProtectionManager\DataProtectionManager.psd1"
    Import-Module $dpmModuleFullPath

    $DPMLib = Get-DPMLibrary -DPMServerName "servername"
    Start-DPMLibraryInventory -DPMLibrary $DPMLib[1] -FastInventory

    But i get this error Message, when i start the script with powershell

    Tuesday, May 15, 2012 1:04 PM
  • What if you do this way...

    Import-Module -Name dataprotectionmanager
    $DPMLib = Get-DPMLibrary -DPMServerName "servername"
    Start-DPMLibraryInventory -DPMLibrary[1] $DPMLib -FastInventory

    And the command line to call this script via task scheduler is 

    powershell.exe -noninteractive -nologo -file "<script_path>"


    Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights

    • Marked as answer by Martyi88 Tuesday, May 22, 2012 9:11 AM
    Tuesday, May 22, 2012 7:44 AM
    Moderator
  • Hi,

    thanks for reply.

    I tried that and i get exactly the same error as above.

    Is there no DPMshell.psc1 in DPM 2012? In Beta Version i had aDPMshell.psc1.

    Tuesday, May 22, 2012 8:53 AM
  • Oh,

    now i found my failure.

    Start-DPMLibraryInventory -DPMLibrary $DPMLib -FastInventory

    [1] on $DPMLib was too much. In Beta Version i have to put [1] to get the library.

    Thanks :)!

    Tuesday, May 22, 2012 9:11 AM