Try this:

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


From: [email protected] [mailto:[email protected]] On 
Behalf Of Ryan
Sent: Monday, May 20, 2013 4:16 PM
To: [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 



Reply via email to