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

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

difference between wuauclt1.exe and wuauclt.exe

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL