Logon script required

Posted on 2012-09-13
Last Modified: 2012-10-09
Hi there

I am doing work in a school and every PC has been updated to W7. The Cisco class requires Cisco Networking Academy software to run. These clases are all html/flash based and when they try and use it nothing happens. The fix is to go into the settings manager of the Flash player and allow flash to run. This is fine but it has to be done on an individual user bases. I want to be able to do it once as the administrator and then have every user be able to just use the software without all the individual user account configuration.

I came across a solution at the link below. I am hoping that someone can tell me how to write the suggested Logon Script. Or give me an alternative solution.

Question by:doey
    LVL 17

    Accepted Solution


    There might be an easier way but it depends on whether or not the users have already logged into the machine.  The method below should work if a user has not logged into the machine yet:

    Copy the settings.pol to the default user folder in Windows 7


    From here though, I don't know where the settings.pol file is stored.  Login as yourself if you already have one, and copy it to the same path in the Default user folder indicated above.

    Again this should work for users if they have not logged in before.  

    Now for users that already exist, it might be easier to copy the file manually to each user profile folder.

    If you want to use the login script, create a batch file called flash.bat (this can be done with Notepad) and copy it to the global startup folder:

    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    In the script:
    copy C:\path\to\settings.pol C:\Users\%userprofile%\path\to\settings.pol

    Open in new window

    %userprofile% is a wildcard that auto inserts the current user account name in the path.
    LVL 2

    Assisted Solution

    If you follow the article and get your settings the way you want them, then move the Settings.sol to a network share, this VBScript should work:

    Set oShell = CreateObject("WScript.Shell")
    sUserProfile = oShell.ExpandEnvironmentStrings("%userprofile%")
    Set fso = CreateObject("Scripting.FileSystemObject")
    fso.Copyfile "\\networkshare\Settings.sol", sUserProfile & "\Application Data\Macromedia\Flash Player\\support\flashplayer\sys\settings.sol"

    Open in new window

    Update the server location in the last line to point to the settings.sol file on your network share.
    LVL 59

    Expert Comment

    I've requested that this question be deleted for the following reason:

    Not enough information to confirm an answer.
    LVL 17

    Expert Comment

    Hi Lee,

    I feel Nick and I have provided reasonable examples on how to apply the settings.pol file at logon and achieve the objective.  Although I didn't know the exact path, I do know this method has worked before to apply updated default settings.

    If things still appear inconclusive, then proceed with deleting the question.
    LVL 17

    Expert Comment

    3. I would like to request split accepted answer for the responses below with an A or B grade:


    With a couple minor path modifications from the author, both suggestions should work.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
    This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
    The viewer will learn how to back up with the free utility from runtime software, DriveImageXML using Windows 7. Download DriveImageXML from Open folder where it was saved: Start installation by double clicking the install scrip…

    737 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

    20 Experts available now in Live!

    Get 1:1 Help Now