Similar to Dell, only using HP Image assistantįirst, copy the files and install the utility. Register-ScheduledTask -TaskName $taskname -Trigger $trigger -Action $action -Principal $principal -Settings $settings -Description $taskdescription -Force $settings= New-ScheduledTaskSettingsSet the Task $taskdescription = "Weekly driver update Friday at 13:00" $principal= New-ScheduledTaskPrincipal -UserID “NT AUTHORITY\SYSTEM” -LogonType “ServiceAccount” -RunLevel “Highest” $trigger = New-ScheduledTaskTrigger -Weekly -WeeksInterval 2 -DaysOfWeek Friday -At 1pm $action = New-ScheduledTaskAction -Execute “C:\Program Files\Dell\CommandUpdate\dcu-cli.exe” -Argument “/applyUpdates -silent -reboot=disable -outputlog=c:\driversupd\log.log” #Configure Scheduled Task for driver updates The powershell script registers a scheduled task to run every 2 weeks and check for updatesĮdit: Replaced DriverUpdate with applyUpdates, thanks for Nicolas for spotting in the comments.Īlso running the command in-line for security. Powershell.exe -executionpolicy bypass -File c:\driversupd\schtask.ps1 The install.bat copies the scripts to a new folder on the c:\ drive, runs a ps1 to add a scheduled task and then installs the tool (silently) if not exist "C:\driversupd\" mkdir C:\driversupdĬopy %~dp0runupdate.bat c:\driversupd\runupdate.batĬopy %~dp0schtask.ps1 c:\driversupd\schtask.ps1 To make this easier to deploy with Intune, I like to create folders to organise everything so you will find the install/uninstall commands, a text file with the detection method, an icon and an output folder with the package intunewin file.įor this I’ll run through the source folder with the script Dell Driver updates, always a pain! Microsoft are fixing it with the Windows Update drivers in the update rings in Intune, but until that includes Firmware as well it’s best to use the tools available.įortunately, both Dell and HP offer utilities to update drivers and they both have command line switches which we can use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |