Solved

User computer policy window dosent popup , when user logs in after Domain controller migration

Posted on 2014-02-09
2
625 Views
Last Modified: 2014-03-24
Hi  

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.

Thanks
0
Comment
Question by:lianne143
2 Comments
 
LVL 3

Accepted Solution

by:
computication earned 500 total points
ID: 39846289
Hi,

Can you check a setting from this artical? http://technet.microsoft.com/nl-nl/library/cc738773(v=ws.10).aspx

Computer Configuration\Administrative Templates\System\Scripts\Run shutdown scripts visible

By default script output isn't  visable to users.

This allows the script to use command to interact with the shell:
Set WSHShell = CreateObject("WScript.Shell")

This compares the first 3 letters of the computername to the string "LAP" and then sets a variable matchUser with the string: "/matchuser"
If UCase(Left(strComputerName, 3)) = "LAP" Then matchUser = " /matchuser"

Hope it helps. Let me know if I was unclear.
0
 

Author Comment

by:lianne143
ID: 39894465
What would happen if it sets a  a variable with match user and string

Thanks
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html) provided 218 attendees with a step-by-step guide for identifying Acti…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now