用AD组策略部署Bginfo,桌面显示用户信息

工具:Bginfo,Windows AD 组策略

 

  1. 先配置好Bginfo

 

对于IP 需要自定义,否则会出现不在使用的网卡的地址为空,显示为<none>。

为了过滤不适用的IPv6,可以使用下面的VBS脚本进行自定义过滤。

strComputer = “.”

On Error Resume Next

Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set IPSettings = objWMIService.ExecQuery (“SELECT * FROM Win32_NetworkAdapterConfiguration where IPEnabled = ‘True'”)

 

For Each objIPv4 in IPSettings

For i=LBound(objIPv4.IPAddress) to UBound(objIPv4.IPAddress)

If InStr(objIPv4.IPAddress(i),”:”) = 0 Then Echo objIPv4.IPAddress(i)

NEXT

NEXT

  1. 通过组策略设置开机脚本:

 

  1. 脚本内容设置:

    @echo off

    %logonserver%\netlogon\info\Bginfo64.exe %logonserver%\netlogon\info\jxinfo.bgi /timer:0 /nolicprompt

     

加班不给钱