• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. sudburr
    3. Best
    • Profile
    • Following 0
    • Followers 1
    • Topics 129
    • Posts 747
    • Best 100
    • Controversial 0
    • Groups 2

    Best posts made by sudburr

    • RE: Change the MySQL Password

      Changing the MySQL root password is contained in the command:

      mysql_secure_installation
      

      I’m still trying to figure out how to escape the replacement strings, since it contains both single quotes ( ’ ) and double quotes ( " ).

      DATABASE_PASSWORD', "<oldnewpassword>"
      
      sed -i.bak 's|DATABASE_PASSWORD', "<oldpassword>"|DATABASE_PASSWORD', "<newpassword>")|g' /var/www/html/fog/lib/fog/config.class.php
      
      posted in FOG Problems
      sudburrS
      sudburr
    • RE: Need your help with Windows 10 sysprep (weird issue of course)

      This is the result of a combination of things. With each successive iteration, 1507, 1511, 1607, 1703, 1709, 1803 things have changed subtly. A fun sleuthing experience each time.

      Answer this. Are you doing a copyprofile=true? Google from there.

      I recommend building your Win10 image in a VM and include the following.

      1. Disconnect the NIC before installing (to prevent Windows Store updates which WILL otherwise cause problems)

      2. When you reach the Sysprep Tool at the desktop, always only CANCEL. Selecting Enter Audit Mode will generate an extra (invisible) File Explorer.exe shortcut in “C:\Users\Administrator\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\”

      3. DISABLE Store AutoUpdates policy while building
        Computer \ Administrative Templates \ Windows Components \ Store

      • Turn off Automatic Download and Install of updates = ENABLED
      1. DISABLE Microsoft Store Install Service (InstallService)
      • CMD: net stop InstallService
      • CMD: sc config InstallService start= disabled
      1. Reboot

      2. Connect your NIC

      3. While building your image, to prevent Windows 10 (ie: Edge) from resetting file associations apply this v1803.reg

      Windows Registry Editor Version 5.00
      
      ; Description Prevents Windows 10 from resetting the file associations
      ; ... by adding NoOpenWith & NoStaticDefaultVerb values for all the modern apps.
      ; Created on Feb 13 2016 by Ramesh Srinivasan
      ; Updated on Sep 28 2016
      ; The Winhelponline Blog
      ; http://www.winhelponline.com/blog/windows-10-resetting-file-associations/
      ; Tested in Windows 10 v1511 & 1607
      ; Updated 20180522 for Windows 10v1803 by Robert Sudbury
      
      ;-------------------
      ; Microsoft Edge
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.MicrosoftEdge_42.17134.1.0_neutral__8wekyb3d8bbwe\MicrosoftEdge\Capabilities\FileAssociations]
      ;-------------------
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9]
      ;File Types .htm, .html
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723]
      ;File Types .pdf
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXde74bfzw9j31bzhcvsrxsyjnhhbq66cs]
      ;File Types .svg
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXcc58vyzkbjbs4ky0mxrmxf8278rk9b3t]
      ;File Types .xml
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXvepbp3z66accmsd0x877zbbxjctkpr6t]
      ;File Types .epub
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      
      ; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
      
      
      ;-------------------
      ; Microsoft Windows Photos
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Windows.Photos_2018.18011.15918.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations]
      ;-------------------
      
      ;File Types .bmp, .dib, .gif, .ico, .jfif, .jpe, .jpeg, .jpg, .jxr, .png, .thumb, .tif, .tiff, .wdp
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      ;File Types .arw, .cr2, .crw, .erf, .kdc, .mrw, .nef, .nrw, .orf, .pef, .raf, .raw, .rw2, .rwl, .sr2, .srw,
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppX9rkaq77s0jzh1tyccadx9ghba15r6t3h]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      ;File Types .dng
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXvvwq6wxamf7qhxd0vn6wm1wwehyxrdd6]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      ;File Types .3g2, .3gp, .3gp2, .3gpp, .asf, .avi, .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mp4v, .mts, .wm, .wmv
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXk0g4vb8gvt7b93tg50ybcy892pge6jmt]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      
      ;-------------------
      ; Microsoft3DViewer
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Microsoft3DViewer_2.1803.8022.0_x64__8wekyb3d8bbwe\Microsoft.Microsoft3DViewer\Capabilities\FileAssociations]
      ;-------------------
      ;File Types .3MF, .OBJ, .STL, .PLY, .GLTF, .GLB
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      
      ;-------------------
      ; Groove Music
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.ZuneMusic_10.17112.19011.0_x64__8wekyb3d8bbwe\Microsoft.ZuneMusic\Capabilities\FileAssociations]
      ;-------------------
      ;File Types .aac, .ac3, .adt, .adts, .amr, .ec3, .flac, .m4a, .m4r, .mka, .mp3, .mpa, .wav, .wma, .m3u, .wpl, .zpl
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      
      ;-------------------
      ; Films & TV
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.ZuneVideo_10.17112.19011.0_x64__8wekyb3d8bbwe\Microsoft.ZuneVideo\Capabilities\FileAssociations]
      ;-------------------
      ;File Types .3g2, .3gp, .3gp2, .3gpp, .asf, .avi, .divx, .m1v, .m2ts, .m2t, .m2v, .m4v, .mkv, .mod, .mov, .mp2v, .mp4, .mp4v, .mpe, .mpeg, .mpg, .mpv2, .mts, .tod, .ts, .tts, .wm, .wmv, .xvid
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppX6eg8h5sxqq90pv53845wmnbewywdqq5h]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      
      ;-------------------
      ; Print3D
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Print3D_2.0.3621.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations]
      ;-------------------
      ;File Types .stl, .3mf, .obj, .wrl, .ply
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXr0rz9yckydawgnrx5df1t9s57ne60yhn]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      
      
      ;-------------------
      ; Windows Sound Recorder
      ; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.WindowsSoundRecorder_10.1712.10611.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations]
      ;-------------------
      ;File Types .m4a
      [HKEY_CURRENT_USER\SOFTWARE\Classes\AppX5sy1gww9q4g2gt941cdxxd7s07xe5vph]
      "NoOpenWith"=""
      "NoStaticDefaultVerb"=""
      

      To Master your image for capturing is where a lot of voodoo happens depending on your environment and what you want to happen. I incorporate unattend.xml, Scripts (ErrorHandler.cmd + SetupComplete.cmd) and custom scripts for auto-logon and more.

      1. To cleanup problems caused by COPYPROFILE=TRUE, I include the following in my SetupComplete.cmd
      REM "Clean up problems caused by using COPYPROFILE=TRUE"
      rd /s /q "C:\Users\Administrator\AppData\Local\Microsoft\Windows\WebCache"
      rd /s /q "C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache"
      del /f /q /a:sh "C:\Users\Administrator\AppData\Local\Microsoft\Windows\WebCacheLock.dat"
      
      rd /s /q "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCache"
      rd /s /q "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache"
      del /f /q /a:sh "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCacheLock.dat"
      
      1. After setting file associations (eg: Chrome as default browser) I export these settings by:
      dism.exe /Online /Export-DefaultAppAssociations:C:\temp\defaults.xml
      
      1. Add the following Prevent_Association_Reset.vbs to “%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\” . Yes it MUST be re-applied by the user. Sysprep wipes and rebuilds critical sections of the registry breaking what you originally setup to be prevented while building the image.
      ' UserRunOnce.vbs
      ' - configuration to be applied at USER logon
      '
      ' 20180517 - initial release
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
      ' Define Global Parameters
      
      Option Explicit
      
      
      
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
      ' Define Global Constants
      
      Const gcERR1 = "-1"														
      
      
      
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
      ' Define Global Objects
      
      Dim objShell : Set objShell = Wscript.CreateObject( "Wscript.Shell" )
      Dim objFSO : Set objFSO = CreateObject( "Scripting.FileSystemObject" )
      
      
      
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
      ' Make it so ...
      
      sWindows_10v1803_File_Association_Reset_Prevent
      
      Wscript.Quit
      
      
      
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=
      ' Define Subroutines
      
      Sub sWindows_10v1803_File_Association_Reset_Prevent()
      	'Prevent Windows from resetting file associations
      	'-------------------
      	' Microsoft Windows Photos
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Windows.Photos_2018.18011.15918.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .bmp, .dib, .gif, .ico, .jfif, .jpe, .jpeg, .jpg, .jxr, .png, .thumb, .tif, .tiff, .wdp
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .arw, .cr2, .crw, .erf, .kdc, .mrw, .nef, .nrw, .orf, .pef, .raf, .raw, .rw2, .rwl, .sr2, .srw,
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX9rkaq77s0jzh1tyccadx9ghba15r6t3h\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX9rkaq77s0jzh1tyccadx9ghba15r6t3h\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .dng
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXvvwq6wxamf7qhxd0vn6wm1wwehyxrdd6\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXvvwq6wxamf7qhxd0vn6wm1wwehyxrdd6\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .3g2, .3gp, .3gp2, .3gpp, .asf, .avi, .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mp4v, .mts, .wm, .wmv
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXk0g4vb8gvt7b93tg50ybcy892pge6jmt\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXk0g4vb8gvt7b93tg50ybcy892pge6jmt\NoStaticDefaultVerb","","REG_SZ"
      
      	'-------------------
      	' Microsoft3DViewer
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Microsoft3DViewer_2.1803.8022.0_x64__8wekyb3d8bbwe\Microsoft.Microsoft3DViewer\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .3MF, .OBJ, .STL, .PLY, .GLTF, .GLB
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k\NoStaticDefaultVerb","","REG_SZ"
      
      	'-------------------
      	' Microsoft Edge
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.MicrosoftEdge_42.17134.1.0_neutral__8wekyb3d8bbwe\MicrosoftEdge\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .htm, .html
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .pdf
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .svg
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXde74bfzw9j31bzhcvsrxsyjnhhbq66cs\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXde74bfzw9j31bzhcvsrxsyjnhhbq66cs\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .xml
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXcc58vyzkbjbs4ky0mxrmxf8278rk9b3t\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXcc58vyzkbjbs4ky0mxrmxf8278rk9b3t\NoStaticDefaultVerb","","REG_SZ"
      
      	'File Types .epub
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXvepbp3z66accmsd0x877zbbxjctkpr6t\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXvepbp3z66accmsd0x877zbbxjctkpr6t\NoStaticDefaultVerb","","REG_SZ"
      
      	'-------------------
      	' Groove Music
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.ZuneMusic_10.17112.19011.0_x64__8wekyb3d8bbwe\Microsoft.ZuneMusic\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .aac, .ac3, .adt, .adts, .amr, .ec3, .flac, .m4a, .m4r, .mka, .mp3, .mpa, .wav, .wma, .m3u, .wpl, .zpl
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs\NoStaticDefaultVerb","","REG_SZ"
      
      	'-------------------
      	' Films & TV
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.ZuneVideo_10.17112.19011.0_x64__8wekyb3d8bbwe\Microsoft.ZuneVideo\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .3g2, .3gp, .3gp2, .3gpp, .asf, .avi, .divx, .m1v, .m2ts, .m2t, .m2v, .m4v, .mkv, .mod, .mov, .mp2v, .mp4, .mp4v, .mpe, .mpeg, .mpg, .mpv2, .mts, .tod, .ts, .tts, .wm, .wmv, .xvid
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX6eg8h5sxqq90pv53845wmnbewywdqq5h\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX6eg8h5sxqq90pv53845wmnbewywdqq5h\NoStaticDefaultVerb","","REG_SZ"
      
      	'-------------------
      	' Print3D
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Print3D_2.0.3621.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .stl, .3mf, .obj, .wrl, .ply
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXr0rz9yckydawgnrx5df1t9s57ne60yhn\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppXr0rz9yckydawgnrx5df1t9s57ne60yhn\NoStaticDefaultVerb","","REG_SZ"
      
      	'-------------------
      	' Windows Sound Recorder
      	' [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.WindowsSoundRecorder_10.1712.10611.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations]
      	'-------------------
      	'File Types .m4a
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX5sy1gww9q4g2gt941cdxxd7s07xe5vph\NoOpenWith","","REG_SZ"
      	objShell.RegWrite "HKCU\SOFTWARE\Classes\AppX5sy1gww9q4g2gt941cdxxd7s07xe5vph\NoStaticDefaultVerb","","REG_SZ"
      End Sub
      
      
      
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
      ' Define Functions
      
      
      
      
      '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
      
      
      
      
      'EOF
      
      1. Disconnect the NIC, then rollback the preventative measures put in place at the start of the image build.
      [Computer \ Admin Templates \ Windows Components \ Store]
      - Turn off Automatic Download and Install of updates = NOT CONFIGURED
      
      CMD:  sc config InstallService start= demand
      
      1. Copy my scripts and .xml to their end locations then run sysprep as:
      sysprep /generalize /oobe /quit /unattend:unattend.xml
      

      … yes QUIT, not shutdown. This allows me to continue working.

      1. I then perform a file association defaults import. This could be included in coming out of sysprep, but I do so many other things at this stage that it’s easier for me to do it here.
      dism.exe /Online /Import-DefaultAppAssociations:C:\temp\defaults.xml
      
      1. Finally I clear all the event logs
      for /f %%a in ('WEVTUTIL EL') do WEVTUTIL CL "%%a"
      
      1. and defrag (even on a vm)
      defrag c: /x /h /u /v
      
      1. Now I shutdown
      shutdown -s -t 0
      

      Among the crazier things, Windows 10 likes to revert certain elements of the results of Copy Profile AFTER coming out of sysprep, which makes timing of some of the steps above rather critical. They cannot happen before they are intended or your effort is wasted.

      Now there is a LOT I left out that I use to optimize our images even more but these will get you around the current crop of v1803 gotchas.

      posted in Windows Problems
      sudburrS
      sudburr
    • RE: What is the Automatic Order of Operations of the New Fog Client?

      I would strongly vote against renaming and joining the domain in a single reboot. This can lead to Active Directory issues. Namely you end up with two objects on the AD, one with the original name and another with the new name, or it may retain the old name anyways.

      My vote is to mandatory restart after renaming, then mandatory restart after joining the domain. This is the MS method as well.

      Attempting to do both in a single restart is doubly troublesome for us. We have automated scripts that sort the computers into new OUs and Security Groups depending on the naming structure of the computer. If it isn’t named properly before joining the domain, before the DC scripts automatically fire, then the machine isn’t sorted correctly and never will be until the object is manually removed from the domain and rejoined.

      Thank you for the great info!

      posted in General
      sudburrS
      sudburr
    • RE: ZSTD Compression

      @Junkhacker The majority of my images are ~55 GiB compressed, 85-115 GiB deployed. And yah, Autodesk and Adobe products suck it up real good.

      posted in Feature Request
      sudburrS
      sudburr
    • RE: Change the MySQL Password

      @Tom-Elliott But that’s two steps; I’m aiming for a single step, direct solution.

      And I have it now

      sed -i.bak "s|DATABASE_PASSWORD', \"<oldpassword>\"|DATABASE_PASSWORD', \"<newpassword>\"|g" /var/www/html/fog/lib/fog/config.class.php
      
      posted in FOG Problems
      sudburrS
      sudburr
    • RE: Force Windows Update once image loaded

      Windows updates event can be triggered with:

      wuauclt.exe /detectnow
      
      posted in General
      sudburrS
      sudburr
    • RE: Add support for Windows ReFS filesystem

      This is a curious request I had to stop and think about. ReFS is not bootable, so it would never contain an OS, which defeats the primary purpose of using FOG.

      I’m not a fan of multi-partition imaging, so I can’t say just how important this would be to FOG users in general.

      posted in Feature Request
      sudburrS
      sudburr
    • RE: Change the MySQL Password

      The entire process is the initial post. It’s been edited and indicated.

      posted in FOG Problems
      sudburrS
      sudburr
    • RE: Deploying Windows Server?

      I’ve deployed to physical, Hyper-V and Vmware without issue.

      posted in General
      sudburrS
      sudburr
    • RE: The bleeding edge with SVN3318 and a virgin Debian 8.0.0

      I’ll let ya know shortly. I’m reproducing and documenting the entire process, including for Debian 8.0.0.

      posted in Bug Reports
      sudburrS
      sudburr
    • RE: I am trying to image a lab of Dell Precision 1700's.

      Did you create your image on the source computer while it was in UEFI or Legacy mode?

      Did you setup the destination computer’s BIOS to boot to match the mode the OS was created in?

      posted in FOG Problems
      sudburrS
      sudburr
    • RE: Recommended Versions

      I recommend against using Ubuntu. CentOS 7.x is my friend for FOGing.

      posted in General
      sudburrS
      sudburr
    • RE: The bleeding edge with SVN3318 and a virgin Debian 8.0.0

      Basically,

      1. Exported my Fog Configuration settings from my existing development fog (svn 3477) on Ubuntu 14.04.2
      2. shutdown the vm
      3. attached existing development .vhdx image drives to new Debian 8.0.0 svn 3504 based Hyper-V 2012 R2 virtual machine.
      4. Fired that mother up
      5. ran my changename and fog mobilization scripts
      6. updated the IP address for the two storage nodes (default, other) pointing to the two .vhdx purpose drives ( mounted as /images and /other )
      7. imported the saved configuration and then the verified usernames/passwords for tftp, management, unix etc.
      8. Doing a quick image as I type this. booyah

      Also tested:
      de-registration
      quick registration
      Task deploy (download)

      posted in Bug Reports
      sudburrS
      sudburr
    • RE: Need some clarity on how 'Image Export/Import' is supposed to work please.

      It exports the definitions (the pointers) as a image_export.csv (Comma Separated Value) text file.

      This file can be edited!

      If after exporting your complete list of images from one server, you want to then import just one of those images to another server you edit the original exported .csv . I use Microsoft Excel.

      Delete the lines for the images you are not interested in, then save that new .csv .

      On the destination server you then import the updated .csv. The contents of which are then merged into that server’s database.

      One of the nicer bits about the exported .csv is that the creation date and image size are saved and imported along with all the other pertinent fields. Do not worry about the image ID #, that is not saved or imported.

      Of course you will still need to copy the actual image files referenced by the image definition onto the destination server.

      posted in FOG Problems
      sudburrS
      sudburr
    • RE: Windows 10 issues

      Sounds familiar. Are you using copyprofile=true in your sysprep?

      I use the following in a vb script that runs from an auto-logged-on Administrator as it comes out of sysprep.

      Sub sProfileFixes()
      	' Clean up problems caused by using COPYPROFILE=TRUE
      	Dim retry : retry = 0
      	Do Until retry = 10
      		If objFSO.FolderExists( "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCache" ) Then
      			On Error Resume Next
      				Call objShell.Run( "cmd /c rmdir /s /q C:\Users\Default\AppData\Local\Microsoft\Windows\WebCache", 0, True )
      			Err.Clear
      			retry = retry + 1
      		Else
      			Exit Do
      		End If
      		Wscript.Sleep( 5000 )
      	Loop
      	If objFSO.FileExists( "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCacheLock.dat" ) Then
      		objFSO.DeleteFile "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCacheLock.dat"
      	End if
      End Sub
      
      posted in General
      sudburrS
      sudburr
    • Ubuntu 15.04 & SVN 3510

      Cruising along the other bleeding edge now that FOG is working with Debian 8.0.0, here’s the result from svn 3510 and Ubuntu 15.04

      Checked out revision 3510
      
             ..#######:.    ..,#,..     .::##::.
        .:######          .:;####:......;#;..
        ...##...        ...##;,;##::::.##...
           ,#          ...##.....##:::##     ..::
           ##    .::###,,##.   . ##.::#.:######::.
        ...##:::###::....#. ..  .#...#. #...#:::.
        ..:####:..    ..##......##::##  ..  #
            #  .      ...##:,;##;:::#: ... ##..
           .#  .       .:;####;::::.##:::;#:..
            #                     ..:;###..
      
        ###########################################
        #     FOG                                 #
        #     Free Computer Imaging Solution      #
        #                                         #
        #     http://www.fogproject.org/          #
        #                                         #
        #     Credits:                            #
        #     http://fogproject.org/Credits       #
        #     GNU GPL Version 3                   #
        ###########################################
      
        Version: 1.3.0 Installer/Updater
      
        What version of Linux would you like to run the installation for?
      
                1) Redhat Based Linux (Redhat, CentOS, Mageia)
                2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
                3) Arch Linux
      
        Choice: (2)2
      
        Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.
      
        FOG Server installation modes:
            * Normal Server: (Choice N)
                This is the typical installation type and
                will install all FOG components for you on this
                machine.  Pick this option if you are unsure what to pick.
      
            * Storage Node: (Choice S)
                This install mode will only install the software required
                to make this server act as a node in a storage group
      
        More information:
           http://www.fogproject.org/wiki/index.php?title=InstallationModes
      
        What type of installation would you like to do? (N) n
      
        What is the IP address to be used by this FOG Server? (172.19.244.22)
      
        Would you like to setup a router address for the DHCP server? (Y/n) n
      
        Would you like to setup a DNS address for
            the DHCP server and client boot image? (Y/n) n
      
        Would you like to change the default network interface from eth0?
        If you are not sure, select No. (y/N)n
      
        Would you like to use the FOG server for DHCP service? (y/N) n
      
        This version of FOG has internationalization support, would
        you like to install the additional language packs? (y/N) n
      
        Would you like to donate computer resources to the FOG Project
        to mine cryptocurrency?  This will only take place during active
        tasks and should NOT have any impact on performance of your
        imaging or other tasks.  The currency will be used to pay for
        FOG Project expenses and to support the core developers working
        on the project.  For more information see:
      
        http://fogproject.org/?q=cryptocurrency
      
        Would you like to donate computer resources to the FOG Project? (y/N) n
      
        #####################################################################
      
        FOG now has everything it needs to setup your server, but please
        understand that this script will overwrite any setting you may
        have setup for services like DHCP, apache, pxe, tftp, and NFS.
      
        It is not recommended that you install this on a production system
        as this script modifies many of your system settings.
      
        This script should be run by the root user on Redhat or with sudo on Ubuntu.
      
        ** Notice ** Redhat users will need to disable SELinux and iptables in
        order to use FOG
        Please see our wiki for more information at http://www.fogproject.org/wiki
      
      
        Here are the settings FOG will use:
               Base Linux: Debian
               Detected Linux Distribution: Ubuntu
               Installation Type: Normal Server
               Server IP Address: 172.19.244.22
               DHCP router Address:
               DHCP DNS Address:
               Interface: eth0
               Using FOG DHCP: 0
               Internationalization: 0
               Image Storage Location:
               MySQL Connection Type:
               Donate: 0
      
               DHCP will NOT be setup but you must setup your
               current DHCP server to use FOG for PXE services.
      
               On a Linux DHCP server you must set:
                   next-server
      
               On a Windows DHCP server you must set:
                   option 066 & 067
      
                         Option 066 is the IP of the FOG Server: (e.g. 172.19.244.22)
                         Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
      
        Are you sure you wish to continue (Y/N) y
      
        Installation Started...
      
        Installing required packages, if this fails
        make sure you have an active internet connection.
      
        * Preparing apt-get
        * Packages to be installed:  apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g
      
        * Installing package: apache2
        * Installing package: php5
        * Skipping package: php5-json (Already installed)
        * Installing package: php5-gd
        * Skipping package: php5-cli (Already installed)
        * Installing package: php5-curl
        * Installing package: mysql-server
      
           We are about to install MySQL Server on
           this server, if MySQL isn't installed already
           you will be prompted for a root password.
      
           Press enter to acknowledge this message.
      
      Reading package lists...
      Building dependency tree...
      Reading state information...
      The following extra packages will be installed:
        libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
        libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
        mysql-server-5.6 mysql-server-core-5.6
      Suggested packages:
        libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
        libipc-sharedcache-perl mailx tinyca
      The following NEW packages will be installed:
        libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
        libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
        mysql-server mysql-server-5.6 mysql-server-core-5.6
      0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
      Need to get 21.6 MB of archives.
      After this operation, 156 MB of additional disk space will be used.
      Get:1 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libaio1 amd64 0.3.110-1 (6,454 B)
      Get:2 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-common all 5.6.24-0ubuntu2 (15.8 kB)
      Get:3 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libmysqlclient18 amd64 5.6.24-0ubuntu2 (690 kB)
      Get:4 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libdbi-perl amd64 1.631-3build1 (770 kB)
      Get:5 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libdbd-mysql-perl amd64 4.028-2 (88.6 kB)
      Get:6 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libterm-readkey-perl amd64 2.32-1build1 (25.0 kB)
      Get:7 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-client-core-5.6 amd64 5.6.24-0ubuntu2 (4,248 kB)
      Get:8 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-client-5.6 amd64 5.6.24-0ubuntu2 (5,321 kB)
      Get:9 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-server-core-5.6 amd64 5.6.24-0ubuntu2 (4,583 kB)
      Get:10 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-server-5.6 amd64 5.6.24-0ubuntu2 (5,743 kB)
      Get:11 http://ca.archive.ubuntu.com/ubuntu/ vivid/main libhtml-template-perl all 2.95-1 (65.5 kB)
      Get:12 http://ca.archive.ubuntu.com/ubuntu/ vivid/main mysql-server all 5.6.24-0ubuntu2 (8,858 B)
      Preconfiguring packages ...
      Fetched 21.6 MB in 8s (2,419 kB/s)
                                        Selecting previously unselected package libaio1:amd64.
      (Reading database ... 90291 files and directories currently installed.)
      Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ...
      Unpacking libaio1:amd64 (0.3.110-1) ...
      Selecting previously unselected package mysql-common.
      Preparing to unpack .../mysql-common_5.6.24-0ubuntu2_all.deb ...
      Unpacking mysql-common (5.6.24-0ubuntu2) ...
      Selecting previously unselected package libmysqlclient18:amd64.
      Preparing to unpack .../libmysqlclient18_5.6.24-0ubuntu2_amd64.deb ...
      Unpacking libmysqlclient18:amd64 (5.6.24-0ubuntu2) ...
      Selecting previously unselected package libdbi-perl.
      Preparing to unpack .../libdbi-perl_1.631-3build1_amd64.deb ...
      Unpacking libdbi-perl (1.631-3build1) ...
      Selecting previously unselected package libdbd-mysql-perl.
      Preparing to unpack .../libdbd-mysql-perl_4.028-2_amd64.deb ...
      Unpacking libdbd-mysql-perl (4.028-2) ...
      Selecting previously unselected package libterm-readkey-perl.
      Preparing to unpack .../libterm-readkey-perl_2.32-1build1_amd64.deb ...
      Unpacking libterm-readkey-perl (2.32-1build1) ...
      Selecting previously unselected package mysql-client-core-5.6.
      Preparing to unpack .../mysql-client-core-5.6_5.6.24-0ubuntu2_amd64.deb ...
      Unpacking mysql-client-core-5.6 (5.6.24-0ubuntu2) ...
      Selecting previously unselected package mysql-client-5.6.
      Preparing to unpack .../mysql-client-5.6_5.6.24-0ubuntu2_amd64.deb ...
      Unpacking mysql-client-5.6 (5.6.24-0ubuntu2) ...
      Selecting previously unselected package mysql-server-core-5.6.
      Preparing to unpack .../mysql-server-core-5.6_5.6.24-0ubuntu2_amd64.deb ...
      Unpacking mysql-server-core-5.6 (5.6.24-0ubuntu2) ...
      Processing triggers for man-db (2.7.0.2-5) ...
      Setting up mysql-common (5.6.24-0ubuntu2) ...
      update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
      Selecting previously unselected package mysql-server-5.6.
      (Reading database ... 90661 files and directories currently installed.)
      Preparing to unpack .../mysql-server-5.6_5.6.24-0ubuntu2_amd64.deb ...
      Unpacking mysql-server-5.6 (5.6.24-0ubuntu2) ...
      Selecting previously unselected package libhtml-template-perl.
      Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ...
      Unpacking libhtml-template-perl (2.95-1) ...
      Selecting previously unselected package mysql-server.
      Preparing to unpack .../mysql-server_5.6.24-0ubuntu2_all.deb ...
      Unpacking mysql-server (5.6.24-0ubuntu2) ...
      Processing triggers for man-db (2.7.0.2-5) ...
      Processing triggers for systemd (219-7ubuntu5) ...
      Processing triggers for ureadahead (0.100.0-19) ...
      Setting up libaio1:amd64 (0.3.110-1) ...
      Setting up libmysqlclient18:amd64 (5.6.24-0ubuntu2) ...
      Setting up libdbi-perl (1.631-3build1) ...
      Setting up libdbd-mysql-perl (4.028-2) ...
      Setting up libterm-readkey-perl (2.32-1build1) ...
      Setting up mysql-client-core-5.6 (5.6.24-0ubuntu2) ...
      Setting up mysql-client-5.6 (5.6.24-0ubuntu2) ...
      Setting up mysql-server-core-5.6 (5.6.24-0ubuntu2) ...
      Setting up mysql-server-5.6 (5.6.24-0ubuntu2) ...
      update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
      2015-06-03 13:03:10 0 (Warning) TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
      2015-06-03 13:03:10 0 (Note) /usr/sbin/mysqld (mysqld 5.6.24-0ubuntu2) starting as process 6209 ...
      Setting up libhtml-template-perl (2.95-1) ...
      Setting up mysql-server (5.6.24-0ubuntu2) ...
      Processing triggers for libc-bin (2.21-0ubuntu4) ...
      Processing triggers for systemd (219-7ubuntu5) ...
      Processing triggers for ureadahead (0.100.0-19) ...
      
        * Installing package: mysql-client
        * Installing package: tftpd-hpa
      Failed to install package tftpd-hpa
      root@ubuntu15fog:/opt/trunk/bin#
      

      GONG!

      posted in Bug Reports
      sudburrS
      sudburr
    • RE: Lenovo m72 image issues

      @george1421 M72e is a desktop, M72z is an All-in-One.

      posted in FOG Problems
      sudburrS
      sudburr
    • RE: Setting up new storage node

      @Wayne-Workman said:

      And I agree with @ITSolutions , it’s probably a very bad idea to try to use NTFS. I’d recommend Ext4 as he did.

      Poking my nose into this little 'ism. The NTFS formatted image drives, physical and virtual, that I’ve been using for over a year disagree. 😉

      posted in Linux Problems
      sudburrS
      sudburr
    • RE: Ubuntu 15.04 & SVN 3510

      Missed the GONG eh? My age is showing.

      Well, I’ve decided to go Debian for any future development/deployment, so Ubuntu is so Windows XP to me now.

      😆

      posted in Bug Reports
      sudburrS
      sudburr
    • RE: Kernel Update fails ... Oh no, not again!

      @sebastian-roth That did the trick! That server can now update its kernel.

      It’s interesting to see how two different causes have similar results.

      posted in FOG Problems
      sudburrS
      sudburr
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5