I know that guy

From: [email protected] [mailto:[email protected]] On 
Behalf Of Kelley, Matthew
Sent: Wednesday, May 22, 2013 2:07 PM
To: [email protected]
Subject: RE: [mssms] Powershell update refreshschedule on a collection

Try this:

http://kelleymd.wordpress.com/2013/05/22/sccm-2007-update-collection-refresh-schedule-token/


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Ryan
Sent: Monday, May 20, 2013 4:16 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [mssms] Powershell update refreshschedule on a collection

I haven't been able to find one... If you create the collection with the 
powershell cmdlet, you can use a combination of New-CMSchedule and 
NewCMUserCollection or New-CMDeviceCollection and -RefreshType -RefreshSchedule.

Here was something I wrote to randomize the refresh times when I created a 
large number of collections:

$AddDays = Get-Random -Maximum 7
$AddHours = Get-Random -Maximum 24
$DateTime = (Get-Date).AddDays($AddDays).AddHours($AddHours)
$NewColRefreshSch = New-CMSchedule -RecurInterval Days -RecurCount 7 -Start 
$DateTime
New-CMUserCollection -Name $ColName -LimitingCollectionName "All User Groups" 
-RefreshType Periodic -RefreshSchedule $NewColRefreshSch

Not sure if that will help or not. There isn't a -RefreshType or 
-RefreshSchedule switch on Set-CMUserCollection


On Mon, May 20, 2013 at 2:34 PM, Todd Hemsell 
<[email protected]<mailto:[email protected]>> wrote:
What powershell command updates the refresh schedule on a collection?




**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues


________________________________


DISCLAIMER: This is a PRIVATE AND CONFIDENTIAL message for the ordinary user of 
this email address. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind 1E to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.



Reply via email to