+ Post New Thread
Results 1 to 6 of 6
Windows 7 Thread, Windows 7 and RM cc4 - Pinning shortcuts through GP and login icon and username field in Technical; Hi We have successfully deployed windows 7 on our network now its just the little things i am trying to ...
  1. #1

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    481
    Thank Post
    121
    Thanked 16 Times in 16 Posts
    Rep Power
    9

    Windows 7 and RM cc4 - Pinning shortcuts through GP and login icon and username field

    Hi

    We have successfully deployed windows 7 on our network now its just the little things i am trying to figure out. Does anyone know how to set it so all users have internet explorer pinned to the task bar?

    Also when the machines are logged out the square where you can have a picture is just blank. Is there a way to get all machines to display the same image in there? e.g. the school logo?

    Finally when a student or staff is logged in and the computer locks there is no box to enter a username (only lets you type in a password) so that an admin cannot come along and quickly log out a teacher. Is there a way to get the username box back?

    Thanks

  2. #2

    Join Date
    Jan 2007
    Location
    Essex, UK
    Posts
    33
    Thank Post
    9
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'd like to know too please if anyone out there can help!

    thanks

  3. #3
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Harpenden
    Posts
    2,319
    Thank Post
    54
    Thanked 294 Times in 230 Posts
    Blog Entries
    6
    Rep Power
    116
    Pinning shortcuts by GPO - Officially you can't do it. This is a design decision by Microsoft to stop OEMs pre-populating pinned start menus and taskbars with crap. Unofficially, there is a workaround. You can use a login script which effectively emulates the mouse clicks and key presses which pin shortcuts. This is the one that we use:

    Code:
    Const HKEY_CURRENT_USER = &H80000001
    strComputer = "."
    
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
    Set WshShell = WScript.CreateObject("WScript.Shell")
    
    'Declare variables
    
    Dim arrOfficeArray (4)
    Dim strOCSIcon
    Dim strCalculatorIcon
    Dim strNotepadIcon
    Dim i
    
    'Declare constants
    Const CSIDL_COMMON_PROGRAMS = &H17 
    Const CSIDL_PROGRAMS = &H2
    
    'Initialize variables
    arrOfficeArray(0) = "Microsoft Outlook 2010.lnk"
    arrOfficeArray(1) = "Microsoft Word 2010.lnk"
    arrOfficeArray(2) = "Microsoft Excel 2010.lnk"
    arrOfficeArray(3) = "Microsoft PowerPoint 2010.lnk"
    arrOfficeArray(4) = "Microsoft OneNote 2010.lnk"
    strCalculatorIcon = "Calculator.lnk"
    strNotepadIcon = "notepad.exe"
    strIEIcon = "iexplore.exe" 
    
    strKeyPath = "Software\LSFC"
    strValueName = "Pinned"
    
    objRegistry.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
    
    
    If IsNull(dwValue) Then
    'Checks for registry entry, if not there then pins shortcuts
    '    Wscript.Echo "The registry key does not exist."
    On Error Resume Next
    
    'Sleep script to allow shortcuts to copy down
    WScript.Sleep(500)
    
    'Pin to taskbar - Outlook, Word, Excel, PowerPoint, OneNote, OCS
    Set objShell = CreateObject("Shell.Application")
    Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS) 
    Set objMyProgramsFolder = objShell.NameSpace(CSIDL_PROGRAMS) 
    
    strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path 
    'wscript.echo("strAllUsersProgramsPath = " & strAllUsersProgramsPath)
    strMyProgramsFolderPath = ("C:\ProgramData\shared start menu")
    'wscript.echo("strMyProgramsFolderPath = " & strMyProgramsFolderPath)
    
    'Pin to Start Menu and Taskbar - IE
    Set objFolder = objShell.Namespace("C:\program files (x86)\Internet Explorer")
    Set objFolderItem = objFolder.ParseName(strIEIcon) 
    Set colVerbs = objFolderItem.Verbs 
    For Each objVerb in colVerbs 
        If Replace(objVerb.name, "&", "") = "Pin to Start Menu" Then objVerb.DoIt 
    Next
    
    'Pin Windows Explorer to taskbar
    Set objFolder = objShell.Namespace("C:\windows")
    Set objFolderItem = objFolder.ParseName("Explorer.exe") 
    Set colVerbs = objFolderItem.Verbs 
    For Each objVerb in colVerbs 
        If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt 
    Next
    
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Microsoft Office")
    For i = 0 To 2
    	Set objFolderItem = objFolder.ParseName(arrOfficeArray(i)) 
    	Set colVerbs = objFolderItem.Verbs 
    	For Each objVerb in colVerbs 
    	    If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt 
    	Next
    Next
    
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Microsoft Office")
    	Set objFolderItem = objFolder.ParseName(arrOfficeArray(0)) 
    	Set colVerbs = objFolderItem.Verbs 
    	For Each objVerb in colVerbs 
    	    If Replace(objVerb.name, "&", "") = "Pin to Start Menu" Then objVerb.DoIt 
    	Next
    
    
    'Write registry entry to stop shortcuts being pinned again
    	WSHShell.RegWrite "HKEY_CURRENT_USER\Software\LSFC\Pinned", "Yes"
    
    Else
    wscript.sleep(10)
     '   Wscript.Echo "The registry key exists. (" & dwValue & ")"
    
    End If
    That script includes code to add an entry to the registry so user removed shortcuts don't constantly get re-added on each logon.

    I can't take credit for all of this script, I found it elsewhere (possibly even here!) and adapted it to my needs.
    Last edited by Norphy; 5th October 2012 at 10:50 AM.

  4. #4

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    21
    Quote Originally Posted by tj2419 View Post
    Finally when a student or staff is logged in and the computer locks there is no box to enter a username (only lets you type in a password) so that an admin cannot come along and quickly log out a teacher. Is there a way to get the username box back?
    I think you can click the username to change it, however, you can easily do it from you desk with a "logoff * /server:<computername>" command.

  5. #5
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,475
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52
    Redirect your desktop to a server location and put a shortcut to IE as a shortcut.

    I will try and find where the user icon is kept we do this.

    Richard

    Quote Originally Posted by tj2419 View Post
    Hi

    We have successfully deployed windows 7 on our network now its just the little things i am trying to figure out. Does anyone know how to set it so all users have internet explorer pinned to the task bar?

    Also when the machines are logged out the square where you can have a picture is just blank. Is there a way to get all machines to display the same image in there? e.g. the school logo?

    Finally when a student or staff is logged in and the computer locks there is no box to enter a username (only lets you type in a password) so that an admin cannot come along and quickly log out a teacher. Is there a way to get the username box back?

    Thanks

  6. #6
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,475
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52
    Have a look at this to set the default user logo http://www.vistax64.com/tutorials/15...all-users.html

    Richard

    Quote Originally Posted by tj2419 View Post
    Hi

    We have successfully deployed windows 7 on our network now its just the little things i am trying to figure out. Does anyone know how to set it so all users have internet explorer pinned to the task bar?

    Also when the machines are logged out the square where you can have a picture is just blank. Is there a way to get all machines to display the same image in there? e.g. the school logo?

    Finally when a student or staff is logged in and the computer locks there is no box to enter a username (only lets you type in a password) so that an admin cannot come along and quickly log out a teacher. Is there a way to get the username box back?

    Thanks

SHARE:
+ Post New Thread

Similar Threads

  1. Intel 82579V LAN and RM CC4.3
    By Danp in forum Hardware
    Replies: 18
    Last Post: 26th June 2012, 09:14 AM
  2. Moving from RM CC4 to Windows Network
    By tj2419 in forum Network and Classroom Management
    Replies: 47
    Last Post: 3rd June 2011, 07:08 PM
  3. RM CC4 and non-RM laptops
    By Janyo in forum Network and Classroom Management
    Replies: 6
    Last Post: 27th May 2011, 10:31 AM
  4. Deploy Software Through GP And MSI
    By DaveP in forum Windows
    Replies: 12
    Last Post: 30th October 2009, 12:57 PM
  5. Start Menu: Pinned Shortcuts for Internet and Outlook
    By burgemaster in forum Windows Vista
    Replies: 6
    Last Post: 1st April 2009, 03:13 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
  •