+ Post New Thread
Results 1 to 10 of 10
Windows 7 Thread, Windows 7 - disabling 'Do you want to open...' dialog box when opening .lnk shortcuts in Technical; Hi all When a user logs on to our windows 7 machines, their profile look ata location within the 'netlogon' ...
  1. #1

    Join Date
    Apr 2009
    Posts
    93
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    15

    Windows 7 - disabling 'Do you want to open...' dialog box when opening .lnk shortcuts

    Hi all

    When a user logs on to our windows 7 machines, their profile look ata location within the 'netlogon' shared folder which contains the desktop and start menu shortcuts (all local shortcuts are disabled)

    Whenever a user tries to launch one of the shortcuts they are presented with the a warning 'do you want to open.......' (see attached file for the dialog box displayed)

    Is there a way with GPO/registry to disable this warning for .lnk files on a UNC path?

    Thanks


  2. #2

    Join Date
    Sep 2007
    Location
    Connecticut
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    In Group Policy Editor navigate to User Configuration > Policies > Administrative Templates > Windows Components > Attachment Manager.
    Edit the Policy "Inclusion list for low file types" and add *.lnk.

  3. #3

    Join Date
    Apr 2009
    Posts
    93
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    15
    Quote Originally Posted by Rich View Post
    In Group Policy Editor navigate to User Configuration > Policies > Administrative Templates > Windows Components > Attachment Manager.
    Edit the Policy "Inclusion list for low file types" and add *.lnk.
    Thank you Rich, but tried that but it does not seem to help

  4. #4

    Join Date
    Sep 2007
    Location
    Connecticut
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    See if running this script in conjunction with that group policy does the trick. It just sets your domain as part of the trusted zone. Make sure you change yourschoolhere.net to your domain.

    Code:
    Const HKEY_CURRENT_USER = &H80000001
    
    strComputer = "."
     
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
     
    strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\yourschoolhere.net"
    objRegistry.CreateKey HKEY_CURRENT_USER, strKeyPath
    
    strValueName = "*"' 
    dwValue = 2
    objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

  5. #5

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,210 Times in 761 Posts
    Rep Power
    394
    As Rich mentioned, you need to add the UNC server path to the Trusted Sites zone (or Intranet zone) in IE.

    Windows Explorer shares its security zone settings with IE, and UNC paths are no longer automatically put into the Intranet zone. GPO has specific settings for this via the Site to Zone Assignment List in Administrative Templates\Windows Components\Internet Explorer\Security Features

  6. #6

    Join Date
    Apr 2009
    Posts
    93
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    15
    Thank you very much for this Rich...I am having a little trouble trying to import it though. I saved it as '.reg' and tried to import it but not getting much luck.

    What file type should I save it as in order to run this script?

    Quote Originally Posted by Rich View Post
    See if running this script in conjunction with that group policy does the trick. It just sets your domain as part of the trusted zone. Make sure you change yourschoolhere.net to your domain.

    Code:
    Const HKEY_CURRENT_USER = &H80000001
    
    strComputer = "."
     
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
     
    strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\yourschoolhere.net"
    objRegistry.CreateKey HKEY_CURRENT_USER, strKeyPath
    
    strValueName = "*"' 
    dwValue = 2
    objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

  7. #7
    machin05's Avatar
    Join Date
    Dec 2007
    Posts
    304
    Thank Post
    18
    Thanked 21 Times in 20 Posts
    Rep Power
    23
    It looks like a Visual Basic script to me, so rename it to a *.vbs

  8. #8

    Join Date
    Apr 2009
    Posts
    93
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    15
    still cannot get it to work

    I dont know what I am doing wrong.

    1.) I created a GPO
    2.)I edited the GPo with the following setting: User Configuration > Policies > Administrative Templates > Windows Components > Attachment Manager.
    Edit the Policy "Inclusion list for low file types" and add *.lnk.
    3.)I added the 'Logon' script kindly supplied by Rich (made the changes to include our domain and also saved as .vbs) to the GPO
    4.) I assigned the GPO to a relevent user group for testing.

    But is still does not work

    Can anyone think of anything I might be doing worng? could something be overriding the changes that the script makes?

    .....going mad!

  9. #9

    Join Date
    Apr 2009
    Posts
    93
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    15
    managed to sort it in the end..I am still not sure what I was doing wrong...but its working now!

    thanks VERY much

  10. #10

    Join Date
    Jan 2010
    Posts
    62
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    10
    if you wish to disable the Attachment Manager you can do so via Group Policy > User Configuration > Administrative Templates > Windows Components > Attachment Manager.
    Double click on Do not preserve zone information in file attachments to open the settings box and Enable the setting here. If you enable this policy setting Windows does not mark file attachments with their zone information.

SHARE:
+ Post New Thread

Similar Threads

  1. Open that SERCO plastic box from BETT?
    By cheesypete in forum How do you do....it?
    Replies: 2
    Last Post: 18th January 2010, 11:53 AM
  2. Dialog Box Re-titlement
    By Earthling in forum Scripts
    Replies: 4
    Last Post: 10th December 2009, 08:16 AM
  3. Windows 7 Keyboard Shortcuts Listed
    By DaveP in forum Windows 7
    Replies: 1
    Last Post: 24th November 2009, 07:54 AM
  4. Sophos Breaks IE shortcuts opens print box
    By round2it in forum Windows
    Replies: 4
    Last Post: 10th November 2009, 01:40 PM
  5. [Joke] Windows copy dialog :)
    By localzuk in forum Jokes/Interweb Things
    Replies: 5
    Last Post: 20th July 2009, 02:28 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •