You have a missing EndIf. have alook at the script below.

 Code:
; **Adding icon to group below's Desktop**
If InGroup ("APP-Allscripts")
	If NOT Exist(%UserProfile% + "\Desktop\Allscripts.rdp")
		Copy "\\Sec01\deploy$\Shortcuts\Allscripts.rdp" %UserProfile% + "\Desktop"
	EndIf
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.