Alright so trying to download and run the .bat file keeps failing or if it does complete nothing actually gets run on the computer. I’ve switched tactics to just make the .bat in a fixlet and then run it on the computer. Everything completes successfully but when the .bat runs it just runs forever and never resolves. Again any help and insight here would be welcomed. Maybe I’m overcomplicating things and there’s an easier way to do this.
parameter “mainSWDLogFolder” = "{parent folder of client folder of current site}/__Global/SWDDeployData"
folder create "{parameter “mainSWDLogFolder”}"
parameter “logFile” = “SWD_DeploymentResults.log”
//**End Preparation Marker
delete __createfile
parameter “logFolder” = “{parameter “mainSWDLogFolder”}”
// Run setup process
delete run.bat
// Use .bat to set working directory to packages root, for setup command.
createfile until end
@ECHO OFF
rundll32 printui.dll,PrintUIEntry /q /in /n “\nwu-app-svr.ads.northwestern.edu\StudentPay-BW-Duplex”
rundll32 printui.dll,PrintUIEntry /q /in /n “\nwu-app-svr.ads.northwestern.edu\StudentPay-BW-Simplex”
rundll32 printui.dll,PrintUIEntry /q /in /n “\nwu-app-svr.ads.northwestern.edu\StudentPay-Color-Duplex”
rundll32 printui.dll,PrintUIEntry /q /in /n "\nwu-app-svr.ads.northwestern.edu\StudentPay-Color-Simplex"
end
move __createfile run.bat
// You will not be able to stop or take action on an applicable BigFix Client until your installer completes.
// So ensure no user input is required.
// If your package absolutely must interact with the user, replace ‘override wait’ with ‘override run’ and ‘wait’ with ‘run’.
action uses wow64 redirection false
override wait
hidden=true
completion=job
wait run.bat
//**Begin Closing Marker
// Get the return code of the previous action.
parameter “returnCode” = “{exit code of action}”
// Task will now exit.
exit {parameter “returnCode”}
//**End Closing Marker