最後更新: 2018-12-20
在 Domain 環境時的設定步驟
[1] 下載 bginfo
https://docs.microsoft.com/en-us/sysinternals/downloads/bginfo
解壓及放到 shared folder "C:\software\bginfo"
[2] Save template
Run BgInfo64.exe, prepare the fields to display and then save your template in a .bgi file (template.bgi)
template.bgi
Host Name: <Host Name> IP Address: <IP Address>
It is important that the location of output bitmap for BigInfo is a folder on which the user has Read / Write access.
If this is not true, the bitmap wallpaper would not be generated.
To change the location of the output bitmap, click on Bitmap > Location
Default location: Bitmap > Location ( "%Temp%\BGInfo.bmp" )
[3] 把 bginfo.bat 放在 C:\Windows\SYSVOL\domain\scripts
@echo off
reg add HKU\.DEFAULT\Software\Sysinternals\BGInfo /v EulaAccepted /t REG_DWORD /d 1 /f 2>&1 > nul
\\crmad01\software\BGInfo\Bginfo.exe \\crmad01\software\BGInfo\template.bgi /TIMER:00 /nolicprompt
[4] 在其他機測試一次
\\server\software\BGInfo\bginfo.bat
[5] 設定某 User auto 行 script
A) Profile tab of the user properties dialog in the Active Directory Users and Computers (ADUC)
B) Create a new GPO then go to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff) and then double-click on Logon