Wednesday, August 14, 2013

Exchange 2010 Create Mailbox Database Script

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.

image

<#==========================================
# 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)

 

Friday, July 26, 2013

Activation Windows 2012

 

If you are wanting to activate your windows 2012 server, perhaps you need to change the installed product key there is real fast and easy way to accomplish the task.

Changing installed key

Open elevated command prompt PS or CMD on the server and type below command

slmgr –upk

image

Uninstalled product key successfully

Now lets install the correct product key

slmgr –ipk  XXXXX-YYYYY-ZZZZZ-OOOOO-LLLLL

 

image

 

Now

Slui.exe

 

image

you are done

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)

Thursday, July 18, 2013

Failed to determine the mount status of the active database copy

 

Issue failed to mount the database , Database can't be mounted on server.

Failed to determine the mount status of the active database copy. Verify that the underlying cause of the error has been corrected before attempting to mount the database. The error can be ignored and the mount allowed if Mount-Database is issued with the -Force switch

image

On the problem server open services.msc  console

image

Find cluster services and re-start

image

You could also use PS, to find out the service name

Get-Service |more

 

image

image

Once you figure out the service name

Restart-Service ClusSVC

image

Try to mount the DB after successful re-start of the cluster service

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

Monday, July 1, 2013

MVP for another Year and many thanks to all of you guys !!!!

I have received renewal e-mail one more year as Microsoft Exchange server MVP. First and most important, I would like to give my deepest thanks to all my visitors, students and friends  for not leaving me alone throughout my journey. Your  positive feedback is what keeps me going each year.

I could not have done it without you and you THANKS and many THANKS. As Market and technology changes so fast, Exchange server remains one of the most critical application in IT business.

I will continue to share my knowledge and experience with you guys and I do need your feedback and support.

Again, thank you so much I greatly appreciate everyone’s support.

image

Best Regards,

Oz Casey, Dedeal