I have two files: BGInfo.exe and TSWallpaper.bgi, save onto DFS path \\tcf.local\Support\TSTemplate.
I have the following vbscript:
Set objShell = WScript.CreateObject("WScript.Shell")
Username = "tcf.local\administrator"
Password = "password"
objShell.run "\\tcf.local\support\TSTemplate\BGInfo.exe TSWallpaper.bgi /timer:0 /SILENT /NOLICPROMPT",1 ,true
I logon as domain user account, it prompts for no permission to write into C:\WINDOWS folder.