Prev | Current Page 619 | Next

Joezer Cookey-Gam, Brendan Keane, Jeffrey Rosen, and Jonathan Runyon

"Professional Windows PowerShell for Exchange Server 2007 Service Pack 1"

This script has to
# be run by an administrator who is a member of the Exchange Recipient
# Administrators group.
#
# This script checks to see if the user is mailbox enabled and if a
# Public Folder already exists for the user. If not, a folder is
# created named for the user in the default Public Folder database
# specified by the user ??™ s mailbox database. The folder client
# permissions are set to allow the user full control over the folder
# contents, and the user running the script is set as the folder owner.
#
# Usage: newuser-publicfolder.ps1 < mailbox enabled user >
#
# Example: newuser-publicfolder.ps1 user1@exchangeexchange.com
param([string]$user)
# Turn off error reporting to the display
$ErrorActionPreference = ???SilentlyContinue???
#This function validates the user specified
function validateUser
{
$notValidUser = $false
if ($user -eq ??????)
{
$notValidUser = $true
Write-Host -fore yellow ???`nYou must enter a mailbox enabled user account as
input to this script.`n???
return $notValidUser
}
if (!($usermb))
{
$notValidUser = $true
Write-Host -fore yellow ???`nThe account specified is not mailbox enabled or
could not be found in Active Directory.`n???
return $notValidUser
}
if ($usermb.RecipientTypeDetails -ne ???UserMailbox???)
{
$notValidUser = $true
Write-Host -fore yellow ???`nThe mailbox enabled account specified is not a
user mailbox.


Pages:
607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631
Turcja 1 mimre.benton.pl Biuro księgowe Lublin Fundusze Emerytalne petrozawodzkich.waw.pl