Windows Vista Forums

Is there a way to disconnect a session and then resume it?

  1. #1


    hayate Guest

    Is there a way to disconnect a session and then resume it?

    I want to run some long term commands in powershell session on server,
    and don't want to be connected to it all the time.

    So how to disconnect a session but not end it, and then reconnect it
    to check if the jobs are finished?

    Or other ways to finish similar tasks?



    Thanks all

      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: Is there a way to disconnect a session and then resume it?

    With PowerShell v2, you *must* leave the "control console" running. You
    cannot reconnect to a remote session once you close the console that started
    that remote session.

    Marco

    "hayate" <hayatelee@newsgroup> wrote in message
    news:5c1501f0-4613-4693-b0e8-8d42b61c3a8a@newsgroup

    > I want to run some long term commands in powershell session on server,
    > and don't want to be connected to it all the time.
    >
    > So how to disconnect a session but not end it, and then reconnect it
    > to check if the jobs are finished?
    >
    > Or other ways to finish similar tasks?
    >
    > Thanks all

      My System SpecsSystem Spec

  3. #3


    Larry__Weiss Guest

    Re: Is there a way to disconnect a session and then resume it?

    Could you use your remote session to instantiate a scheduled task that invokes
    PowerShell commands, then disconnect and reconnect later to check its status?

    - Larry


    Marco Shaw [MVP] wrote:

    > With PowerShell v2, you *must* leave the "control console" running. You
    > cannot reconnect to a remote session once you close the console that
    > started that remote session.
    >
    > Marco
    >
    > "hayate" <hayatelee@newsgroup> wrote in message
    > news:5c1501f0-4613-4693-b0e8-8d42b61c3a8a@newsgroup

    >> I want to run some long term commands in powershell session on server,
    >> and don't want to be connected to it all the time.
    >>
    >> So how to disconnect a session but not end it, and then reconnect it
    >> to check if the jobs are finished?
    >>
    >> Or other ways to finish similar tasks?
    >>
    >> Thanks all
    >

      My System SpecsSystem Spec

  4. #4


    hayate Guest

    Re: Is there a way to disconnect a session and then resume it?

    On Mar 24, 9:04*am, Larry__Weiss <l...@newsgroup> wrote:

    > Could you use your remote session to instantiate a scheduled task that invokes
    > PowerShell commands, then disconnect and reconnect later to check its status?
    >
    > * - Larry
    >
    > Marco Shaw [MVP] wrote:

    > > With PowerShell v2, you *must* leave the "control console" running. *You
    > > cannot reconnect to a remote session once you close the console that
    > > started that remote session.
    >

    > > Marco
    >

    > > "hayate" <hayate...@newsgroup> wrote in message
    > >news:5c1501f0-4613-4693-b0e8-8d42b61c3a8a@newsgroup

    > >> I want to run some long term commands in powershell session on server,
    > >> and don't want to be connected to it all the time.
    >

    > >> So how to disconnect a session but not end it, and then reconnect it
    > >> to check if the jobs are finished?
    >

    > >> Or other ways to finish similar tasks?
    >

    > >> Thanks all
    I just wanna confirm my idea. In practice we can always find a way to
    do this job.
    However if there exists a tool or method like GNU Screen does, that
    would be better

      My System SpecsSystem Spec

  5. #5


    Marco Shaw [MVP] Guest

    Re: Is there a way to disconnect a session and then resume it?

    Sorry, I don't follow... I don't use Screen either.

    Marco

    > I just wanna confirm my idea. In practice we can always find a way to
    > do this job.
    > However if there exists a tool or method like GNU Screen does, that
    > would be better

      My System SpecsSystem Spec

Is there a way to disconnect a session and then resume it?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start & Stop Programs @ Session Connect & Disconnect Urbane Tiger Vista General 0 16 Aug 2008
Network Idle Session Time to Automatically Disconnect Brink Tutorials 0 07 Aug 2008
VPN Session Icon Disappears, so I can't close Session mcambrose Vista file management 0 29 Nov 2007
Dual Monitor config changes after session resume Bas Penris Vista hardware & devices 1 10 Sep 2007
wow disconnect Raifen Vista General 1 29 Aug 2007