Sysprep Executor reports Antivirus detected when it has been disabled
I am trying to Sysprep a Windows Enterprise 1903 image using ver. 4.1.1.1 of Sysprep creator. The executor reports that Antivirus is detected but I have disabled it in group policy. Real time protection is definitely off.
Answers (2)
Top Answer
OK so the real problem is:
Error SYSPRP Sysprep_Clean_Validate_Opk: Audit mode can't be turned on if there is an active scenario.; hr = 0x800F0975
Research along this line
https://www.google.com/search?client=firefox-b-1-d&q=Sysprep_Clean_Validate_Opk%3A+Audit+mode+can%27t+be+turned+on+if+there+is+an+active+scenario
https://social.technet.microsoft.com/Forums/en-US/0dcbdf32-05a1-4edc-8f22-287998d30de5/sysprep-problem-audit-mode-canamp39t-be-turned-on-if-there-is-an-active-scenario?forum=win10itprosetup
Comments:
-
I very much appreciate you trying to help me. If I sound a bit frustrated, I've got a new semester starting in 2 weeks and 250 or so computers to put new images on.
I've tried the suggestion I found of using an older spopk.dll (from 1803) and it seems to be working. I am sending the image up now. I am sure that's not a correct solution but it might be the only one I've got. Next time I do this, I won't likely use the newest Windows Version I can get.
Again, thanks.
So .. to recap. Replacing the 'spopk.dll' as suggested in the technet link above AND using the command line to do sysprep instead of the executor seemed to do the trick. To replace the spopk.dll, you have to take ownership and give yourself full control of the file. I used a dll from 1803. - michael.e.ritchey 5 years ago-
Then it is an OS related issue...., yeah I'm still with 1809.... When a new build is out, I try to wait 6 months and use a known good patched ISO. - Channeler 5 years ago
see Cory's answer https://www.itninja.com/question/sysprep-executor-detecting-defender
Comments:
-
If you are referring to where cserrins suggested to hover over the Antivirus detected message, then, as I stated, it does say that. However, the "Turn off Windows Defender Antivirus" setting is enabled in group policy. Windows Security notification is disabled in task manager startup. In the registry, both DisableAntiSpyware and DisableRealtimeMonitoring are set to "1" in HKLM\SOFTWARE\Policies\Microsoft\Windows Defender. Also on that page is a warning about upgrades. This is a fresh install from .iso. - michael.e.ritchey 5 years ago
-
Your however does not apply unless the machine is in a domain, GPO's are domain policies. - SMal.tmcc 5 years ago
Also if you manually disable the Real time protection, Does Windows Warns you about having Defender OFF? - Channeler 5 years ago
I then installed my software to the non-sysprepped clone, now I can't sysprep it because it says antivirus is on. So I know how to disable the antivirus, and I know that I can sysprep 1903 ... I just don't know why this isn't working. - michael.e.ritchey 5 years ago
Copy the Answer file to windows\system32\sysprep
Open a command window
cd\windows\system32\sysprep
sysprep /generalize /oobe /shutdown /unattend:c:\windows\system32\sysprep\YourAnswerFile.xml - SMal.tmcc 5 years ago
The following is from setupact.log ... I see errors but I don't know what they mean.
2019-08-05 12:32:19, Info SYSPRP ========================================================
2019-08-05 12:32:19, Info SYSPRP === Beginning of a new sysprep run ===
2019-08-05 12:32:19, Info SYSPRP ========================================================
2019-08-05 12:32:19, Info [0x0f004d] SYSPRP The time is now 2019-08-05 12:32:19
2019-08-05 12:32:19, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2019-08-05 12:32:19, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2019-08-05 12:32:19, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2019-08-05 12:32:19, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2019-08-05 12:32:19, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2019-08-05 12:32:19, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2019-08-05 12:32:19, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2019-08-05 12:32:19, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2019-08-05 12:32:19, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 3
2019-08-05 12:32:19, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2019-08-05 12:32:19, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2019-08-05 12:32:19, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2019-08-05 12:32:19, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2019-08-05 12:32:19, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2019-08-05 12:32:19, Info CSI 00000001 Shim considered [l:125]'\??\C:\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.18362.263_none_5f1fc00458f64d76\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND
2019-08-05 12:32:19, Info CSI 00000002 Shim considered [l:122]'\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.18362.263_none_5f1fc00458f64d76\wcp.dll' : got STATUS_SUCCESS
2019-08-05 12:32:19, Error SYSPRP Sysprep_Clean_Validate_Opk: Audit mode can't be turned on if there is an active scenario.; hr = 0x800F0975
2019-08-05 12:32:19, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x975
2019-08-05 12:32:19, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x975
2019-08-05 12:32:19, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x975
2019-08-05 12:32:19, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x975
2019-08-05 12:32:19, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x80070975
2019-08-05 12:33:11, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2019-08-05 12:33:11, Info [0x0f004d] SYSPRP The time is now 2019-08-05 12:33:11 - michael.e.ritchey 5 years ago
The manual way of running sysprep succeeded, but I would like to get the KACE Sysprep Executor to work as it's done in the past.
Any more ideas? - ACAST 5 years ago
https://forums.fogproject.org/topic/13335/fyi-win10-1903-sysprep-possible-bug - SMal.tmcc 5 years ago