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

    Script in snapin

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    5
    3.7k
    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.
    • N
      nocsorg
      last edited by

      Hello,

      I am kindly new to fog, and wish I could adapt fog way to run in our school environnement.

      Scenario:
      Each school room have a standard name for each computer name in it, for example room n°15 have each computer named R15-PC01, R15-PC02, R15-PC03 etc. with R for Room.
      After cloning, each computer runs a .cmd script that changes the IP adress according to its name, for example computer R15-PC03 will have ip adress 192.168.15.3
      After ip is changed, this same script runs an executable to install network tool that do multiple things + connect the computer to Active Directory.

      Problem is that when I try to use SnapIn to start the cmd script, it does nothing, It doesn’t even start it. I suppose that SnapIns run only when computer has been joined to the domain, so is there a way for me to run this script after the computer name have been changed, without asking fog to join a domain ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • T
        TheGremlin
        last edited by

        SFXMaker will allow you to create a exe with a payload of a script.

        1 Reply Last reply Reply Quote 0
        • N
          nocsorg
          last edited by

          Ok after a day of tests, I can now tell that snapins are not the solution for my problem, as snapins seems to be working once the first user have logged on the computer (as I can see in the log file). So I am looking for a way to start a .cmd script AFTER the computername have been changed by FOG. Computer can be in the domain or not, it does not matter.

          SFXMaker seems not to be the way of solving this, as my .cmd script is doing many things (creating a .txt file, running netsh.exe, and running a program that may join the computer to the domain if I want it), but thanks anyway for trying TheGremlin.

          Thanks

          1 Reply Last reply Reply Quote 0
          • M
            morgan
            last edited by

            I used to use .cmd snapins to install all the software I needed, post imaging. As long as the snap-ins are actually deployed (i.e. they are listed in active snap-ins) they will get run 6 minutes (by default) after the FOG service starts (assuming there are no host rename / domain join jobs to be done with the service - these will cause reboots so you will have to wait longer). In your case I think the only thing you need to do is make sure you script is executable from somewhere that is accessible to a non-domain PC and doesn’t reference any external files that are inaccessible to a non-domain PC. I have also used SFX self extractors and found them really useful. You may find the process a little more streamlined if you let FOG handle the naming and domain join though.

            1 Reply Last reply Reply Quote 0
            • B
              Blackout Developer
              last edited by

              The FOG service can set IP Address and join your machines to your domain.

              I would be using this over bat files.

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

              157

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project