Session import from within module


hello everyone,

i've been developing office365 script module lately , i've run small problem.

i have created function creates powershell session exchange online when import session function exchange commands not available on main powershell. can see session using get-pssession cmdlet.

i guess has scope of variables...

best regards,

christos

i gave try following command in function:

import-module (import-pssession $session -allowclobber) -global

, worked!


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Global Catalog ?

mailing list

Global Catalog