Book Review “Microsoft Exchange Server 2013 High Availability – Nuno Mota”

Ex2013

I got an opportunity to Read and Review of book “Microsoft Exchange Server 2013 High Availability – Nuno Mota”. I just finished reading this book and here is my review about this book.

I highly recommend this book for the Admin(s) who have at least basic understating of Exchange 2013 and want to gain more In-depth knowledge about High-Availability of Exchange server in all respects. The book contains only about 200 pages and 8 chapter with really hands-on practical stuff, so you will not get bored while reading this book.

The book covers availability of all the server roles so you can design a highly available messaging environment. A quick snapshot about the changes introduced in high availability of  Exchange 2013 provide a good platform for a reader to refresh and will benefit the reader in building the foundation.

http://www.packtpub.com/microsoft-exchange-2013-high-availability/book

 

Categories: AD\GPO

PowerShell Script To Send Message To Network Computer(s)

August 7, 2012 30 comments

Some time back, we had a requirement of sending a text message to all the client computers to inform about some activity.

I have created a little script which can send a POP UP MESSAGE to the computer(s), and it will simply prompt for input, and at the time of finish it will show you all the statistics.

The script can accept a single computer name or multiple computer names separated with comma (,) or path of txt file which is containing the list of computers.

When you run this script it will ask you for below Input.

Message :- Type your message which you want to send to the computers. Like Hi, “Hello, Update are being installed on your computer, pleas wait” Etc.

Computer Name: – Type the computer name to which you want to send the message, if you type PC1, it will send message to PC1 computer.

You can type multiple computer names separated by the comma “,”. PC1, PC2, PC3 or you can give the path of the txt file which is containing the computer names in below manner

PC1

PC2

PC3

Time :- Type time in SECONDS, till message pop up will remain on computer. After this time, the message pop up will disappear.

Like if you provide 5 in time prompt, the pop up will be remain till 5 seconds on user’s desktop.

===========================================================

You are free to Copy, Modify and use this script,

I welcome your suggestions and views to improve this script code.

============================================================

Copy the below code and save this as “.PS1” extension

———————————————————————————————————————————-   

<# Script to send message to Client computers using MSG utility

It will prompt you to enter the following information.

Message :-  type your message which you want to send to the computers. Like Hi, Hello etc.

Computer Name :- Type the computer name to which you want to send the Message, if you type PC1, it will send message to PC1 computer.

You can type multiple computer names separated by the comma “,”. PC1, PC2, PC3 or you can give the path of the txt file which is containing the computer names in below manner

PC1

PC2

PC3

Time :- Type time in SECONDS,till message pop up will remain on computer. After this time, the message pop up will disappear.

Like if you provide 5 in time prompt, the pop up will be remain till 5 seconds on user’s desktop.

#>

# Variable declaration

$Start_Time       =              Get-Date -Format T

$logFile          =                    ‘Not_Reachable_PCs.txt’

$Message          =               Read-Host -Prompt “Type Your Message Here”      

$ComputerName     =       Read-Host -Prompt “Type Computer Name Here”    

$Time             =       Read-Host -Prompt “Type Time Here” 

$Session          =       “*”

$ComputerName     =       $ComputerName -split ‘,’

if ($ComputerName -match “:”)

                      {

                      $Path = $ComputerName

                      $ComputerName = Get-Content $path

          }

                      $Total = $ComputerName.count 

                                foreach ($Computer in $ComputerName )

                                                {

                                                                if (Test-Connection -ComputerName $Computer -Count 1 -ErrorAction 0)

                                {

                                                                Write-Host “Sending Message to $Computer…….” -ForegroundColor yellow

                                msg $Session /Server:$Computer /Time:$Time $Message

                                                                Write-Host “Message Successfully Sent to $Computer” -ForegroundColor Green

                                                                }

                                                                else

                                                                                {

                                                                Out-File -FilePath $logFile -InputObject $Computer -Append -Force

                                                                                                Write-Host “$Computer is not Reachable…” -ForegroundColor red

                                                                                }

                                                }

                                $Not_Reachable_Count  = @(Get-Content $logFile).count

        $End_Time   =    Get-Date -Format T

        $Minute = (New-TimeSpan -Start $Start_Time -End $End_Time).Minutes

        $Second = (New-TimeSpan -Start $Start_Time -End $End_Time).Seconds

                                Write-Host Start at $Start_Time, End At $End_Time, Took About $Minute Minutes $seconds Seconds

                                Write-Host “Total $Total Computer Processed, $Not_Reachable_Count computers were offline. The list is stored in $logFile” -ForegroundColor white

—————————————————–

Categories: PS Scripts

GPO to configure the remote assistance in win 7 in domain environment

December 28, 2011 Leave a comment

Domain side configuration through GPO

Login in domain controller

Open GPMC.MSC

Crate a new policy

And configure the policy under the computer configuration s below.

Computer configuration – polices – Administrative template – system – remote assistance.

Configure the policy “offer remote assistance”

Click on the show button.

And configure the helper address [for this creates a security group in AD and map you support person IDs on that group] and give the UNC path of that group.

Configure the policy “Solicited remote assistance”

The policy will be like this after this

Configuration from client end,

Check that the Windows remote assistance should be allowed from the local firewall allow list,

This is by default allowed.

On the client computer go to Start RUN – msra /offerra

The below dialog box will be open

Type the ip address/Hostname of the person which you want to connect

And click on next

The user will be prompted to accept the connection and

Now click on the share control and the user will be] prompted to accept the request.

After this you will be able to control the remote system.

Categories: AD\GPO

How to use remote assistance in win 7

December 26, 2011 Leave a comment

How to use remote assistance in win 7

Step 1: Type “assistance” into the search bar of your start menu, then click on the Windows Remote Assistance program link to launch Remote Assistance.

OR

Open Remote Assistance by clicking the Start button , clicking All Programs, clicking Maintenance, and then clicking Windows Remote Assistance.

OR

Type “msra /offerra” on the RUN box.

OR

used the enclosed Shortcut

Step 2 : Click on the “Help someone who has invite you”

Step 3 : Click on the “Advance connection option for help desk”

Step 4 : Type the IP address of the person who you going to help.

Step 5 : After this the user will be prompted to Accepted your connection.

Step 6 :Once user clicks on the yes button, you will be able to see the screen of the user.

Step 7 : Click on the “Request control”

Step 8 : The user will be prompted to accept you request

Once click on yes, you will be able to work on the user’s desktop.

Categories: Desktop Related

Computer is working slow.

December 26, 2011 3 comments

Computer is working slow.

1. Check the CPU utilization first

· Which process from which user is taking more CPU/Memory

· Check the available memory and CPU utilization from Resource Monitor.

2. Clear the Temp, %Temp%, Prefetch, folder

3. Delete the Unnecessary Tool bars from Internet Explorer

4. Check the Antivirus is installed and updated.

5. All the critical windows Security Patch should be installed

6. Clear the recycle bin

7. Check the Event Viewer for any Critical Application/system event

8. Uninstall all the unnecessary software (Like : Games, Tools

Right click on the My Computer ->Properties ->Advance System Setting ->Advance -> Performance ->setting -> visual Effect -> Adjust for best performance

Increase the Virtual memory also from the advance TAB

Or set it to Control by the system

Go to the Start -> RUN -> MSCONFIG

Click on startup TAB and Clear all the unnecessary programs

And reboot the computer once.

Categories: Desktop Related

Exchange 2010 DB & Single Item recovery

December 7, 2011 2 comments
 
Restore your Exchange 2010 DB backup to a different location using your backup application,
Like in this example I am using Windows backup utility and restoring the backup in my backup drive (G)
Start Windows server backup utility.
Click on recover
Select the location of the backup and click on the next.
Select date of the backup
Select Application in recover type
Select Exchange in Application type.
Choose “Recover to another location ” and choose the location where you want to recover
Now click on the recover
Once done, check the location once for the path of your database.
Check the status of the restored database using below command.
H:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil.exe /mh “G:\Restore\E
_\Program Files\Microsoft\Exchange Server\V14\Mailbox\MDB01\MDB01.edb”
It will show you the result as below.
Now check the consistency of the log files using below command.
H:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil.exe /ml “G:\Restore\F
_\Program Files\Microsoft\Exchange Server\V14\Mailbox\MDB01\E01″
Now you need to make you Data Base in “Clean Shutdown” state to mount it.
Run the below command to replay all the logs to your DB
H:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil.exe /r “E01” /l “G:\Restore\F_\Program Files\Microsoft\Exchange Server\V14\Mailbox\MDB01” /d “G:\Restore\E_\Program Files\Microsoft\Exchange Server\V14\Mailbox\MDB01\MDB01.edb”
You will be received the error as “Operation terminated with error -1216 (JET_errAttachedDatabaseMismatch”
So run the same command with “/i” switch
Now check the consistency of the data base for the clean shutdown state
If it still in “Dirty Shutdown” state then run the “hard repair”
H:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil.exe /p “G:\Restore\E_\Program Files\Microsoft\Exchange Server\V14\Mailbox\MDB01\MDB01.edb”
You will be receive an error, click on ok
Now check the database.
Now it will show you in the clean shutdown state.

Create a “Recovery Data Base” using below command with this existing database and log files.
Run the below command in Exchange management shell
Here, I am using the same EDB & Log files which I recovered from backup.
New-MailboxDatabase -Recovery -Name “RDB01” -Server “EX01” -EdbFilePath “G:\Restore\E_\Program Files\Microsoft\Exchange Server\V14\Mailbox\MDB01\MDB01.edb” -LogFolderPath “G:\Restore\F_\Program Files\Microsoft\Exchange Server\V14\mailbox\MDB01”
Mount this Recovery Database, run the below command
Mount-Database -Identity “RDB01”
Now recover the mailbox which you want to recover.

Restore-Mailbox -Identity subodhuniyal -RecoveryDatabase “RDB01”

This will restore all the emails of the mailbox “subodhuniyal”
Categories: Exchange 2010

Windows 2008 Server Core Activation.

December 5, 2011 1 comment
start /w slmgr.vbs –dli
it will show you the dialog box as below.
Now run the below command to check the Installation ID
slmgr.vbs -dti
Note down this installation ID, now call to the MS local activation center and write down the activation key which consists of eight blocks of six digits you receive in response to punching in the Installation ID.
start /w slmgr.vbs –atp GUID ActivationID
Where ActivationID must be notated as one long 48-digit string.
Run the command to check your licensing information  to confirm that Server Core installation was activated properly.
start /w slmgr.vbs –dli
Do it Without calling to MS


First RUN the below command to check the Activation status.
start /w slmgr.vbs –dli
it will show you the dialog box as below

Now run the below command to enter the product key.
slmgr.vbs – <Your Key>
now run the below command to enter the proxy, if you are using the proxy server co connect the internet
netsh winhttp set proxy <Proxy>
now run the below command.
start /w slmgr.vbs -ato
Categories: Windows Server Core
Noam's scripting blog

"Ready to use" scripts and scripting tips for system admins with detailed walkthroughs/explanations.