是否有一个自动的方式来将项目固定到Windows 2008 TS环境中的任务栏?

我们有一个Windows 2008(R2)terminal服务器环境,并希望find一种方法来自动添加(固定)到我们的用户的Windows任务栏的程序。

我首先想到的是从组策略中做到这一点,但一直没有find一个设置。 我听说你可能'可能'通过脚本来做,但还没有看到任何例子(我不是一个程序员,但已经使用批处理脚本)。 还有其他的方法吗?

请指教。

谢谢!

由于没有人发布了一个不需要脚本的方法,下面是一个脚本,它将调用快捷方式上的Pin to Taskbar方法。 我也想如果有人知道任何不需要脚本的方法。

 Option Explicit ShellActionInvoke "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Other", _ "Lock Screen.lnk", _ "Pin to Tas&kbar" Function ShellActionInvoke(Fol, File, Verb) On Error Resume Next Dim objWscriptShell Set objWscriptShell = WScript.CreateObject("WScript.Shell") Fol=objWscriptShell.ExpandEnvironmentStrings(Fol) Dim objAppShell Set objAppShell = CreateObject("Shell.Application") Dim objFolder Set objFolder = objAppShell.Namespace(Fol) Dim objFolderItem Set objFolderItem = objFolder.ParseName(File) Dim objVerb, colVerbs Set colVerbs = objFolderItem.Verbs For Each objVerb in colVerbs If objVerb.Name = Verb Then objVerb.DoIt() Next End Function 

这并不是真的。 这只适用于英文版的Windows。 我正在寻找一个解决scheme,而不是把这个动词翻译成任何可能的语言:(