header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
PowerShell Variables in the custom host
Last Post 14 Apr 2010 10:58 PM by Shay Levy. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Tom HoltUser is Offline
New Member
New Member
Posts:1
Avatar

--
14 Apr 2010 01:02 PM
    I was curious on how to get and set PowerShell variables in the Host User Interface class. I have yet to be able to find a way to access the session state from within the class. Seems like it should be simple.
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    14 Apr 2010 10:58 PM
    See these methods:

    Runspace.SessionStateProxy.GetVariable
    Runspace.SessionStateProxy.SetVariable

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer