<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scheduled-Task on Anything About IT</title><link>https://www.verboon.info/tags/scheduled-task/</link><description>Recent content in Scheduled-Task on Anything About IT</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 28 Apr 2014 14:43:55 +0000</lastBuildDate><atom:link href="https://www.verboon.info/tags/scheduled-task/index.xml" rel="self" type="application/rss+xml"/><item><title>PowerShell Script - List Scheduled Tasks</title><link>https://www.verboon.info/2014/04/powershell-script-list-scheduled-tasks/</link><pubDate>Mon, 28 Apr 2014 14:43:55 +0000</pubDate><guid>https://www.verboon.info/2014/04/powershell-script-list-scheduled-tasks/</guid><description>&lt;p&gt;Here’s a simple script I put together to list the scheduled tasks including the description, status and whether the task is set to hidden or not. When deploying a new operating system I find it important to understand what scheduled tasks are enabled to run, as sometimes there might be some potential to improvie the systems performance by disabling those you feel are not needed in your environment.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;$schtasks&lt;/span&gt; = &lt;span style="color:#8be9fd;font-style:italic"&gt;@&lt;/span&gt;()
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;$st&lt;/span&gt; = &lt;span style="color:#8be9fd;font-style:italic"&gt;Get-ScheduledTask&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ff79c6"&gt;ForEach&lt;/span&gt; (&lt;span style="color:#8be9fd;font-style:italic"&gt;$SchTask&lt;/span&gt; &lt;span style="color:#ff79c6"&gt;in&lt;/span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$st&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$object&lt;/span&gt; = &lt;span style="color:#8be9fd;font-style:italic"&gt;New-Object&lt;/span&gt; -TypeName PSObject
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$object&lt;/span&gt; | &lt;span style="color:#8be9fd;font-style:italic"&gt;Add-Member&lt;/span&gt; -MemberType NoteProperty -Name &lt;span style="color:#f1fa8c"&gt;&amp;#34;TaskName&amp;#34;&lt;/span&gt; -Value &lt;span style="color:#8be9fd;font-style:italic"&gt;$SchTask&lt;/span&gt;.TaskName
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$object&lt;/span&gt; | &lt;span style="color:#8be9fd;font-style:italic"&gt;Add-Member&lt;/span&gt; -MemberType NoteProperty -Name &lt;span style="color:#f1fa8c"&gt;&amp;#34;Description&amp;#34;&lt;/span&gt; -Value &lt;span style="color:#8be9fd;font-style:italic"&gt;$SchTask&lt;/span&gt;.Description
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$object&lt;/span&gt; | &lt;span style="color:#8be9fd;font-style:italic"&gt;Add-Member&lt;/span&gt; -MemberType NoteProperty -Name &lt;span style="color:#f1fa8c"&gt;&amp;#34;State&amp;#34;&lt;/span&gt; -Value &lt;span style="color:#8be9fd;font-style:italic"&gt;$SchTask&lt;/span&gt;.State
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$object&lt;/span&gt; | &lt;span style="color:#8be9fd;font-style:italic"&gt;Add-Member&lt;/span&gt; -MemberType NoteProperty -Name &lt;span style="color:#f1fa8c"&gt;&amp;#34;Hidden&amp;#34;&lt;/span&gt; -Value &lt;span style="color:#8be9fd;font-style:italic"&gt;$SchTask&lt;/span&gt;.Settings.Hidden
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#8be9fd;font-style:italic"&gt;$schtasks&lt;/span&gt; += &lt;span style="color:#8be9fd;font-style:italic"&gt;$object&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;$schtasks&lt;/span&gt; | &lt;span style="color:#8be9fd;font-style:italic"&gt;Sort-Object&lt;/span&gt; &lt;span style="color:#f1fa8c"&gt;&amp;#34;Hidden&amp;#34;&lt;/span&gt; -Descending | &lt;span style="color:#8be9fd;font-style:italic"&gt;Format-list&lt;/span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Within the Scheduled Tasks UI, by default you will not see the contents of Tasks that are set to hidden. But this can be enabled. Open the Task Scheduler with taskschd.msc and within the View Menu select “Show Hidden Tasks”.&lt;/p&gt;</description></item><item><title>Windows 8 &amp;ndash; Scheduled Maintenance Task won&amp;rsquo;t delete Desktop Shortcuts anymore</title><link>https://www.verboon.info/2012/03/windows-8-scheduled-maintenance-task-wont-delete-desktop-shortcuts-anymore/</link><pubDate>Sat, 10 Mar 2012 20:28:04 +0000</pubDate><guid>https://www.verboon.info/2012/03/windows-8-scheduled-maintenance-task-wont-delete-desktop-shortcuts-anymore/</guid><description>&lt;p&gt;On Windows 7 many users suffer from disappearing shortcuts on their desktop. I wrote about this in &lt;a href="https://www.verboon.info/index.php/2010/11/control-windows-7-scheduled-maintenance-behavior-through-group-policy/"&gt;Control Windows 7 Scheduled Maintenance Behavior Through Group Policy&lt;/a&gt;. On Windows 8 this shouldn’t happen anymore, since Microsoft has removed the related scripts and Tasks from the Diagnosis troubleshooting pack (DiagPackage.diagpkg)&lt;/p&gt;
&lt;p&gt;The following files have been removed from the C:\Windows\diagnostics\scheduled\Maintenance folder:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;RS_RemoveShortcuts.ps1&lt;/li&gt;
&lt;li&gt;RS_RemoveUnusedDesktopIcons.ps1&lt;/li&gt;
&lt;li&gt;TS_BrokenShortcuts.ps1&lt;/li&gt;
&lt;li&gt;TS_UnusedDesktopIcons.ps1&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Scheduled Tasks for Windows Games</title><link>https://www.verboon.info/2011/04/scheduled-tasks-for-windows-games/</link><pubDate>Fri, 22 Apr 2011 14:05:55 +0000</pubDate><guid>https://www.verboon.info/2011/04/scheduled-tasks-for-windows-games/</guid><description>&lt;p&gt;When opening the Windows Task Scheduler you might see a Task called “UpdateCheck_” located within the Games folder of the Task Scheduler Library.&lt;/p&gt;
&lt;p&gt;
 &lt;img src="images/2011-04-22-15h42_08_thumb.png" alt="2011-04-22 15h42_08"&gt;

&lt;/p&gt;
&lt;p&gt;To enable or disable this Task open the “Game Explorer” within Windows and then select options.&lt;/p&gt;
&lt;p&gt;
 &lt;img src="images/2011-04-22-15h48_49_thumb.png" alt="2011-04-22 15h48_49"&gt;

&lt;/p&gt;
&lt;p&gt;
 &lt;img src="images/2011-04-22-15h52_04_thumb.png" alt="2011-04-22 15h52_04"&gt;

&lt;/p&gt;
&lt;p&gt;When selecting “Automatically check online for updates and news, then notify me when the’re available” a scheduled Task is automatically being created. When selecting “Never check online for updates or news, I’ll do it manually” the task if existed before is removed.&lt;/p&gt;</description></item></channel></rss>