SSO Auto Script

This also takes care of vista VS xp users since vista doesn’t use c:\documents and settings.

You may want to consider using the %userprofile% variable as the base of the profile path to avoid any issues

D

One last question guys. Can I modify this script so that it will create a desktop shortcut to spark for them? As it is right now, the msi gets installed, and the script moves the spark.properties to the right place but I have to click start --> programs to start spark and if the shortcut isn’t on the desktop I don’t know if my users are smart enough to find it. Thanks in advance for the help.

It you put the shortcut (spark.lnk) into the netlogon folder you should be able to add:

xcopy -f -y %logonserver%\netlogon\Spark\spark.lnk “%userprofile%\desktop”

That would only put it on a single users desktop. You probably should put it on all users desktop:

xcopy /y %logonserver%\netlogon\Spark\spark.lnk %alluserprofile%\desktop*.*

Thanks guys, I tried both ways and neither results in a shortcut on the desktop. Pretty sure I did everything right, anything you can think of that would prevent it from working?

I am still aflicted by the proofreading bug. the script should be as follows:

xcopy /y %logonserver%\netlogon\Spark\spark.lnk “%allusersprofile%\desktop*.*”