If you like to create Exchange 2010 database here is real simple script will help you or your helpdesk to get the work done.
Simply run the script and fallow the directions, enjoy.You can copy and paste the script in notepad and save it as “Create_MBDataBase_V2.ps1” or give it any name you like, or simply download and run it.
<#========================================== # Created with: NotePad # Created on: 8/1/2013 9:21 AM # Created by: Oz Casey Dedeal # Organization: ZTEKzone # Filename: ZTEKzone_Create_MBDataBase_V2.ps1 #==========================================#> Write-Host `tZTEKzone Create DataBase Script.`n -Fore Red;start-Sleep -Seconds 1 Write-Host `t We will need to mount the DB after creating it.`n -Fore Yellow;start-Sleep -Seconds 1 Write-Host `t You need to be assigned permissions before you can perform this procedure or procedures.`n -Fore Magenta;start-Sleep -Seconds 1 # This is Where we Provide More Details $SName = read-host "Enter The Name for DB Server, like ( e1 ) " $DBName = read-host "Enter The Name for Your Database, like ( db15 ) " $EDbfp = read-host "Enter The DB Path , like ( E:\DatabaseFiles\MP1\ )" $Lfp= read-host "Enter Log Path for Recovery , like ( E:\LogFiles\MP1\ )" New-MailboxDatabase -Name $DBName -Server $SName -EdbFilePath "$EDbfp\$DBName\$DBName.edb" -LogFolderPath "$Lfp\$DBname.logs" Write-Host `tI will mount the DB now .`n -Fore Yellow;start-Sleep -Seconds 2 Get-MailboxDatabase $DBName | Mount-Database Write-Host `tHang on I am working on it.`n -Fore Yellow;start-Sleep -Seconds 3 # We are done Write-Host `tI am done now.`n -Fore Red;start-Sleep -Seconds 1 Write-Host `tUse Get-Help -Examples.`n -Fore Yellow;start-Sleep -Seconds 1 Write-Host `tTo Learn More About PowerShell.`n -Fore Red;start-Sleep -Seconds 1 Write-Host `tUse Get-Help -get-MailBox -Examples.`n -Fore Yellow;start-Sleep -Seconds 1 Get-MailboxDatabase $DBName | Mount-DatabaseWrite-Host `tWe are done, we will exist now!!!.`n -Fore Yellow;start-Sleep -Seconds 1 |
Download the script from here
Respectfully,
Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
http://telnet25.wordpress.com/ (Blog)
1 comment:
Hi,
Increase response rates and return on investment by selecting our highly targeted and verified Australia B2B Email Lists of prospects from our business.
Indutry Wise Email Database
Technology Wise Email Database
Country Wise Database for USA
State Wise Email Database
Post a Comment