Fog driver injection in 2026.
-
My org used FOG many years ago and is now tired of Microsoft Autopilot, so I am setting up a new FOG site for our org.
I have added the fog.drivers script from the tutorial site: https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection
It looks like the script attempts to run, but indicates some errors preventing the script from running. (see screenshot). At first I was running a modified version of the script, attempting to simplify the machine identification, but I have since tried running the script as it came from the FOG tutorial and have the same result.

-
@Paul-Freeman
\ris usually an indicator.Like your script may have been opened/edited in Windows text editor/notepad, then saved and uploaded to
/images/postdownloadscripts/fog.driversWhy does this matter?
Windows likes to use “CRLF” line endings from the days of “Control Line Feeds” of automated typewriters.
\r\nis the typical sequence that Windows uses for a new line, which sends the line back to the beginning then moves to the next line.*nix uses
\nand tries to use\ras an actual key which is invalid in most scripts.I might recommend replacing all
\ritems within the script to\nor''(empty space)?