Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

created a batch script to update to new build 1703

hi all,

created a nifty batch script to update to new build 1703

-

mkdir C:\upgrade
start /wait Robocopy \\molvmmon02\pdq C:\upgrade /mir
Reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v WIN10 /t REG_SZ /d C:\upgrade\installWIN.bat /f
start /wait MsiExec.exe /X {8097EE64-FDE1-409A-B25D-3DFD862871E1} /passive

-

the installWIN.bat is this -

C:\upgrade\win10x64_1703\setup.exe /auto upgrade

the msiexec is to uninstall SEP as to do a windows update it asks you to remove this app as its not compatible

so the next time i log in it will start the windows 10 upgrade process and after that i want to install SEP again as i uninstalled it

where can i add this to my script as i dont want to runonce to install SEP as i feel SEP will start off the install the same time while windows 10 is being upgraded

any thought?

rob

0

Comments

1 comment
Date Votes
  • Two solutions:

    1. Create a second batchfile for SEP install and run it with the /postoobe Parameter

    Switch : /Postoobe \setupcomplete.cmd
    Parameters : Local file path or UNC network path to a file named setupcomplete.cmd

    Action :
    Injects setupcomplete.cmd file from the specified location.
    Setupcomplete.cmd is a customized script to perform tasks after the installation completes but before first user login.  It is run with System privileges.

    Example : setup.exe /auto upgrade /postoobe c:\script\setupcomplete.cmd

     

    2. Run the Setup with  /Compat IgnoreWarning

    IgnoreWarning:
    Setup completes installation, ignoring any dismissible compatibility messages

    Example:

    Setup.exe /Auto Upgrade /Quiet /Compat IgnoreWarning

    Have Fun

     

    0