We recently migrated our DC from Windows 2008 to windows 2012 server and also all the netlogon shares to our new server.
Before the migration when students were logging into a computer user policy windows used to appear and the window had options to accept and decline. when the students click the accept the policy the window disappears and the desktop loads.
But if the user declines the PC logs off the user.
Recently I have found, when the student logs I cannot see this window popping up. It straight away loads the desktop.This was set up by my predecessors.
If I go to the properties of a student user properties -Profile- User profile -Logon script
I can see a login.vbs and I have copied the text below. Not sure what it actually means.
Is this calling another script to display the user policy when user logs in ?
Set WSHShell = CreateObject("WScript.Shell")
If UCase(Left(strComputerName, 3)) = "LAP" Then matchUser = " /matchuser"
When I go to the students OU and there is a GPO applied to this OU. Under the User Configuration - Policies – Windows settings- Scripts
If I see the properties of a logon script- I can see another Student.VBS applied here and the following lines which I have copied from the .
SET DESKTOP WALLPAPER STUDENTS
WSHShell.Run ("\\domain.local\SYSVOL\domain.local\scripts\bginfo\bginfo.exe \\domain.local\SYSVOL\domain.local\scripts\bginfo\student.bgi /accepteula /timer:0 /silent")
' END SET DESKTOP WALLPAPER
I saw the permissions on the bginfo folder and the everyone is set for read and write . Any help to trouble shoot the failing computer policy popup much appreciated.
Or please let me know if there is a better way of implementing this.