It has a
maximum value of 10,000. To return all records, set the value to Unlimited . This parameter can only
be set when used with the Recurse or GetChildren parameters.
The Recurse switch parameter makes the cmdlet return the folder specified in the Identity parameter,
as well as all of its children.
The Identity parameter, by default, shows folders in the IPM_Subtree , shown in Figure 5 - 5 .
To work with the system folders, specify Non_IPM_Subtree as the identity. (See Figure 5 - 6 .)
Creating and Removing Folders
Most often, creating folders is done with Outlook. But, there are times when folders need to be created
administratively. The cmdlet to create folders is New-PublicFolder :
New-PublicFolder -Name < String > [-DomainController < Fqdn > ] [-Path
< PublicFolderIdParameter > ] [-Server < ServerIdParameter > ]
[ < CommonParameters > ]
Currently, it is only possible to create mail/post type folders using the New-PublicFolder cmdlet. Only
the Outlook client can create calendar, contact, and other folder types.
Chapter 5: Public Folders
151
Figure 5-6
Figure 5-5
Part I: PowerShell for Exchange Fundamentals
152
The following shows how to create a new folder called HR under the departments folder:
New-PublicFolder -Name HR -path \departments
By default, new folders inherit the settings of their parent.
Pages:
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249