• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Win7x64 : Golden Image : different profiles ...

Scheduled Pinned Locked Moved Solved
Windows Problems
3
4
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jonathan Cool
    last edited by Sep 11, 2017, 1:33 PM

    Server
    • FOG Version: 1.4.2 SVN 6072
    • OS: Debian 8
    Client
    • Service Version: SmartInstaller v0.11.12
    • OS: Win7x64 PRO
    Description

    Hi everyone,
    This topic is not really about an issue …
    I’m searching a way to use my Golden Image to different profiles.

    At this point, image work with a desktop configuration by using :

    • sysprep
    • setupcomplete.cmd
    • jonction to domain by FOG feature
    • only one local user : the built-in administrator

    but … for some latop in my office, we need a diffrent profile :

    • no domain
    • local admin
    • local standard user in autologin

    By the postdownload script, i can inject a specific sysprep & setupcomplete.cmd by using kernel ARGS and a simple way :

    if [ $model != "VARtest" ] && [ -f "$unattendWin7" ]; then
    	echo "Desktop computer ..."
    	        . ${postdownpath}fog.drivers
    	        . ${postdownpath}fog.ad
    	        . ${postdownpath}fog.registry
    	        . ${postdownpath}fog.antivirus
    	        . ${postdownpath}fog.bonus
    fi
    
    if [ $model == "VARtest" ] && [ -f "$unattendWin7" ]; then
    	echo -n "Laptop ... Laptop is " $model
    	        . ${postdownpath}fog.drivers
    	        . ${postdownpath}fog.sysprepLaptop
    	        . ${postdownpath}fog.antivirus
    fi
    

    In fog.sysprepLaptop, i copy the specific laptop unattend file into the /ntfs/Windows/Panther.

    This unattend activate the built-in admin account and create a user local account by this way :

    <LocalAccounts>
          <LocalAccount wcm:action="add">
             <Password>
                <Value>qwerty</Value>
                <PlainText>true</PlainText>
             </Password>
             <Description>Compte Utilisateur</Description>
             <DisplayName>Utilisateur</DisplayName>
             <Group>Users</Group>
             <Name>Utilisateur</Name>
          </LocalAccount>
       </LocalAccounts>
    

    Now, i want to personnalize this standard account … for examples … :

    • on desktop : some specifics icons
    • in the start menu : some specifis icons
    • in the taskbar : some specific icons
    • ect …
    • need to delete some icons into the start menu
    • need to set this account in autologin …

    BUT i can’t add / delete files during setupcomplete … why ? because, the user “Utilisateur” has no folder (C:\Users\Utilisateur) before her first connexion into the computer …

    What is the good way to add & personnalize an account after a deploy ? … without use Sysprep / CopyProfile ?

    I already use CopyProfile to set the build-in account for the desktop configuration …

    Maybe 'i’m totally in a wrong way …

    My stuff :
    Server :
    FOG Version : Running Version 1.5.9
    OS : Debian GNU/Linux 10
    FOG Client Version : 0.12
    Specifications :
    > All images are on a Synology NAS storage : mounted with NAS_ip:/images
    > French user :)
    > “If everything would work the first time, what would you have learned?”
    Challenges make knowledge growth … by George1421 ;)

    1 Reply Last reply Reply Quote 0
    • S
      Seb B
      last edited by Sep 11, 2017, 2:04 PM

      Salut!

      I’ll continue in English so that everyone understands.

      It may be dumb but can’t you just edit the default profile on your laptops (as a part of setupcomplete.cmd) as there probably is only one user on the laptop?
      And then configuring the desktops through GPO?

      I’m just tossing ideas here, just in case you didn’t think of that…

      1 Reply Last reply Reply Quote 0
      • G
        george1421 Moderator
        last edited by Sep 11, 2017, 2:20 PM

        If you use your postinstall scripts to do different things and not the fog client you have some options. You can also use the fog client to do some things but you may need to use persistent groups to set some default actions. (yes I know I’m talking in circles. The answer depends on how you are currently going about it.) You will have the most flexibility if you use the post install scripts to connect to AD.

        With your post install scripts you do have access to FOG run time settings. So you can craft your post install script to act differently depending on image name, or values of custom fields like primary user, other 1 and other2 fields. Based on the values in those fields you can alter the client’s behavior during oobe by updating the unattend.xml file, or adding or changing the setupcomplete.cmd file dynamically. The thing to remember is that the postinstall script runs in linux so you can’t run applications or interact directly with the windows environment. You can only install “things” that windows will find during installation.

        You could append to the section of the unattend.xml script to create users during oobe. That way they will be created before your setupcomplete.cmd file is run.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • J
          Jonathan Cool
          last edited by Sep 12, 2017, 7:06 AM

          Hi,
          Thank for answers …

          @george1421 :
          I’m not sure if i really understood your things …

          You said :
          you may need to use persistent groups to set some default actions
          Can you write an example ?

          You will have the most flexibility if you use the post install scripts to connect to AD
          I use post install scripts to connect my AD with the desktop computer. But, for theses laptops, i don’t need to connect to AD …

          I think, i’m not really need to alter the unattend.xml because i use a specific unattend file for theses laptops.

          You can only install “things” that windows will find during installation : yes, i understood this part 🙂

          I use my specific unattend file to create my user Utilisateur. But i can’t personnalize this user with unattend …

          @Seb-B : i will try your way 🙂

          I will be back !

          My stuff :
          Server :
          FOG Version : Running Version 1.5.9
          OS : Debian GNU/Linux 10
          FOG Client Version : 0.12
          Specifications :
          > All images are on a Synology NAS storage : mounted with NAS_ip:/images
          > French user :)
          > “If everything would work the first time, what would you have learned?”
          Challenges make knowledge growth … by George1421 ;)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            3/4
            Last post

          173

          Online

          12.2k

          Users

          17.3k

          Topics

          155.5k

          Posts
          Copyright © 2012-2024 FOG Project