<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Stuff n Things : Scheduled Scans</title><link>http://blogs.technet.com/kfalde/archive/tags/Scheduled+Scans/default.aspx</link><description>Tags: Scheduled Scans</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How to go green with FCS</title><link>http://blogs.technet.com/kfalde/archive/2009/05/13/how-to-go-green-with-fcs.aspx</link><pubDate>Wed, 13 May 2009 23:56:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3240610</guid><dc:creator>kfalde</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/kfalde/comments/3240610.aspx</comments><wfw:commentRss>http://blogs.technet.com/kfalde/commentrss.aspx?PostID=3240610</wfw:commentRss><description>&lt;P&gt;I’m not a treehugger but I can definitely see the $$ with power savings.&amp;nbsp; Having said that I had a customer recently that wanted his computers to wake up from sleep in order to do their scheduled scans for FCS.&amp;nbsp; At first I was like nope not possible we have no such feature. Then I started digging around.&amp;nbsp; Apparently since about XP SP1 or later we have had a feature in Task Scheduler that allows us to wake a computer up via &lt;A href="http://en.wikipedia.org/wiki/Advanced_Power_Management" mce_href="http://en.wikipedia.org/wiki/Advanced_Power_Management"&gt;APM&lt;/A&gt;/&lt;A href="http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface" mce_href="http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface"&gt;ACPI&lt;/A&gt; when we need a scheduled task to run.&amp;nbsp; Unfortunately FCS itself has no way to set this option for “Wake the computer to run this task” but we can work around that.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;If you look back to my other article on creating custom scan schedules at &lt;A title=http://blogs.technet.com/kfalde/archive/2008/10/23/how-to-add-extra-scheduled-scans-or-definition-updates-for-fcs.aspx href="http://blogs.technet.com/kfalde/archive/2008/10/23/how-to-add-extra-scheduled-scans-or-definition-updates-for-fcs.aspx" mce_href="http://blogs.technet.com/kfalde/archive/2008/10/23/how-to-add-extra-scheduled-scans-or-definition-updates-for-fcs.aspx"&gt;http://blogs.technet.com/kfalde/archive/2008/10/23/how-to-add-extra-scheduled-scans-or-definition-updates-for-fcs.aspx&lt;/A&gt; we can use the same mechanism.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Once again you don’t need a 2008 domain or Vista clients to use Group Policy Preferences.&amp;nbsp; You just need the client extensions installed on your XP or 2003 systems which are available via WSUS.&amp;nbsp; You need a Vista or 2008 system to edit the GPO, once in place the settings will apply to any system that has Group Policy Preferences extensions installed.&lt;/P&gt;
&lt;P&gt;So basically we follow the other article we create the custom scan schedule that we want with the right mpcmdrun options but we make sure to go to the “Settings” tab for the scan and check the “Wake the computer to run this task” &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtogogreenwithFCS_EE03/image_2.png" mce_href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtogogreenwithFCS_EE03/image_2.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=image border=0 alt=image src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtogogreenwithFCS_EE03/image_thumb.png" width=372 height=410 mce_src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtogogreenwithFCS_EE03/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;From our testing this seems to work pretty well for computers that go to sleep mode.&amp;nbsp; This will not work on systems that are fully powered off.&amp;nbsp; Good luck let me know if you try this out.&amp;nbsp; Thanks&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3240610" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/kfalde/archive/tags/Scheduled+Scans/default.aspx">Scheduled Scans</category></item><item><title>How to add extra scheduled scans or definition updates for FCS</title><link>http://blogs.technet.com/kfalde/archive/2008/10/23/how-to-add-extra-scheduled-scans-or-definition-updates-for-fcs.aspx</link><pubDate>Thu, 23 Oct 2008 22:33:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3141018</guid><dc:creator>kfalde</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/kfalde/comments/3141018.aspx</comments><wfw:commentRss>http://blogs.technet.com/kfalde/commentrss.aspx?PostID=3141018</wfw:commentRss><description>&lt;P&gt;The default option for scheduled scans in FCS is kind of sparse currently and it's something we get requests about so I'm posting a possible workaround to get more scheduled scans.&amp;nbsp; Below is the shot of the FCS policy setting.. you can either pick "every day" or an individual day and a certain time and which type of scan that you want to do.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_2.png" mce_href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_2.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" border=0 alt=image src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb.png" width=328 height=76 mce_src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;So what happens say if I wanted to do a full scan on the 1st Sat of the month or say a Full scan on Saturday's and quick scans at 6pm every day or any other number of other scenarios you could think of?&amp;nbsp; The answer is your kind of stuck if you have your mind dead set on using the current FCS v1 policies.&lt;/P&gt;
&lt;P&gt;So how do we get around this limitation?&amp;nbsp; The answer lies in how those scans are accomplished in the first place.&amp;nbsp; If you go into Task Scheduler on your system and turn on "Show Hidden Tasks" you will see how your scheduled scans are actually occurring:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_4.png" mce_href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_4.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" border=0 alt=image src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_1.png" width=615 height=67 mce_src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;If you dig deeper and look at these tasks you will see that they are all using the following .exe with various options to perform scans&lt;/P&gt;
&lt;P&gt;c:\Program Files\Microsoft Forefront\Client Security\Client\Antimalware\MpCmdRun.exe&lt;/P&gt;
&lt;P&gt;So basically from an understanding point of view.. the FCS policy writes reg keys that tell which type of Scans and what schedules to use.. the FCS client takes those reg keys and creates scheduled tasks based on them.&lt;/P&gt;
&lt;P&gt;The following is a list of the options we are interested in:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Quick Scan&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"C:\Program Files\Microsoft Forefront\Client Security\Client\Antimalware\MpCmdRun.exe" Scan -RestrictPrivileges -ScanType 1&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Full Scan&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"C:\Program Files\Microsoft Forefront\Client Security\Client\Antimalware\MpCmdRun.exe" Scan -RestrictPrivileges&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Signature Update&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"C:\Program Files\Microsoft Forefront\Client Security\Client\Antimalware\MpCmdRun.exe" SignatureUpdate&lt;/P&gt;
&lt;P&gt;So the obvious result here is that I can take these command lines and create any schedule that I want in my environment.&lt;/P&gt;
&lt;P&gt;But you ask ok how do I push that task out to all my 5k workstations/servers etc. Well I guess there are any number of methods from using a group policy with a system logon script that creates it to SMS/SCCM jobs to any other type of desktop management software etc.&amp;nbsp; The one I'll focus on here is using Group Policy Preferences.&amp;nbsp; This is a new feature of Vista/2008 however there is a Group Policy Preferences Extensions that you can install on your XP/2003 systems.&amp;nbsp; Just taking a look at WSUS it is there as an update that you can deploy easily via WSUS (which hopefully you are using if you have FCS)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_6.png" mce_href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_6.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" border=0 alt=image src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_2.png" width=624 height=58 mce_src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_2.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Note that it is in the classification "Feature Packs" so you may need to sync that on your WSUS server.&amp;nbsp; Also as an FYI you don't need a 2008 DC/Forest etc for these.&amp;nbsp; You do need a 2008 server or a Vista system in order to edit and create policies that use these extensions but the settings are stored in the normal GPO folders inside SYSVOL for your domain.&lt;/P&gt;
&lt;P&gt;So once you have Group Policy Preferences installed in the environment and you have a system capable of editing these in your environment create a new Group Policy and start editing.&amp;nbsp; You should see a new section titled "Preferences"&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_8.png" mce_href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_8.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" border=0 alt=image src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_3.png" width=974 height=242 mce_src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;We are specifically looking for the Scheduled Tasks area.&amp;nbsp; Right click on it and select New Scheduled Task. From this point on it should be self-explanatory.&amp;nbsp; Pick which command line options you want to use from the list before and assign the schedules that you want.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_10.png" mce_href="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_10.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" border=0 alt=image src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_4.png" width=332 height=368 mce_src="http://blogs.technet.com/blogfiles/kfalde/WindowsLiveWriter/HowtoaddextrascheduledscansforFCS_8A44/image_thumb_4.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;So just some thoughts here; you can't in one task schedule item set it to run multiple times per day, so for example if you wanted to run 3 definition updates at certain times of the day you would need 3 different task scheduler items.&amp;nbsp; The only reason I point out that example is that we typically seem to release about AV definitions about 3 times a day from looking at my WSUS history and they typically seem to come in around&amp;nbsp; 2am, 10am, and 6pm so if you wanted to be really .. um precise you could correlate both your WSUS with getting the definitions at the right time from us along with scheduling your clients to get the updates relatively soon after your WSUS server received them.&lt;/P&gt;
&lt;P&gt;Well hopefully this was helpful I'm sure there are other ways as well to accomplish this but figured this would be an easy one to document and implement. Good luck in your scheduling efforts :)&lt;/P&gt;
&lt;P&gt;Kurt&lt;/P&gt;
&lt;SCRIPT type=text/javascript&gt;
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
&lt;/SCRIPT&gt;

&lt;SCRIPT type=text/javascript&gt;
var pageTracker = _gat._getTracker("UA-6340849-1");
pageTracker._trackPageview();
&lt;/SCRIPT&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3141018" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/kfalde/archive/tags/Scheduled+Scans/default.aspx">Scheduled Scans</category></item></channel></rss>