PST Find,Rename and Move

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
dwight.brookland
Posts: 17
Last visit: Tue Mar 26, 2024 11:24 am

Re: PST Find,Rename and Move

Post by dwight.brookland »

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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: PST Find,Rename and Move

Post by jvierra »

You don't need and should not use both methods.
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked