RunspacePool and SessionStateProxy


hello,

i'm trying speed tool use running powershell scripts using runspacepool functionality - problem have use 

 

ps.runspace.sessionstateproxy.setvariable("logger", this.log); 

 

inject custom logger.

 

if use runspacepool - runspace property on powershell object (always) null , don't seem able figure out way find / set correct sessionstateproxy.

 

can use sessionstateproxy if using runspacepool or 2 features mutually exclusive?

 

many thanks,

 

howard



hello howard,

thank question.

i trying involve familiar topic further @ issue.

thanks.

tiger li


please remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. can beneficial other community members reading thread.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...