Powershell remote connect to DPM not working

Hello all,
Using System Center DPM 2012 R2.
Trying to start with automation in SMA using our DPM servers. Tried to use the sample script
"Sample-Managing-DataProtectionManager", this is a simple script with a connect-DPMServer statement. When executing keep getting the error "Connect-DPMServer Unable to connect .. ID: 948". Verify that the DPM service is running on this computer.
Pretty sure that DPM services are running. Using an account with domain admin rights and full access to the DPM server (local admin) and SQL Server instance (sysadmin) hosting the
DPM db's. And firewalls allow access (tried with firewalls off).
When I try to connect to one of the DPM servers from a remote DPM Management shell all works fine. When I try to simulate the inlinescript (used by SMA) with an invoke-command
from a remote
host I get the same error. Tried starting PowerShell as administrator, but still no luck. Tested if the invoke-command was running as administrator and elevated, this is the case.
I get the feeling that I am missing something :-). Anyone any luck with using dpm from sma or using powershell from a remote host to connect to a DPM server and can help me?
Kind regards,
Erwin

Hi Adrian,
Finally got it working, but not that easy. SMA is using workflow and you can't use New-PSSession in a workflow. You need to use inlinescript then. And then you have to workout how to use your variables.
Below my working example. Thx for your assistance!
workflow Managing-DataProtectionManager
# Connection to access DPM server.
$DpmConnection = Get-AutomationConnection -Name 'DpmConnection'
$DpmServer = $DpmConnection.ComputerName
"Using script host $DpmServer"
# Create a PSCredential from the 'Username' and 'Password' fields within
# 'DpmConnection' because this is the form of authentication that an
# inlinescript accepts.
$SecurePassword = ConvertTo-SecureString -AsPlainText -String $DpmConnection.Password -Force
$DpmCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $DpmConnection.Username, $SecurePassword
inlinescript {
$sesOption = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
$ses = New-PSSession -ComputerName $Using:DpmServer -Credential $Using:DpmCredential -Authentication CredSSP -SessionOption $sesOption
Invoke-Command -Session $ses -ScriptBlock {
param($DpmSrv)
# Import DPM module.
Import-Module DataProtectionManager
# Connect to DPM server.
Connect-DPMServer -DPMServerName $DpmSrv
# Obtain a list of disks found on DPM server.
#Get-DPMDisk
Get-DPMBackupNetworkAddress
} -ArgumentList $Using:DpmServer
Remove-PSSession -Session $ses
} -PSComputerName $DpmServer -PSCredential $DpmCredential

Similar Messages

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • Wifi connection with 4s not working after installing new software ios6

    wifi connection with 4s not working after installing ios 6.

    Go to Settings > WiFi > Select your network and hit the right arrow to "Forget Network"
    Then go to Settings > General > Reset Network Settings  and try connecting again when the phone restarts.

  • IPhone 4s bluetooth connects but does not work handsfree

    My iPhone 4s bluetooth connects but does not work handsfree.  Has worked fine with My iPhone 3s.  The Light on my VW turns green indicating a connect, but the phone does not work through the VWs audio.

    Fixed by power cycling the iPhone

  • Windows 8.1 Remote Desktop Not Connecting - "Credentials Did Not Work"

    Hi,
    I am having trouble connecting remotely to my work's servers.  It was previously working fine, but today I upgraded to Windows 8.1 and now I'm getting an error.  It says my credentials do not work.  Now, my username and password are both still
    valid, as they were used to log in from another computer.  I initially thought it was that the firewall was preventing me from connecting, but I enabled the Remote Desktop app and it still does not work.
    I'm kind of at a loss on where to go from here so any help would be appreciated.

    Hi,
    Please try the method below to fix this problem for test.
    Open Group Policy, then navigate to
    Local Computer Policy\Computer Configuration\Administrative Templates\System\Credentials Delegation\
    Open Setting Allow Delegating Saved Credentials with NTLM-only Server Authentication, set it to
    Enabled click on button Show... and in Show Contents
    window add Value TERMSRV/terminal.server.com. Close all windows by pressing
    OK.
    In the end, Open cmd and enter gpupdate
    command to update your policy.
    Roger Lu
    TechNet Community Support

  • SMA and DPM not working

    Hello all,
    Trying to start with automation in SMA using our DPM servers. Tried to use the sample script "Sample-Managing-DataProtectionManager" but keep getting the error "Connect-DPMServer Unable to connect .. ID: 948". Verify that the DPM service
    is running on this computer.
    Pretty sure that DPM services are running. Using the DpmConnection as stated in the sample script with a user with domain admin rights and full access to the DPM server and SQL Server instance hosting the DPM db's.
    When I try to connect to one of the DPM servers from a remote DPM Management shell all works fine. When I try to simulate the inlinescript with an invoke-command from a remote host I get the same error. Tried starting PowerShell as administrator,
    but still no luck.
    I get the feeling that i am missing something :-). Anyone any luck with using dpm from sma and can help me?
    Kind regards,
    Erwin

    For who wants to know, but I got it working. See code below:
    workflow Managing-DataProtectionManager
    # Connection to access DPM server.
    $DpmConnection = Get-AutomationConnection -Name 'DpmConnection'
    $DpmServer = $DpmConnection.ComputerName
    "Using script host $DpmServer"
    # Create a PSCredential from the 'Username' and 'Password' fields within
    # 'DpmConnection' because this is the form of authentication that an
    # inlinescript accepts.
    $SecurePassword = ConvertTo-SecureString -AsPlainText -String $DpmConnection.Password -Force
    $DpmCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $DpmConnection.Username, $SecurePassword
    inlinescript {
    $sesOption = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
    #$ses = New-PSSession -ComputerName $Using:DpmServer -Credential $Using:DpmCredential -Authentication CredSSP -SessionOption $sesOption
    $ses = New-PSSession -ComputerName $Using:DpmServer -Credential $Using:DpmCredential -Authentication CredSSP
    Invoke-Command -Session $ses -ScriptBlock {
    param($DpmSrv)
    # Import DPM module.
    Import-Module DataProtectionManager
    # Connect to DPM server.
    Connect-DPMServer -DPMServerName $DpmSrv
    # Obtain a list of disks found on DPM server.
    #Get-DPMDisk
    Get-DPMBackupNetworkAddress
    } -ArgumentList $Using:DpmServer
    Remove-PSSession -Session $ses
    } -PSComputerName $DpmServer -PSCredential $DpmCredential

  • IPhone 4+Remote+Component Cable+TV=Not Working

    Hello all, I am writing to get some help getting my accessories to work together for my iPhone 4. I use an Apple Component AV Cable to hook my iPhone4 up to the front of my older TV (red/yellow/white) to view my videos on my TV. This works but I wanted to get the apple remote so I could control the volume and play from the couch. When I bought it, the page was different, but it said it was compatible with the iPhone 4, so I got it.
    Well, it didn't work. Not with just my previous set up and with nothing I have tried since. When I plugged the cables in and tried to use the remote, it didn't operate the iphone, though the video was playing on the tv as usual. I assume the iPhone doesn't have an infrared receiver? So then, I got my hub's Dock, which has an infrared on the front, and on the back, an s-video female connection, the flat narrow port for the usual apple cables (which my Apple Compnent set plugs into as well), and a Line Out. I tried inserting the Apple Component AV Cable, which has the usual apple connector and the red/yellow/white cables. The remote works with the iphone now, but the video won't play on the TV, even though it says it is. It's like the signal isn't going through the dock to the connector. Do I need a different dock, a different cable? Something else?
    All I have open to connect to the TV is the Component red/yellow/white.
    Any ideas? Thank you so much!
    Gina

    Whoops, I always get the type of connection messed up. Sorry. I still have the right connections in any case. I have red/yellow/white on the tv and red/yellow/white apple cable. The set up works just fine. I get color video and audio and it looks great. My problems started when I tried getting the remote to work with it.
    Like I said, if I use the dock in the setup, the remote works on the iphone but the tv does not play the video. If I take out the dock, the tv plays the video, but the remote does not work the iphone.
    Does anyone have any ideas, please?
    Thanks,
    Gina

  • Remote for iPod does not work for MENU

    I have just bought a 30GB iPod and the A/V connection Kit which includes a Remote. The menu function of the Remote has no effect on the iPod.
    One reply to such question stated, quote ... it does not work ... it is meant for the front row software.
    In the documentation provided with the A/V connection Kit, there was nothing re the limitation in functionality of the unit.
    Could someone pls explain to me what is meant by "front row software" in relation to the iPod ?
    Tks for assistance.
    jc
    ps I am new to these things !!!

    Thank you for promt reply.
    In reading the documentation more carefully, it does state without going into details, that the Menu button is for other Apple applications.
    Tks again
    jc

  • Remote Desktop & Screen Sharing not  working??

    Hello all,
    I am trying to connect to a friends computer via the Finder's Screen Sharing, I enabled the screen sharing preferences under the System Preferences, put the password, etc and had him do the same and I am not able to connect to his system. I'm sure there is something else I have to do in order to get this to work. In the Windows world I had to use the VNC. But, I remeber reading in a Snow Leopard book that this is all that had to be done in order for this to work.
    Best Regards,
    freesparks

    I know I could never get this working between two macs of the same OS (10.5.8) over the internet with the appropriate Sharing settings set up....
    Im guessing both Screen Sharing and Remote Access through iChat DO NOT work anywhere but in a LAN?

  • Appletv remote app and airplay not working with iphone 4S

    I have the latest appleTV.  I have the remote app loaded onto my ipad3 and iphone 4S.  The app is not working with iphone 4S, nor do I get the airplay icon, hence I can't mirrior my phone on appleTV.  It used to work.  I have deleted and reloaded the app, and still nothing.  It worked fined until a month ago or so.  I have enabled home sharing.
    The app and airlplay are working just fine with the ipad3.  I have the ipad and appleTV hooked up to my router using 5Ghz, and the iphone only connects to the 2Ghz network on the same router.  I don't think this is the issue, because it worked before.
    Also, when I click on the remote app on the iphone, to add an itunes library, a code pops up on the phone, which I enter into itunes on my Win7 PC.  Nothing seems happed on the computer when I enter the code.  Could this have anything to do with recent appleTV or itunes updates?  Any possible solutions?

    It seems like I am having the same problem.
    I have the latest AppleTV 1080, imac 27", ipad, ipad2, 2 iphone 4, all with the latest iOS. After I have the AppleTV connected, a few problems showed up:
    (1) ipad plus iphones cannot airplay photo to AppleTV. After the play button and the grey screen displayed "the playing msg on AppleTV", nothing happened. it is the same for ipad/iphone.
    (2) iMac not Airplay to AppleTV
    (3) Airplay Mirroring not working
    The following are done:
    - Home sharing enabled
    - To test the devices are connected. I set a passowrd for Airplay and the ipad/iphone both requested for it so they are network and devices are ok

  • [Solved] Remote X over ssh not working

    Hello, I'm trying to forward X11 over ssh but it's not working.
    I type
    ssh -X 192.168.1.101
    followed by my password, and I log in just fine.
    I try to launch an X11 application and I get
    $kate
    kate: cannot connect to X server
    SSH is supposed to be forwarding a dummy $DISPLAY to allow remote X.  So I type
    $echo $DISPLAY
    and and get back a empty newline.
    Well how about
    $xinit
    Fatal server error:
    Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    Okay, I'll shut down xserver.
    I do it, and type
    $xinit
    again.  KDE launches on my remote box.  It makes sense, but contradicts many guides I have read which say it should launch on my local machine.
    What am I doing wrong here?  This should be ridiculously simple.
    Last edited by xenobrain (2010-07-06 20:45:16)

    Did you enable X forwarding in your sshd config?
    Did you xhost + (or ssh -Y)?
    Did you crop your DISPLAY variable in a bashrc or similar script run at login?
    Last edited by benob (2010-07-06 19:10:54)

  • Remote pairing setting does not work on 10.8.2

    As the title suggests, the pairing option in Security & Privacy simply does not work. If I pair my mac, other remotes still work, if I turn the reciever off, other remotes still work.
    Is there a kext that I can delete to really disable the reciever?

    Hi,
    here are some more informations about the problem.
    The root CA certificate is imported as trusted in the system keychain of the server and the client. A certificate evaluation returns "valid certificates, trusted ...".
    The client bind fails with this messages, e.g. Kerio Control is able the use LDAPS, so it seams just the problem with the trustability of the certificates. Keychain trusts the certificates, OD client bind not, this is not so consistent.
    Any idee?
    Thanks
    Henri
    2013-03-14 19:39:02.776804 CET - Trigger - notified opendirectoryd:nodes;lastServerChanged;/LDAPv3/ldaps://macpro....:636
    2013-03-14 19:39:02.793467 CET - 71825.330426.330427, Module: AppleODClientLDAP - unable to create connection to LDAP server - ldap_search_ext_s for the ro
    otDSE failed with error 'server connection failed' (-1) error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (self signed cert
    ificate in certificate chain)
    2013-03-14 19:39:02.793501 CE
    CONNECTED(00000003)
    depth=1 /C=DE/...
    Certificate chain
    0 s:/CN=macpro...
       i:/C=DE//OU=IT/CN=*.office.../emailAddress=admin@...
    verify error:num=19:self signed certificate in certificate chain
    verify return:0

  • Remote for Tv anywhere not working

    My new remote from the box will not work but everything else works fine. Any Ideas how to make my remote work?

    My remote doesn't work either.  It hasn't worked period.  I returned the previous tuner and got a new one, but it still doesn't work.  I have windows xp pro corp. on an IBM T40p.  I don't know what to do... cept maybe pull my hair out?  The jog dial on the side also doesn't work.  Please help?  Thanks

  • IPod connection to car not working?!

    My iPod Nano (not sure if it's 4th Gen or not... not sure how to tell sorry) will not work with my car stereo anymore Up to a few days ago we hooked it up to our Honda (has a USB port in the arm rest) and it played through the car stereo. Today we went to use it and it recognizes the iPod, shows the song name on the stereo display but no sound comes out (the volume is up). We tried my nephews iPod and it works with sound, we tried connecting the earbuds to my iPod and there is music... so I'm stuck now because the cord works with another iPod and the headphones work on mine... any suggestions/ideas/help? Am I just not thinking of something? We're travelling so this is important lol
    TIA,
    Sarah

    Hi there, have you guys gotten your problem solved yet?
    If not try to reset your ipod. you can reset it by holding the centre and menu button at the same time until the screen displays an aple logo. try that and see if that fixes your problem.
    oh by the way to tell if your ipod nano is 4th gen it will look like one of these from the following webpage:
    http://www.apple.com/ipodnano/
    Peace!

  • My apple tv remote play button is not working so i can not access anything...what can i do?

    My remote will not work on Apple TV. The play button does not play so I can not access any content. What can I do?

    Welcome to the Apple Community.
    Your Apple TV may have become paired with another remote. Hold the remote close to and pointed at the Apple TV, hold down the menu and Rewind buttons together for 6 seconds or until you see a broken chain icon on screen.

Maybe you are looking for

  • Problem Using XMLAnonymizerBean module in Reciever File adapter.

    Hi All,              I am trying to use the XMLAnonymizerBean in orer to convert the encoding of my xml document from UTF8 to ISO. However when I configure the module the message goes into waiting status  with an exception saying. Exception caught by

  • Podcasts under Music?

    I want to keep my podcasts seperate from Music. In iTunes it displays under podcasts but when I transfer to ipod the podcasts are under music so when I want to listen to music sometimes it gets mixed with podcasts. How can I keep them seperate? Under

  • How to modify the VB examples in ni-scope to sample data simultaneously from two channels in PCI 5922?

     Dear all: I want to write VB programs to sample data simultaneously from two channels in PCI 5922. The niscope driver has some example VB programs to sample data from one channel, for example, the "save to file ", the program works well to sample th

  • Imported Quicktime movie clip has no audio

    I am putting together a wedding video. We have a Sony HD-12 camcorder. I used FCE4 to Log and Transfer the individual video clips. These are fine. The bride and groom gave me two additional video clips recorded by someone else they want inserted in t

  • HT201318 How to cancel Icloud

    Hello, Recently i had bought 2 icloud for myself and my kid. But i dont like this apps after installing, how should i cancel it? Please advise. Thanks.