Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
PowerShell Development
>
Hosting the Shell
PowerShell Variables in the custom host
Last Post 14 Apr 2010 10:58 PM by
Shay Levy
. 1 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Tom Holt
New Member
Posts:1
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 Levy
PowerShell MVP, Admin
Veteran Member
Posts:1362
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.
Using PowerShell
--General PowerShell
--Active Directory
--Exchange Server
--SharePoint
--SQL Server
--System Center
--Non-Microsoft Products
--Books, Tools, and Videos
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
PowerShell Development
>
Hosting the Shell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2