需要根据主机名在login时调用脚本。 赢得2k3域名和XP / 7工作站
我有一个用户login脚本。 我想根据主机名安装打印机。 在此文件夹\ domain.local \ SYSVOL \ domain.local \ Policies {DF3F608C-8D78-934F-B79F-1965F3C4409B} \ User \ Scripts \ Logon 我有每个主机/工作站的cmd文件和logon.cmd。 terminal服务器遵守环境variables%clientname%,但工作站不是。 logon.cmd的相关区域 rem Delete all existing printer connections c:\windows\system32\con2prt.exe /f rem Call workstation specific script for connecting to printers %clientname%.cmd 摘自clientname.cmdL: rundll32 printui,PrintUIEntry /in /n\\fileserv\PhaserPS rundll32 printui,PrintUIEntry /in /n\\fileserv\CanonIR rundll32 printui,PrintUIEntry /y /n\\fileserv\CanonIR