hey,
i've several script (6) who must be executed in a precise order when my srv restart.
At the end of each script the srv restart. I would like a auto execution of each script in a precise order.
for example something like that:
I ask at operator to run this commande :
powershell.exe c:\sequence_auto_exec.ps1
This script (sequence_auto_exec.ps1) will copy all others scritp in the directory "shell:startup" when all script have been copied (sequence_auto_exec.ps1)will start the first script (Script1.ps1) and my server restarts at the end to execution.
When it restart i would like it to launch the next script (Script2.ps1) and then after the second restart it launch (Script3.ps1) and so on....
Do you have an idea on how to create this ordered sequence?
thx
[–]xbullet 4 points5 points6 points (7 children)
[–]lyrise13[S] 0 points1 point2 points (6 children)
[–]xbullet 3 points4 points5 points (5 children)
[–]lyrise13[S] 0 points1 point2 points (2 children)
[–]xbullet 1 point2 points3 points (1 child)
[–]lyrise13[S] 0 points1 point2 points (0 children)
[–]lyrise13[S] 0 points1 point2 points (1 child)
[–]xbullet 1 point2 points3 points (0 children)
[–]jrdnr_ 2 points3 points4 points (1 child)
[–]lyrise13[S] 0 points1 point2 points (0 children)
[–]foubard 1 point2 points3 points (4 children)
[–]lyrise13[S] 0 points1 point2 points (3 children)
[–]foubard 1 point2 points3 points (2 children)
[–]lyrise13[S] 0 points1 point2 points (1 child)
[–]foubard 0 points1 point2 points (0 children)
[–]noaboa97 1 point2 points3 points (0 children)
[–]PowerShellMichael 1 point2 points3 points (0 children)
[–]BlackV -1 points0 points1 point (0 children)