I'm trying to write a script that will assist our help desk fix some issues with the AV install. I want a simple script to uninstall LDAV, reboot, and reinstall LDAV on the next login. However, I can't seem get install portion to be triggered on the next login. I'm trying to use a registry key in RunOnce. The registry key does get processed as the it disappears from RunOnce at login, but vulscan doesn't show up and I'm not seeing it run in taskmanager (in case it's just hidden).
We're running LDMS 9.6 SP1.
Here's the basic script so far:
REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v InstallAV /d "\"%LDMS_LOCAL_DIR%\..\vulscan.exe\" /installav /showui" /f
"%LDMS_LOCAL_DIR%\..\vulscan.exe" /removeav /showui /noreboot
shutdown -r -t 0