Age limit for Exchage 2013 public folders

Hi guys,

I would like to change each one public folders age limits as a default setting but this power shell command cannot work. Some one write to me correct syn.. for this commands....

Get-Content C:\temp\pubfolders.txt  | Set-PublicFolder -Identity  -AgeLimit  -UseDatabaseAgeDefaults: $True

May 11th, 2015 9:28am

Is this a properly formatted csv file? Are the columns named to match the Identity parameter? Also, the AgeLimit parameter does not accept pipeline input, so try this instead:

$test = Import-Csv test1.csv

$test | % {Set-PublicFolder -Identity $_.Identity  -AgeLimit $_.AgeLimit  -UseDatabaseAgeDefaults:$True -WhatIf}

Free Windows Admin Tool Kit Click here and download it now
May 11th, 2015 4:32pm

it is txt file there is no any column in this file there are public folders names get-content command working normal it list all public folder in txt file but set command synx not work.

May 12th, 2015 8:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics