If ($(Get-ScheduledTask -TaskName $updateTaskName). $(Get-ScheduledTask -TaskName $updateTaskName).State SCHTASKS /Create /f /tn "$updateTaskName" /sc onstart /tr "cmd.exe /c $batfile" /ru system "reg add ""HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\" -f $key.PSChildName, $newBinStr | out-file -Encoding ascii $batfile Even the IT Admin can forcefully push the updates across the systems. However users will be prompted with the update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |