Reputation: 34099
I assigned in the gpo a powershell script as logon script.
All my clients are Windows 7 based machine. Every clients have an application in the startup folder, that will start, when the machine is getting started.
The application that is getting started, depends on that powershell script. Because the powershell script will copy all settings from network share location, that the application needs to start.
My problem is now, that the application starts faster than even the powershell script starts to copy the file from networkshare. So the application can never use the settings.
My question is, how can avoid the application starts before the powershell script is finish with the copy without any extension app.
Upvotes: 1
Views: 955
Reputation: 1990
To be absolutely sure, I recommend that the best practice in this case would be to simply remove programs, which are dependent on script, from Startup folder. Then launch them from PowerShell at the end of your logon script.
To execute a program from PowerShell use the Call operator. You can refer here on other SO question.
Upvotes: 1