VB Script help!!! - TechRepublic
Question
May 19, 2008 at 05:49 AM
thegman

VB Script help!!!

by thegman . Updated 18 years, 1 month ago

Hi i have a script problem and script is a dark art to me!!

im trying to creat a logoff script that i can run from a GP to get rid of cached roaming profiles. i have tried several different scripts that i have cobbled together from bits that I have found on the net or from other scripts that I have. Below are several ones that I have tried but when you run them they come back with a syntax error code 800A03EA which means nothing to me as I don?t know VB at all. Can someone please send me the right script or point out where I have gone wrong with the ones I have copied in.

cheers

my first try

objShell.Run \\server1\netlogon\delprof.exe /q /r

end if
end sub

my second try

with WScript.CreateObject(“WScript.Shell”)

.run “%logonserver%\netlogon\delprof.exe /q /r”

end with

End Sub

This discussion is locked

All Comments