Clone PC and change product key
-
I’ve tried what you’ve told me, but the Windows key is not updated.
I don’t see any option on the FOG client to force it.
Since you haven0t used this feature, is there anybody else that can help me with this?
Thanks! -
@andre_x said in Clone PC and change product key:
Since you haven0t used this feature, is there anybody else that can help me with this?
@x23piracy Do you have any input on this issue?
-
@george1421 said in Clone PC and change product key:
@andre_x said in Clone PC and change product key:
Since you haven0t used this feature, is there anybody else that can help me with this?
@x23piracy Do you have any input on this issue?
Well…actually very few: I’ve installed the client on a Windows 10 virtual pc (Hyper-V) without inserting a product key. I’ve then created the image.
I’ve created a new host with a Windows product key (in the “Host Product Key” field) and I’ve deployed the image. All went fine, but the product key has not been inserted. -
@george1421 said in Clone PC and change product key:
@andre_x said in Clone PC and change product key:
Since you haven0t used this feature, is there anybody else that can help me with this?
@x23piracy Do you have any input on this issue?
Hi,
i need to know if @andre_x has computers for rent with product key in their bios?
If so he can read the keys from bios and activate em.Method one, active key reading in fog options (you need to dig a little) then when you register a host the key will be read and added to the host definition:
https://forums.fogproject.org/topic/10808/fog-client-fos-report-bios-product-key-to-database-host-activate-through-bios-key-deployment/30Method two, find a tool that can read the bios key through command line (i can give you the binary), pipe the output into a script (slmgr.vbs -ipk KEY, followed by the activation itself slmgr.vbs -ato):
https://forums.fogproject.org/topic/9694/read-windows-keys-from-registry-and-bios-oem-key-fog-client/2Regards X23
-
Hi @x23piracy, I don’t have the product key in the bios.
I’ve read the 2 links you’ve provided me, but they’re both relative to the bios keys. They are all pc provided without any license, we’ve bought them separately.
Is there a way to change the product key of a deployed image with the one inserted in the host definition under the “Host Product Key” field?
Thanks! -
@andre_x said in Clone PC and change product key:
Hi @x23piracy, I don’t have the product key in the bios.
I’ve read the 2 links you’ve provided me, but they’re both relative to the bios keys. They are all pc provided without any license, we’ve bought them separately.
Is there a way to change the product key of a deployed image with the one inserted in the host definition under the “Host Product Key” field?
Thanks!Hi,
you should be able to add your keys into to each host definition in fog, then when you have the fog client in your image it should activate with the supplied key.
Regards X23
-
Cross linking active post because the conditions sound very similar: https://forums.fogproject.org/topic/13084/activating-windows-10-pro-after-deployment
@andre_x if you review the fog client log on the target computer is there anything useful that mentions client activation?
-
@x23piracy said in Clone PC and change product key:
Hi,
you should be able to add your keys into to each host definition in fog, then when you have the fog client in your image it should activate with the supplied key.
Regards X23It should and it did!
Guys sorry sorry sorry sorry and again sorry. I’ve messed up with the virtual machines and I was looking at the wrong one.
The product key is added to the system!
Thanks for the support!Now…another question: what about the Ms Office license?
From this post of @george1421 I’ve seen that there are scripts to change it, but where can I store it and how can I retrieve it with the scripts?
Andrea -
@george1421 said in Clone PC and change product key:
Cross linking active post because the conditions sound very similar: https://forums.fogproject.org/topic/13084/activating-windows-10-pro-after-deployment
@andre_x if you review the fog client log on the target computer is there anything useful that mentions client activation?
Hi,
@Sebastian-Roth mentioned in another thread that the fog client should be 11.6 else something with activation isn’t working propperly (afaik something about the parsing of the key (with, without the dashes) 25-29 signs.
Btw. i hate that the webif shortens the key from 29 to 25, the key contains that dashes and i think it should always be displayed with them, nice idea to save space in the db but hey it’s not 1980
Regards X23
-
@andre_x said in Clone PC and change product key:
From this post of @george1421 I’ve seen that there are scripts to change it, but where can I store it and how can I retrieve it with the scripts?
Wow that guy who posted the instructions there is pretty smart
I’m not sure I understand your question. You can place that activation script in your setupcomplete.cmd batch file or in the unattend.xml file under the first login section. How do you retrieve that key? You don’t since its your license key. You should receive that key when you buy your MS Office license.
-
@george1421 said in Clone PC and change product key:
Wow that guy who posted the instructions there is pretty smart
Is he? Do you happen to know him???
I’m not sure I understand your question. You can place that activation script in your setupcomplete.cmd batch file or in the unattend.xml file under the first login section. How do you retrieve that key? You don’t since its your license key. You should receive that key when you buy your MS Office license.
I can’t find the login section…where is it? Are you talking about FOG or Windows?
-
@andre_x said in Clone PC and change product key:
I can’t find the login section…where is it? Are you talking about FOG or Windows?
Here is a sanitized version of my unattend.xml script: https://forums.fogproject.org/topic/11920/windows-10-1803-sysprep-problem/7 Search for the the
<FirstLogonCommands>
for examples if you wan to use the unattend.xml method. Or just place the commands in the setupcomplete.cmd file. Of course both methods require you to sysprep the computer to have these bits run during WinSetup/OOBE. -
@george1421 said in Clone PC and change product key:
Of course both methods require you to sysprep the computer to have these bits run during WinSetup/OOBE.
I’m not sysprepping the pc, I already have the master images with a lot of software installed.
Any other way to launch a command after the image deployment with a custom variable (Ms Office product key) from FOG? -
@andre_x Then use a fog snapin to deploy a cmd file to the target computer. The only issue here is that you must have a single key for all Office installs.
On a side note, even if you have custom software installed, you can sysprep the image to make the image generic for all hardwares. Its up to you how you want to manage this, just don’t let preinstalled applications be the reason for not sysprepping a system. The only risk of preinstalling applications are the ones that create a unique GUID upon install (like most AV software). If you install these first then every cloned machine will have the same application GUID which will probably confuse the management console for the software.
-
@george1421 said in Clone PC and change product key:
@andre_x Then use a fog snapin to deploy a cmd file to the target computer. The only issue here is that you must have a single key for all Office installs.
(like most AV software). If you install these first then every cloned machine will have the same application GUID which will >probably confuse the management console for the software.
for example ESET’s Agent is creating a unique key, even if you sysprep it’s still the same, the solution was to generate a new uuid and change it in the ESET’s Agent db file on the local hd.
Sysprepping is always the best idea anyway.
Regards X23
-
@x23piracy said in Clone PC and change product key:
for example ESET’s Agent is creating a unique key, even if you sysprep it’s still the same
FWIW: Its best to install these applications post image deployment with Snapins or other deployment tools.
-
@george1421 said in Clone PC and change product key:
@andre_x Then use a fog snapin to deploy a cmd file to the target computer. The only issue here is that you must have a single key for all Office installs.
Isn’t there a way to pass a field (for example “Other Tag #1”) to a script passed to the host?
On a side note, even if you have custom software installed, you can sysprep the image to make the image generic for all hardwares. Its up to you how you want to manage this, just don’t let preinstalled applications be the reason for not sysprepping a system. The only risk of preinstalling applications are the ones that create a unique GUID upon install (like most AV software). If you install these first then every cloned machine will have the same application GUID which will probably confuse the management console for the software.
All the software installed are specific for our field (AV rental) and without licensing, so for this I don’t have problems.
Well, I have to study the sysprep that I’ve always ignored. How about the drivers? How can he find them for a new hardware? -
@andre_x said in Clone PC and change product key:
Isn’t there a way to pass a field (for example “Other Tag #1”) to a script passed to the host?
There is probably a way. I know during image deployment with a post install script you can have access to this variable.
How about the drivers? How can he find them for a new hardware?
I have examples of how to create a post install script to copy over device specific drivers. I have to admit the examples are only for Dell systems, but you could adapt to other hardwares as long as you have the inf (not exe) based drivers packages. https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed
I use this method to seed (set) some unattend.xml settings to avoid having to use the FOG client to rename and activate the target computers. The word avoid is a bit strong, I have some unique OU naming conventions that are not supported by FOG, so I need to set then via scripting.