<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fog Hostname problem after w10 SYSPREP]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">Our environment :<br />
-fog server 1.5.9 on deb12<br />
-W10/W11 clients without fog client service</p>
<p dir="auto">With this AmaZing Fog, When i deploy image W10 without sysprep, the hostname is the one that i have written in Fog GUI, and all is fine.</p>
<p dir="auto">When i deploy image W10 with sysprep, the hostname is random and different of my Fogdatabase.</p>
<p dir="auto">In the unattend file i got &lt;ComputerName&gt;&lt;/ComputerName&gt; and with or without value it changes nothing, it’s not the fog hostname from GUI.</p>
<p dir="auto">In fog server, i saw variable called $hostname, is it possible to implemant this variable in the unattend file ?<br />
or another easy way is possible ?</p>
<p dir="auto">Need Help please. Thx</p>
]]></description><link>http://forums.fogproject.org/topic/17779/fog-hostname-problem-after-w10-sysprep</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 14:16:28 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/17779.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Jan 2025 09:26:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Fri, 10 Jan 2025 17:46:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a><br />
The last problem was tha windows main partition ! Now it works perfectly ! Thx for your precious help.</p>
<p dir="auto">Solved  <img src="http://forums.fogproject.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=fsgu5qsff2i" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://forums.fogproject.org/post/156431</link><guid isPermaLink="true">http://forums.fogproject.org/post/156431</guid><dc:creator><![CDATA[jeje3346]]></dc:creator><pubDate>Fri, 10 Jan 2025 17:46:34 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Fri, 10 Jan 2025 15:34:25 GMT]]></title><description><![CDATA[<p dir="auto">You would have a postdownload script of something like:</p>
<pre><code>osdiskpart=“/dev/sda2”;

mkdir /ntfs 2&gt;/dev/null

mount.ntfs-3g “${osdiskpart}” /ntfs 2&gt;/tmp/mntfail

mntRet=“$?”;
if [ ! “$mntRet” = “0” ]; then
echo “Failed to mount C:”;
cat /tmp/mntfail;
sleep 12;
exit 1;
fi

unattendfile=“/ntfs/Windows/Panther/unattend.xml”;
sed -i -e “s#&lt;ComputerName&gt;([^&lt;][^&lt;]*)&lt;/ComputerName&gt;#&lt;ComputerName&gt;$hostname&lt;/ComputerName&gt;#gi” $unattendfile
</code></pre>
<p dir="auto">Of course this assumes that /dev/sda2 is the windows main partition.</p>
]]></description><link>http://forums.fogproject.org/post/156429</link><guid isPermaLink="true">http://forums.fogproject.org/post/156429</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Fri, 10 Jan 2025 15:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Fri, 10 Jan 2025 15:05:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a></p>
<p dir="auto">script is working but something is wrong</p>
<p dir="auto"><img src="/assets/uploads/files/1736520920149-postd2.jpg" alt="postd2.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">it seems that fog cannot find or access to the unattend file (autounattend.xml)</p>
<p dir="auto">i have read in a <a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/30416">@george1421</a> post a special bloc like :<br />
####################</p>
<h1>windows 10/11</h1>
<p dir="auto">osdiskpart=“/dev/sda2”;</p>
<p dir="auto">mkdir /ntfs 2&gt;/dev/null</p>
<p dir="auto">mount.ntfs-3g “${osdiskpart}” /ntfs 2&gt;/tmp/mntfail</p>
<p dir="auto">mntRet=“$?”;<br />
if [ ! “$mntRet” = “0” ]; then<br />
echo “Failed to mount C:”;<br />
cat /tmp/mntfail;<br />
sleep 12;<br />
exit 1;<br />
fi<br />
####################</p>
<p dir="auto">Should i put this in my fog.postdownload juste before my sed command or am wrong and another way exists ?</p>
]]></description><link>http://forums.fogproject.org/post/156428</link><guid isPermaLink="true">http://forums.fogproject.org/post/156428</guid><dc:creator><![CDATA[jeje3346]]></dc:creator><pubDate>Fri, 10 Jan 2025 15:05:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Fri, 10 Jan 2025 13:18:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/48429">@jeje3346</a> it looks correct, yes.</p>
<p dir="auto">You could test it by creating a simple example of the file and running the sed statement itself. Ultimately, though, it <em>should</em> work properly.</p>
]]></description><link>http://forums.fogproject.org/post/156427</link><guid isPermaLink="true">http://forums.fogproject.org/post/156427</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Fri, 10 Jan 2025 13:18:56 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Fri, 10 Jan 2025 10:25:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/7217">@Tom-Elliott</a><br />
i think the postdownload possibility is just amazing cause you can personalize like you want.</p>
<p dir="auto">in /images/postdownloadscripts/ :</p>
<p dir="auto">fog.postdownload (default file)<br />
fog.custominstall</p>
<ol>
<li>in fog.postdownload (i call the created file)</li>
</ol>
<p dir="auto">. ${postdownpath}/fog.custominstall</p>
<ol start="2">
<li>in fog.custominstall (unattend declaration &amp; sed command)</li>
</ol>
<p dir="auto">unattendfile=“/ntfs/Windows/Panther/unattend.xml”;</p>
<p dir="auto">sed -i -e “s#&lt;ComputerName&gt;([^&lt;][^&lt;]*)&lt;/ComputerName&gt;#&lt;ComputerName&gt;$hostname&lt;/ComputerName&gt;#gi” $unatendfile</p>
<p dir="auto">Should be right ?</p>
]]></description><link>http://forums.fogproject.org/post/156426</link><guid isPermaLink="true">http://forums.fogproject.org/post/156426</guid><dc:creator><![CDATA[jeje3346]]></dc:creator><pubDate>Fri, 10 Jan 2025 10:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Thu, 09 Jan 2025 21:23:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/48429">@jeje3346</a> Technically speaking, anything is possible.</p>
<p dir="auto">These postdownload scripts are customizable to your hearts content, so yes it’s possible, technically, but as far as getting support for your own scripts, we’ll try, but it’s still all best case.</p>
<p dir="auto">The FOG Client will do so in a well standardized method but if you don’t want to use that, that’s perfectly fine as well.</p>
<p dir="auto">We will still attempt to assist as required.</p>
<p dir="auto">Thank you,</p>
]]></description><link>http://forums.fogproject.org/post/156418</link><guid isPermaLink="true">http://forums.fogproject.org/post/156418</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Thu, 09 Jan 2025 21:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Thu, 09 Jan 2025 20:35:18 GMT]]></title><description><![CDATA[<p dir="auto">I found this post<br />
<a href="https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/15" target="_blank" rel="noopener noreferrer nofollow ugc">https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/15</a></p>
<p dir="auto">moderator <a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/30416">@george1421</a>  put an important information about possibility to update unattend file. So it would be possible to use Fog variable into the file.<br />
If it works like he says so it means that i don t need Fog client install on my golden image and the Setup complete cmd.</p>
<p dir="auto">If i understand, first in put in a post download script (/images/postdownloadscripts/myfogscript.sh)</p>
<p dir="auto">This :</p>
<h1>Unattend.xml path (note the case specifics in the file name and path)</h1>
<p dir="auto">unattendfile=“/ntfs/Windows/Panther/unattend.xml”;</p>
<p dir="auto">And this :</p>
<p dir="auto">sed -i -e “s#&lt;ComputerName&gt;([^&lt;][^&lt;]*)&lt;/ComputerName&gt;#&lt;ComputerName&gt;$hostname&lt;/ComputerName&gt;#gi” $unatendfile</p>
<p dir="auto">So it means that it could may be possible to change hostname without fog client on machine right?</p>
]]></description><link>http://forums.fogproject.org/post/156417</link><guid isPermaLink="true">http://forums.fogproject.org/post/156417</guid><dc:creator><![CDATA[jeje3346]]></dc:creator><pubDate>Thu, 09 Jan 2025 20:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Thu, 09 Jan 2025 19:42:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/42757">@rodluz</a><br />
Hello rodluz,<br />
Well i follow what you suggest and it works with Fog client into the machine the Setup complete and auto reboot.</p>
<p dir="auto">I would have prefered a solution without the Fog client on machine but it seems impossible with sysprep stape.</p>
<p dir="auto">Thx a lot for your help!!</p>
]]></description><link>http://forums.fogproject.org/post/156415</link><guid isPermaLink="true">http://forums.fogproject.org/post/156415</guid><dc:creator><![CDATA[jeje3346]]></dc:creator><pubDate>Thu, 09 Jan 2025 19:42:11 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Wed, 08 Jan 2025 21:49:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/48429">@jeje3346</a> Oh yes the other thing I forgot in my previous reply is that you need to have the FOG client installed on the computer so that the name change can happen.</p>
<p dir="auto">If you are wanting to install the FOG client on your golden image, make sure that you disable the FOGService in the windows services. You can use this link for reference of how to do this correctly with sysprep. <a href="https://wiki.fogproject.org/wiki/index.php/FOG_Client#FOG_Client_with_Sysprep" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.fogproject.org/wiki/index.php/FOG_Client#FOG_Client_with_Sysprep</a></p>
]]></description><link>http://forums.fogproject.org/post/156397</link><guid isPermaLink="true">http://forums.fogproject.org/post/156397</guid><dc:creator><![CDATA[rodluz]]></dc:creator><pubDate>Wed, 08 Jan 2025 21:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Wed, 08 Jan 2025 20:23:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/42757">@rodluz</a><br />
Thx you for tour answer. Well, at first and to this stape, we don t want any options for joining domain. That s why our unattend file is voluntary light.<br />
I will try a fog client installation on my golden image before sysprep then New capture and deploy to see if it changes something or not with the hostname.<br />
Moreover I will try to migrate on 1.5.10 like you suggest.<br />
I will tell you the results.</p>
]]></description><link>http://forums.fogproject.org/post/156396</link><guid isPermaLink="true">http://forums.fogproject.org/post/156396</guid><dc:creator><![CDATA[jeje3346]]></dc:creator><pubDate>Wed, 08 Jan 2025 20:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fog Hostname problem after w10 SYSPREP on Wed, 08 Jan 2025 18:58:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/48429">@jeje3346</a> I have seen this issue when sysprep domains the computer through the unattend file. Once the computer is domained, FOG is not able to change the computer name. If this is the case, I would recommend you domain the computer through the active directory options in FOG or through a snapin instead of the unattend file.</p>
<p dir="auto">I would also recommend you upgrade your FOG install to the latest stable release 1.5.10.1629 since there have been a lot of improvements done since version 1.5.9.</p>
]]></description><link>http://forums.fogproject.org/post/156395</link><guid isPermaLink="true">http://forums.fogproject.org/post/156395</guid><dc:creator><![CDATA[rodluz]]></dc:creator><pubDate>Wed, 08 Jan 2025 18:58:02 GMT</pubDate></item></channel></rss>