Kelly Garcia
asked on
-OutVariable to Global
HI All,
I have this line of code in my powershell script:
I want the -OutVariable mailboxtomigrate to become a global variable so I can use it in another function, how do I do this?
I have this line of code in my powershell script:
$ListView.ItemsSource = @($ListView.SelectedItems | Select-Object DisplayName, TotalItemSize, ItemCount, Database, TotalDeletedItemSize,DeletedItemCount, LastLoggedOnUserAccount, LastLogonTime, LastLogoffTime -OutVariable mailboxtomigrate)
I want the -OutVariable mailboxtomigrate to become a global variable so I can use it in another function, how do I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.