Hi,

I would like to say that if I replace all of the Drive mappings with
Code:
	$DriveToMap = "\\shamil-2dptm3ss\netlogon"
	$lblTask.Text = $Blanker
    $lblTask.Text = "netlogon"
	Use N: $DriveToMap		
	DoProgress(10)	
	
	Sleep 0.5
	$DriveToMap = "\\shamil-2dptm3ss\cache"
	$lblTask.Text = "SmartCache"
	Use S: $DriveToMap		
	DoProgress(10)
	Sleep 0.5


The code works perfectly fine. (I use this at home). But adding the drive mappings make it fail.

Also, I am sure all the variables are declared at the begninning of the script, NTDOC.