Hi,
I've got a Problem again. How can I start subscripts without waiting till they exit? I search the same command like start (without /wait) in cmd.
I thought that this should work:($i in $config.Objs.Locations.Location)$location = $i.Name"& ""'C:\path\script.ps1'""" $location $tempserver
}
But it doesn't. It starts each ps1 file after the other, not at the same time.
Then I tried
[System.Diagnostics.Process]::Start("powershell","C:\path\script.ps1").
But I'm not able to get this working, because I can't insert the arguments $location and $tempserver without error.
Do you have any suggestions?
Thanks in advance.
Greets ahofer
{
powershell