在AD環境中如何寫個批次檔增如USER的啟 … - Windows

By Puput
at 2009-06-24T23:16
at 2009-06-24T23:16
Table of Contents
※ 引述《tthung (Kidd)》之銘言:
: 如題,如何寫一個bat(批次檔)讓user login AD後,
: 在每個user的程式集\啟動中自行多一個本機已安裝的程式,且能在桌面多個捷徑
: 例:c:\program files\abc\abc.exe
: 應該算logon script
你的問題是需要在 login script 增加"產生捷徑"的批次檔,
但 Windows 本身沒有指令模式可產生捷徑,
產生捷徑要用 Nirsoft 的 nircmd.exe (自己去咕狗)
然後產生捷徑在程式集裡面,所以你要用環境變數去套用,
User Profile 的變數是 %UserProfile% (自己去查怎麼用)
就可以產生捷徑在你的 User 程式集裡面了。
另外,在 AD 環境下一定要全面用環境變數,
別傻傻的一開頭就寫 C:\Program Files.......你會後悔。
講完了,自己寫吧,別叫我幫你寫。
--
: 如題,如何寫一個bat(批次檔)讓user login AD後,
: 在每個user的程式集\啟動中自行多一個本機已安裝的程式,且能在桌面多個捷徑
: 例:c:\program files\abc\abc.exe
: 應該算logon script
你的問題是需要在 login script 增加"產生捷徑"的批次檔,
但 Windows 本身沒有指令模式可產生捷徑,
產生捷徑要用 Nirsoft 的 nircmd.exe (自己去咕狗)
然後產生捷徑在程式集裡面,所以你要用環境變數去套用,
User Profile 的變數是 %UserProfile% (自己去查怎麼用)
就可以產生捷徑在你的 User 程式集裡面了。
另外,在 AD 環境下一定要全面用環境變數,
別傻傻的一開頭就寫 C:\Program Files.......你會後悔。
講完了,自己寫吧,別叫我幫你寫。
--
Tags:
Windows
All Comments

By Christine
at 2009-06-28T10:21
at 2009-06-28T10:21

By Zenobia
at 2009-06-28T19:10
at 2009-06-28T19:10
Related Posts
這樣的硬體設備 能夠安裝windows 7嗎?

By Puput
at 2009-06-24T22:10
at 2009-06-24T22:10
在AD環境中如何寫個批次檔增如USER的啟動程式

By Annie
at 2009-06-24T16:57
at 2009-06-24T16:57
win7下的Ramdisk

By Lydia
at 2009-06-24T16:35
at 2009-06-24T16:35
Outlook Express通訊錄匯出的問題

By Ursula
at 2009-06-24T16:02
at 2009-06-24T16:02
請問如何打開防火牆隨機的PORT呢?

By Vanessa
at 2009-06-24T15:28
at 2009-06-24T15:28