Hello, first time poster/long time user of PSADT.
Trying to help desktop guys with some migration of users. We have the following line which works but the CMD is displayed. We have 5 folders they would like copied local. Project to migrate user APPDATA to local. Teams, Adobe, Ivanti and other apps work much better local. Especially now with everyone working from home. What would be ideal is a “-WindowsStyle Hidden” like Execute-Process.
Added “start /min” which helps a little but CMD still pops up a window.
$ieResults = Execute-ProcessAsUser -Path “C:\Windows\system32\cmd.exe” -Parameters “/c start /min robocopy $homeShare\Applic~1\Microsoft\Intern~1\ “”$pPath\Appdata\Roaming\Microsoft\Internet Explorer”" /E" -Wait -PassThru
If anyone can offer any ideas, it would be greatly appreciated.