﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>New Boundary Support Forum / Prism Deploy &amp; Prism Pack / Configuration Group Rulesets  / Populate Based on Time / Latest Posts</title><generator>InstantForum.NET v4.1.3</generator><description>New Boundary Support Forum</description><link>http://www.nbtnet.newboundary.com/forum/</link><webMaster>support@newboundary.com</webMaster><lastBuildDate>Thu, 17 May 2012 06:34:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Populate Based on Time</title><link>http://www.nbtnet.newboundary.com/forum/Topic62-7-1.aspx</link><description>This worked.  Thank you.</description><pubDate>Wed, 26 Nov 2008 16:57:19 GMT</pubDate><dc:creator>martyy</dc:creator></item><item><title>RE: Populate Based on Time</title><link>http://www.nbtnet.newboundary.com/forum/Topic62-7-1.aspx</link><description>The following should work, give it a try (ignore line wrapping):&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;&lt;FONT color=#000000 size=3&gt;IF ("%PT_Month%"="10") AND ("%PT_Date%" = "29" ) AND ("%PT_HOUR%" &amp;gt;= "16") AND ("%PT_HOUR%" &amp;lt; "17")&lt;BR&gt; &lt;SPAN style="mso-tab-count: 1"&gt;           &lt;/SPAN&gt;/Run &lt;/FONT&gt;&lt;A href="file://server/o2k7ProPlus/setup.exe"&gt;&lt;FONT size=3&gt;\\server\o2k7ProPlus\setup.exe&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#000000 size=3&gt; /config &lt;/FONT&gt;&lt;A href="file://server/o2k7ProPlus/ProPlus.WW/Config.xml"&gt;&lt;FONT size=3&gt;\\server\o2k7ProPlus\ProPlus.WW\Config.xml&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#000000 size=3&gt; /adminfile &lt;/FONT&gt;&lt;A href="file://server/o2k7ProPlus/ProPlus.WW/ProPlus-Desktops.MSP"&gt;&lt;FONT size=3&gt;\\server\o2k7ProPlus\ProPlus.WW\ProPlus-Desktops.MSP&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT color=#000000 size=3&gt;   &lt;SPAN style="mso-tab-count: 1"&gt;         &lt;/SPAN&gt;/IP "&lt;/FONT&gt;&lt;A href="file://server/DeployPackages/Office2007RunFlag.pwc"&gt;&lt;FONT size=3&gt;\\server\DeployPackages\Office2007RunFlag.pwc&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;" /Always&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;ELSE&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;&lt;FONT color=#000000 size=3&gt;/IP "&lt;/FONT&gt;&lt;A href="file://server/DeployPackages/Office2007NotRunFlag.pwc"&gt;&lt;FONT size=3&gt;\\server\DeployPackages\Office2007NotRunFlag.pwc&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;" /Always /AfterPrompt&lt;BR&gt;ENDIF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;</description><pubDate>Tue, 18 Nov 2008 23:58:20 GMT</pubDate><dc:creator>New Boundary Support</dc:creator></item><item><title>RE: Populate Based on Time</title><link>http://www.nbtnet.newboundary.com/forum/Topic62-7-1.aspx</link><description>My fault for posting in the wrong sub-forum.  But here I go again doing it.&lt;/P&gt;&lt;P&gt;My question is how can we do this with a .PTS ?  I can make it working nesting IF's but it looks ugly.  Can I get the first 4 lines of the script below into 1 line?&lt;/P&gt;&lt;P&gt;Ex. This example checks for specifc date then the time window and executes the Office2k7 custom setup then also runs a package which only adds a registry entry that states the script was run in time window alotted.  If the script is not run in the time window then a different package is installed that sets a registry value and lets the user know the office install will retry again later.&lt;/P&gt;&lt;P&gt;If %PT_MONTH% == "10"&lt;BR&gt; If %PT_DATE% == "29"&lt;BR&gt;  If %PT_HOUR% &amp;gt;= "16"&lt;BR&gt;   If %PT_HOUR% &amp;lt; "17"&lt;BR&gt;   /Run &lt;A href="file://\\server\o2k7ProPlus\setup.exe"&gt;\\server\o2k7ProPlus\setup.exe&lt;/A&gt; /config &lt;A href="file://\\server\o2k7ProPlus\ProPlus.WW\Config.xml"&gt;\\server\o2k7ProPlus\ProPlus.WW\Config.xml&lt;/A&gt; /adminfile &lt;A href="file://\\server\o2k7ProPlus\ProPlus.WW\ProPlus-Desktops.MSP"&gt;\\server\o2k7ProPlus\ProPlus.WW\ProPlus-Desktops.MSP&lt;/A&gt;&lt;BR&gt;   /IP "&lt;A href="file://\\server\DeployPackages\Office2007RunFlag.pwc"&gt;\\server\DeployPackages\Office2007RunFlag.pwc&lt;/A&gt;" /Always&lt;BR&gt;   Else&lt;BR&gt;   /IP "&lt;A href="file://\\server\DeployPackages\Office2007NotRunFlag.pwc"&gt;\\server\DeployPackages\Office2007NotRunFlag.pwc&lt;/A&gt;" /Always /AfterPrompt&lt;BR&gt;   EndIf&lt;BR&gt;  Else&lt;BR&gt;  /IP "&lt;A href="file://\\server\DeployPackages\Office2007NotRunFlag.pwc"&gt;\\server\DeployPackages\Office2007NotRunFlag.pwc&lt;/A&gt;" /Always /AfterPrompt&lt;BR&gt;  EndIf&lt;BR&gt; Else&lt;BR&gt; /IP "&lt;A href="file://\\server\DeployPackages\Office2007NotRunFlag.pwc"&gt;\\server\DeployPackages\Office2007NotRunFlag.pwc&lt;/A&gt;" /Always /AfterPrompt&lt;BR&gt; EndIf&lt;BR&gt;Else&lt;BR&gt;/IP "&lt;A href="file://\\server\DeployPackages\Office2007NotRunFlag.pwc"&gt;\\server\DeployPackages\Office2007NotRunFlag.pwc&lt;/A&gt;" /Always /AfterPrompt&lt;BR&gt;EndIf</description><pubDate>Thu, 30 Oct 2008 10:56:50 GMT</pubDate><dc:creator>martyy</dc:creator></item><item><title>RE: Populate Based on Time</title><link>http://www.nbtnet.newboundary.com/forum/Topic62-7-1.aspx</link><description>Yes, you can do that with a rule like this:&lt;/P&gt;&lt;P&gt;(("%PT_HOUR%" &amp;gt;= "01") AND ("%PT_HOUR%" &amp;lt; "08")) AND (("%PT_Date%" = "29" ) AND ("%PT_Month%"="10") AND ("%PT_YEAR%"="2008"))</description><pubDate>Wed, 29 Oct 2008 18:49:42 GMT</pubDate><dc:creator>New Boundary Support</dc:creator></item><item><title>RE: Populate Based on Time</title><link>http://www.nbtnet.newboundary.com/forum/Topic62-7-1.aspx</link><description>I know this is really old, but how would someone go about doing this?  It seems the scripting language does not allow the use of "AND" in a statement.&lt;/P&gt;&lt;P&gt;I would like to run a script but make sure it only runs between a specific time on a specific date.&lt;/P&gt;&lt;P&gt;Any thoughts?</description><pubDate>Tue, 28 Oct 2008 17:12:56 GMT</pubDate><dc:creator>martyy</dc:creator></item><item><title>Populate Based on Time</title><link>http://www.nbtnet.newboundary.com/forum/Topic62-7-1.aspx</link><description>Build a Rule based on Prism's variable %PT_HOUR% which resolves to the current hour in military time (00-23). Use this Group to assign Tasks that should only be distributed at certain times such as non-business hours. For example, to create a Configuration Group that populates when the computer time is between 1 a.m. and 6 a.m., create the following Rule &lt;P&gt;("%PT_HOUR%" &amp;gt;= "01") AND ("%PT_HOUR%" &amp;lt; "06")&lt;/P&gt;</description><pubDate>Fri, 09 Jan 2004 16:49:00 GMT</pubDate><dc:creator>Guest</dc:creator></item></channel></rss>
