I need to access an import script located at "http://site.com/script.aspx", and I have currently setup up a powershell script doing this, the problem is the script probably takes 10minuttes to finish, and this causes the GetResponse to tiemout with : "GetResponse" with "0" argument(s): "The operation has timed out"
$global:url= "http://site.com/script.aspx"
#$myHttpWebRequest = [system.net.WebRequest]::Create($url)
#$myHttpWebRequest.Timeout = 600000 # dosent seem to do whats needed
#$myHttpWebResponse = $myHttpWebRequest.GetResponse()
How do I solve this problem?