View Single Post
Old 04-07-2008, 23:04   #8
Steve-o||[^]
Inactive
 
Join Date: Mar 2007
Location: The unserviceable side of an otherwise serviceable street; Greenock, Scotland
Age: 37
Services: Uber-limited HSDPA/HSUPA @ just-about-1Mbit/s-downstream.
Posts: 85
Steve-o||[^] is on a distinguished roadSteve-o||[^] is on a distinguished road
Re: SBS2003 push shortcuts to users

/votes CreateShortcut() via logon script

Code:
//-- straight copy-paste from my script repo..
<job>
<script language="JScript">

// roll the dice!
var ws		= WScript.CreateObject("WScript.Shell");
var desktop	= ws.SpecialFolders("Desktop");

// shortcut details
var server	= "blue";
var share	= "public\\netinst";	//- escape backslashes -- \ = \\
var label	= "Public Network Installations";

// create the shortcut!
var scut			= ws.CreateShortcut(desktop + "\\"+ label +".lnk");
scut.TargetPath		= "\\\\"+ server +"\\"+ share;
scut.IconLocation	= "%SYSTEMROOT%\\system32\\shell32.dll,85";	//- Network share icon
scut.Save()

</script>
</job>

http://msdn.microsoft.com/en-us/libr...ys(VS.85).aspx
Steve-o||[^] is offline   Reply With Quote