• PowerShell stumper?

    Author
    Topic
    #170554

    Hey Y’all,

    I have the following PS code:

     

    $SBCode = {$WD = “C:\Program Files (x86)\Siber Systems\” +
    “AI RoboForm”
    $SPArgs = @{FilePath = “$WD\robotaskbaricon.exe”
    Verb = “Open”
    WorkingDirectory = “$WD”}
    Start-Process @SPArgs
    } #End $SBCode

    & $SBCode #Restart RoboForm on Local Computer!

    Invoke-Command -ComputerName “$TargetComputer” -ScriptBlock $SBCode

    When executing on the Local Computer it works just fine. However, when I attempt to execute it on the remote computer it completes w/o error but does not start Roboform?

    If I use the Enter-PSSession to do this interactively it works:

    PS> Enter-PSSession -ComputerName Dellxps8700

    [Dellxps8700]: PS G:\BEKDocs>
    $SBCode = {$WD = “C:\Program Files (x86)\Siber Systems\” +
    “AI RoboForm”
    $SPArgs = @{FilePath = “$WD\robotaskbaricon.exe”
    Verb = “Open”
    WorkingDirectory = “$WD”}
    Start-Process @SPArgs
    } #End $SBCode

    & $SBCode #Restart RoboForm on Local Computer!

    [Dellxps8700]: PS G:\BEKDocs> Exit-PSSession

    PS>

    Ideas?

    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!
    Computer Specs

    Viewing 3 reply threads
    Author
    Replies
    • #170560

      Well,

      I figured out what is happening. As soon as the PS Session Ends RoboForm closes. So the question now becomes what do I do to make the RoboForm instance persistent. Note: It is persistent on the Local Computer.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      • #170623

        @retiredgeek, I’ve only dabbled with PS a few times, and am a total stranger to RoboForm, BUT… is there a suggestion on this page that may assist you in your quest? It may not have a solution, but it may give you some “talking points” 🙂
        Good luck!

        2 users thanked author for this post.
    • #170651

      Kirsty,

      Thanks, the -InDisconnectedSession looks like it has possibilities. I’ll get back after I have a chance to test.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      1 user thanked author for this post.
    • #170755

      Kirsty,

      That did it! Thanks!

      My only problem now, and it is a minor one, is to get the RoboForm Icon to show up in the Notification Area after the program runs on the remote computer. I can manually run the RoboForm Editor  & Login to accomplish this task but I’d really like to get it automated. I’ve been poking around the RF manual with out success so far.

      Thanks again for an on spot response.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

    • #172511

      RG:

      It’s kind of rough when you are the PowerShell expert, and YOU need help with it!

      Welcome to AskWoody!

      Jim

      Group "L" (Linux Mint)
      with Windows 10 running in a remote session on my file server
      2 users thanked author for this post.
    Viewing 3 reply threads
    Reply To: PowerShell stumper?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: