Deployment procedure example for MyUSBOnly by Windows logon script (Active Directory)
Previous Topic  Next Topic 

1st Stage


AutoInstall by logon script (for Domain User)

Run install script manually (for non domain user)


#Both installation will add a job in windows Scheduled Tasks which will update the MyUSBOnly configuration and USB whitelist for every 3 hours.


MyUSBOnly Installation Batch File


@Echo Off

IF NOT EXIST "C:\Program Files\A.C. Element MyUSBOnly\SMSS.EXE" (goto install) else (goto update)


:install

md "C:\Program Files\A.C. Element MyUSBOnly"

xcopy \\winsvr\netlogon\setup\reload.bin "C:\Program Files\A.C. Element MyUSBOnly" /Y

xcopy \\winsvr\netlogon\setup\MyUSBOnly.bin "C:\Program Files\A.C. Element MyUSBOnly" /Y

rem xcopy \\winsvr\netlogon\setup\key.bin "C:\Program Files\A.C. Element MyUSBOnly" /Y

msiexec /quiet /qn /i \\winsvr\netlogon\setup\myusbonly_setup.msi SERIAL_NUMBER="XXXXX-XXXXX"

echo ---%computername%--- Installed MyUSB %time% %date% >> \\winsvr\log\InstallMyUSB.txt

goto Final


:update

xcopy \\winsvr\netlogon\setup\reload.bin "C:\Program Files\A.C. Element MyUSBOnly" /Y

xcopy \\winsvr\netlogon\setup\MyUSBOnly.bin "C:\Program Files\A.C. Element MyUSBOnly" /Y

rem xcopy \\winsvr\netlogon\setup\key.bin "C:\Program Files\A.C. Element MyUSBOnly" /Y

echo ---%computername%--- Updated MyUSB %time% %date% >> \\winsvr\log\updateMyUSB.txt

goto Final


:Final

exit



2nd Stage


Submit Software installation policy in Active Directory (For Domain User only)

This policy can install the program to new computer and update program as new version on existing workstation by restart computer.


#It will generate for 4 process while update program to new version. After restart the computer again, the problem will fix automatically.