SC create NewCasFiscalCore binpath= "%~dp0NewCasWindowsService.exe" displayname= "Fiscal Core" start= auto
SC config NewCasFiscalCore obj= LocalSystem password= ""
SC config NewCasFiscalCore type= interact type= own
SC failure NewCasFiscalCore reset= 86400 actions= restart/1000/restart/1000/restart/1000
powershell -Command Add-MpPreference -ExclusionProcess "NewCasWindowsService.exe"
powershell -Command Add-MpPreference -ExclusionProcess "NewCasTrayApp.exe"
powershell -Command Add-MpPreference -ExclusionProcess "FiscalConfigurationApp.exe"
powershell -Command Add-MpPreference -ExclusionPath "%~dp0."
NET START NewCasFiscalCore
schtasks /create /sc ONLOGON /tn "NewCasTrayAutorun" /tr "%~dp0\tools\NewCasTrayApp.exe start" /F