Tag Info

New answers tagged


I'm assuming this is a local machine (not domain joined), as you are not using GPO. Open the Local Policy Editor (Start>Run>gpedit.msc) and browse to Computer Configuration\Administrative Templates\Windows Components\Windows Update and look for the Configure Automatic Updates. Enable that policy, and set the option for "Auto download and install" and set ...


I would write a small VBScript or PowerShell script that is set in task scheduler to execute at 5:30am every day that grabs a collection of all of the events from the event logs for that day and checks for that specific event id and log entry. If that event exists, execute the reboot. Here are some links that may help you: ...


When running under the task scheduler the user has much less access to services. This is because access to the Service Control Manager which handles services it different for authenticated users than for interactive users Interactive users (the ones logged one) can enumerate, start and stop service, while non-interactive ones can't even enumerate them. I ...


The RegisterTask method has an update flag that you would use. Something like this: # Update the action with the new working directory and executable $action.WorkingDirectory = $exe.DirectoryName $action.Path = $exe.FullName #Update Task $taskFolder.RegisterTask($task.Name, $task.Definition, 4, "<username>", "<password>", 1, $null) See the ...


Even a better way where you don't need to specify names of the tasks: ($TaskScheduler = New-Object -ComObject Schedule.Service).Connect("localhost") $TaskScheduler.GetFolder('\').GetTasks(0) | % {$_.Enabled = $false}


The scheduled task will not run if it hasn't completed its previous run. So, ensure that your scheduled tasks are not running longer than the interval set. To stop your current running task you can Right Click → End Task: Also, use schtasks /query /v /fo list for a detailed view of the "state" of your scheduled tasks.

Top 50 recent answers are included