That worked. adding the -arglist $var1,$var2,$var3 to the invoke-command and then using the $using:var1, etc worked like a charm.
Thanks again.
Dwight
PST Find,Rename and Move
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.