+ Reply to Thread
Page 1 of 2 1 2 Last
Results 1 to 25 of 47
  1. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #1

    Angry <CopyProfile>true</CopyProfile> not working...

    I thought all was well with my imaging but I cannot for the life of me figure out why <CopyProfile>true</CopyProfile> is not working in my sysprep.xml file when running sysprep.

    This is what I do:


    1. Install Windows 7 Pro.

    2. When install is complete and the first configuration windows comes up, push ctrl+shift+f3 to enter into Audit mode.

    3. When pc reboots, login with built-in Admin account and configure it the way I want ALL other accounts to be.

    4. When all customizations have been made, copy the sysprep.xml file that I made from WAIK with the <CopyProfile>true</CopyProfile> tag to c:\windows\system32\sysprep\.

    5. While still logged in to the only Admin account that I have ever logged in with, run sysprep /generalize /oobe /unattend:sysprep.xml.

    6. When the pc reboots, boot with imagex and capture the image to either a WDS server or an external hard drive.

    7. Deploy the image.


    When I follow those above steps, the Admin account that I configured DOES NOT copy over to any future accounts that I log in with.

    What exactly am I doing wrong?

    /very frustrated
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member
    Join Date
    Jul 2009
    Posts
    2,056

    Certifications
    Beer+
    #2
    Have you tried it with a different user than Admin?

    Supposedly it works with whatever user is logged in when running sysprep.

    Unfortunately, profile copy through sysprep has been something MS hasn't gotten exactly right, ever.
    Reply With Quote Quote  

  4. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #3
    Quote Originally Posted by Hyper-Me View Post
    Have you tried it with a different user than Admin?

    Supposedly it works with whatever user is logged in when running sysprep.

    Unfortunately, profile copy through sysprep has been something MS hasn't gotten exactly right, ever.

    Yup, tried it with 3 different dummy admin accounts. I even tried sysprepping an already sysprepped image and using an annswer file with just the copyprofile tag. Apparently Im not the only one with this issue, Ive read countles blogs and forums that show the same problem.
    Reply With Quote Quote  

  5. Junior Member
    Join Date
    Feb 2010
    Posts
    19
    #4
    Try copying your unattend file to c:\windows\system32\sysprep\panther

    If this still isn't working specify the exact file location of the unattend in sysprep so for e.g:
    sysprep /generalize /oobe /unattend:c:\windows\system32\sysprep\unattend.xml replace unattend.xml with what you have called your unattend file.
    Reply With Quote Quote  

  6. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #5
    Quote Originally Posted by Gaber View Post
    Try copying your unattend file to c:\windows\system32\sysprep\panther

    If this still isn't working specify the exact file location of the unattend in sysprep so for e.g:
    sysprep /generalize /oobe /unattend:c:\windows\system32\sysprep\unattend.xml replace unattend.xml with what you have called your unattend file.
    Does this method work for you?
    Reply With Quote Quote  

  7. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #6
    This is why I love MS...

    In this kb article, they say:

    In Windows Vista and in Windows Server 2008-based computers, the CopyProfile setting must be present during the generalize phase.

    Then, in this kb article, they say:

    This parameter must be set to "true" in the specialize pass
    And then you have this!!!

    However this process does have a drawback. It does not propagate all settings to Default User and there is no known documentation as to what will and will not be propagated. It also can be difficult to determine if a setting did not carry over to a new user because it was considered inappropriate (i.e. not copied to Default User by design) or is being reset by Minisetup/Specialize or first logon processes.
    Seriously? wtf is that all about?
    Last edited by phoeneous; 03-16-2010 at 04:18 PM.
    Reply With Quote Quote  

  8. Junior Member
    Join Date
    Feb 2010
    Posts
    19
    #7
    It needs to go in the specialize pass. The only thing I have noticed that it doesn't copy over are icons I set in the taskbar.

    From reading over the KB, it seems it looks by default for the unattend.xml in the sysprep folder.
    Reply With Quote Quote  

  9. Senior Member
    Join Date
    Jul 2009
    Posts
    2,056

    Certifications
    Beer+
    #8
    lol.

    Like i said, profile copy during sysprep has always been a sore spot with MS.

    I find its easier to use group policy (expecially Preferences) to manipulate the desktop how I need it for different users.
    Reply With Quote Quote  

  10. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #9
    Quote Originally Posted by Hyper-Me View Post
    lol.

    Like i said, profile copy during sysprep has always been a sore spot with MS.

    I find its easier to use group policy (expecially Preferences) to manipulate the desktop how I need it for different users.

    Is it possible to use gpo preferences to run a gpo just once on first logon for new users?
    Reply With Quote Quote  

  11. Junior Member
    Join Date
    Feb 2010
    Posts
    19
    #10
    Quote Originally Posted by phoeneous View Post
    Is it possible to use gpo preferences to run a gpo just once on first logon for new users?
    What are you trying to achieve? You can set this up in the unattend file if you wanted to.
    Reply With Quote Quote  

  12. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #11
    Quote Originally Posted by Gaber View Post
    What are you trying to achieve? You can set this up in the unattend file if you wanted to.
    Actually you can't, only some settings are carried over if you use unattend.


    How to customize the default local user profile when you prepare an image of Windows Vista, Windows Server 2008, Windows XP, or Windows Server 2003

    Not all customizations will propagate to new profiles. Some settings are reset by the new user logon process. To configure those settings, use Group Policy settings or scripting.
    I will have to use gpo to do the following but I only want it applied once per user at their first logon on any machine.

    1. Remove pinned taskbar items but allow user to pin.
    2. Apply company wallpaper but allow user to change it.

    The gpo's that I have found will not allow a user to pin taskbar items or change wallpaper.
    Reply With Quote Quote  

  13. Senior Member
    Join Date
    Jul 2009
    Posts
    2,056

    Certifications
    Beer+
    #12
    You can assign a wallpaper by preference and have it to where they can change it.

    I havnt seen the Windows 7 preferences yet, but i bet the pinning items are there as well. You set the preference to "apply once" and it does it the first time that user logs in or gets a new profile, but not again.
    Reply With Quote Quote  

  14. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #13
    Quote Originally Posted by Hyper-Me View Post
    I havnt seen the Windows 7 preferences yet, but i bet the pinning items are there as well. You set the preference to "apply once" and it does it the first time that user logs in or gets a new profile, but not again.
    I can't find it. Under 'Shortcuts', the Taskbar isnt an option for the path to delete an icon. Go figure...
    Last edited by phoeneous; 03-22-2010 at 06:59 PM.
    Reply With Quote Quote  

  15. BOBBY_TABLES RobertKaucher's Avatar
    Join Date
    Dec 2007
    Location
    Lebanon, Ohio - USA
    Posts
    4,274

    Certifications
    MCSD Web Apps/SharePoint Applications, MCITP: DBA 2005/2008, EA, EDA7, Linux+, Sec+, MCSE, MCDST, MCTS
    #14
    Quote Originally Posted by phoeneous View Post
    This is why I love MS...

    In this kb article, they say:




    Then, in this kb article, they say:



    And then you have this!!!



    Seriously? wtf is that all about?
    In my opinion the deployment documentation is full of errors and contradictions that manage to leak into books and then never go away.
    Reply With Quote Quote  

  16. BOBBY_TABLES RobertKaucher's Avatar
    Join Date
    Dec 2007
    Location
    Lebanon, Ohio - USA
    Posts
    4,274

    Certifications
    MCSD Web Apps/SharePoint Applications, MCITP: DBA 2005/2008, EA, EDA7, Linux+, Sec+, MCSE, MCDST, MCTS
    #15
    Reply With Quote Quote  

  17. Senior Member
    Join Date
    Jul 2009
    Posts
    2,056

    Certifications
    Beer+
    #16
    Do the following as a script that runs once and never again

    The Deployment Guys : Pin Items to the Start Menu or Windows 7 Taskbar via Script
    Reply With Quote Quote  

  18. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #17
    Quote Originally Posted by RobertKaucher View Post
    Yes but it doesn't help me. Unfortunately, Microsoft has said "Not all customizations will propagate to new profiles. Some settings are reset by the new user logon process. To configure those settings, use Group Policy settings or scripting."

    I'm pretty sure I'm not the only sysadmin that wants to remove those three taskbar items from the image. I find it hard to believe that a script is required to do this simple task.

    Anyway, I found the script below but it's giving me object errors on line 16. Looking into it now.

    Code:
    Option Explicit
    
    Dim objShell, objAllUsersProgramsFolder, strAllUsersProgramsPath, objFolder, objFolderItem, colVerbs, objVerb
    
    Const CSIDL_COMMON_PROGRAMS = &H17 
    Const CSIDL_PROGRAMS = &H2 
    Set objShell = CreateObject("Shell.Application") 
    Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS) 
    strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path 
    
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath) 
    Set objFolderItem = objFolder.ParseName("Windows Media Player.lnk")
    Set colVerbs = objFolderItem.Verbs 
    For Each objVerb in colVerbs 
        If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
    Next
    
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath) 
    Set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
    Set colVerbs = objFolderItem.Verbs 
    For Each objVerb in colVerbs 
        If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
    Next
    
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath) 
    Set objFolderItem = objFolder.ParseName("Windows Explorer.lnk")
    Set colVerbs = objFolderItem.Verbs 
    For Each objVerb in colVerbs 
        If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
    Next
    Last edited by phoeneous; 03-22-2010 at 08:22 PM.
    Reply With Quote Quote  

  19. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #18

    Thumbs up Found a solution!

    Code:
    'Credit goes to Eric G. for writing this script.
    'More info at http://frontslash.wordpress.com/2010/03/01/removing-internet-explorer-and-windows-media-player-from-taskbar/#comment-178
    
    Option Explicit
    
    Const CSIDL_COMMON_PROGRAMS = &H17
    Const CSIDL_PROGRAMS = &H2
    Const CSIDL_STARTMENU = &HB
    
    Dim objShell, objFSO
    Dim objCurrentUserStartFolder
    Dim strCurrentUserStartFolderPath
    Dim objAllUsersProgramsFolder
    Dim strAllUsersProgramsPath
    Dim objFolder
    Dim objFolderItem
    Dim colVerbs
    Dim objVerb
    
    Set objShell = CreateObject("Shell.Application")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objCurrentUserStartFolder = objShell.NameSpace (CSIDL_STARTMENU)
    strCurrentUserStartFolderPath = objCurrentUserStartFolder.Self.Path
    Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS)
    strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path
    
    'Internet Explorer
    If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Internet Explorer.lnk") Then
        Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs")
        Set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
        Set colVerbs = objFolderItem.Verbs
        For Each objVerb in colVerbs
            If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
        Next
    End If
    'Windows Explorer
    If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Accessories\Windows Explorer.lnk") Then
        Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs\Accessories")
        Set objFolderItem = objFolder.ParseName("Windows Explorer.lnk")
        Set colVerbs = objFolderItem.Verbs
        For Each objVerb in colVerbs
            If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
        Next
    End If
    'Windows Media Player
    If objFSO.FileExists(strAllUsersProgramsPath & "\Windows Media Player.lnk") Then
        Set objFolder = objShell.Namespace(strAllUsersProgramsPath)
        Set objFolderItem = objFolder.ParseName("Windows Media Player.lnk")
        Set colVerbs = objFolderItem.Verbs
        For Each objVerb in colVerbs
            If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
        Next
    End If
    Reply With Quote Quote  

  20. Senior Member
    Join Date
    Jan 2009
    Posts
    297

    Certifications
    A+, Network +, MCSE 2003, CCNA:S, VCP 4
    #19
    This is how I do it:
    -Disable UAC. It is more trouble than good.
    -Login with any account you want (Joe)and configure the settings how you want.
    -Reboot
    -Login as an admin
    -Change settings to show hidden files
    -Go to C:\Users
    -Right-click the folder Joe, then right-click again and paste.
    -You should now have a folder called Joe and one called Joe Copy.
    -Rename the folder Default to Default_Original
    -Rename the folder Joe Copy to Default.
    -Next time someone logs in they will get all the settings you set up for Joe.

    There are a few quirks, and this isn't "microsoft approved", but I've done over 300 laptops with this method and so far so good. You really do need to disable UAC if you do it this way, for reasons I won't go into but trust me you need to.
    Reply With Quote Quote  

  21. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #20
    Quote Originally Posted by rwwest7 View Post
    There are a few quirks, and this isn't "microsoft approved", but I've done over 300 laptops with this method and so far so good.
    Been there, tried that. You're going to have problems down the road, trust me.

    EDIT:

    Meant to quote this:

    -Rename the folder Default to Default_Original
    -Rename the folder Joe Copy to Default.
    Sorry.
    Last edited by phoeneous; 03-28-2010 at 07:02 PM.
    Reply With Quote Quote  

  22. Senior Member
    Join Date
    Jan 2009
    Posts
    297

    Certifications
    A+, Network +, MCSE 2003, CCNA:S, VCP 4
    #21
    Quote Originally Posted by phoeneous View Post
    Been there, tried that. You're going to have problems down the road, trust me.
    For example? It's been about 4 months since the initial roll out and all the problems we had at first have been corrected by disabling UAC.

    UAC limits what a local administrator can do on a computer, which is just dumb. If I didn't want them to have admin rights I wouldn't give it to them! I like being able to elevate privilidges if logged on as a standard user, but if I'm logged on as an admin I should be able to do whatever I want.
    Reply With Quote Quote  

  23. Senior Member
    Join Date
    Jul 2009
    Posts
    2,056

    Certifications
    Beer+
    #22
    Quote Originally Posted by rwwest7 View Post
    but if I'm logged on as an admin I should be able to do whatever I want.
    You can, if you just edit the UAC GPO settings.
    Reply With Quote Quote  

  24. Senior Member
    Join Date
    Jan 2009
    Posts
    297

    Certifications
    A+, Network +, MCSE 2003, CCNA:S, VCP 4
    #23
    Quote Originally Posted by Hyper-Me View Post
    You can, if you just edit the UAC GPO settings.
    That's what I did. Just sayin it's kinda silly to have to go that far.
    Reply With Quote Quote  

  25. Senior Member
    Join Date
    Jul 2009
    Posts
    2,056

    Certifications
    Beer+
    #24
    Quote Originally Posted by rwwest7 View Post
    That's what I did. Just sayin it's kinda silly to have to go that far.
    If users would learn to not do every single thing on their computer as a full blown administrator, there would be no need for UAC.

    At least the feature is robust enough to let you customize it how you want it to work.
    Reply With Quote Quote  

  26. Go ping yourself... phoeneous's Avatar
    Join Date
    Dec 2008
    Location
    Console.WriteLine("Yo");
    Posts
    2,316

    Certifications
    Pimp status
    #25
    See my edit, I quoted the wrong text.

    These will cause you problems, not UAC.

    -Rename the folder Default to Default_Original
    -Rename the folder Joe Copy to Default.
    Reply With Quote Quote  

+ Reply to Thread
Page 1 of 2 1 2 Last

Social Networking & Bookmarks