Okay work in progress but i thought about setting up a service and then remotley starting the service....hehe.....

Code:
 

; Uses instsrv.exe & srvany.exe from the Server 2003 resource kit


;copys instsrv.exe & srvany.exe

Copy "\\server\systems\kix" "c:\windows\system32" "instsrv.exe"

Copy "\\server\systems\kix" "c:\windows\system32" "srvany.exe"

;Creates service

Run "%COMSPEC% /c c:\windows\system32\instsrv.exe Testing C:\windows\system32\srvany.exe"

Sleep 0.5

;created regg entry

AddKey ("HKLM\system\CurrentControlSet\Services\Testing\Parameters")

Sleep 0.5

WriteValue ("HKLM\system\CurrentControlSet\Services\Testing\Parameters","Application","C:\windows\system32\MicrosoftSound.wav","Reg_SZ")

Sleep 0.5

;Sets startup type to manual

WriteValue ("HKLM\system\CurrentControlSet\Services\Testing","Start","3","Reg_DWORD")





Excuse the basics of it but i havent had long to mess with this 2day

Please feel free to comment

Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields