This is my experience on unified communication technologies such as Microsoft Lync, Microsoft Exchange, Lync Telephony and some powershell scripting. I will also try to write about Symantec archiving solution Enterprise Vault and Microsoft SQL.
Wednesday, July 20, 2011
Edit Exchange 2010 Quota Message with HTML format
Tuesday, July 19, 2011
Export owner information of folders into a CSV file by using Power Shell command
I have been in search of getting a command which help me to find out owner of folders in a share. My ideas was to create a report of folder with owner information so that I can send the report to the owners and ask them to clear it off from the share if not required or get back to me with proper justification why they want to keep it there.
I did lot of search in google but nothing turned, I know there is easy way in powershell. [as you may know Power Shell is the tool which will help you to hack windows]
Lets check how I figured it,
- From PS locate the folder.
- type ‘Dir |get-acl’ and enter,
This will list all the folders and files with owner information. - Below command will help you to export the owner information to CSV file.
dir |get-acl |select-object path,owner |Export-Csv test.csv -NoTypeInformation
How to make USB drive as bootable by using Windows 7
Trust me its not a big deal and its too interesting.
OK, lets get started..
- Connect your thump drive/usb Drive to system.
- Run the command prompt as Administrator
- From command prompt type ‘Diskpart’ and press Enter.
- From diskpart prompt type ‘List disk’ and press Enter. This will list all the drives which is connected to the system, from the screen you can find whether the disk you have just connected is detected by system or not.
- Type ‘Select disk 1’ and press Enter. This command will select the disk 1, please get the disk number from ‘list disk’ output.
- Type ‘clean’ and press Enter.
- Type ‘Create Partition Primary’ and press Enter
- Type ‘Select Partition 1’ and press Enter.
- Type ‘Active’ and press Enter.
- Type ‘Format fs=ntfs’ and press enter.
- Type ‘assign’ and press enter to assign a drive letter to the formatted drive.
- Type ‘exit’ and press to exit diskpart.
- Insert windows 7 DVD into drive and from command prompt go to D:\boot
- Type ‘Bootsect /nt60 E:’ and press enter.
In this example the drive is E and please choose drive letter according to your drive letter.
- Close the command prompt by typing ‘Exit’
- Brows Windows 7 Media and copy entire files to the drive E [the drive which we just prepared].
Now boot your system, go to Bios setup and configure the USB as first boot device.
Sunday, July 17, 2011
How to configure connectivity between Exchange 2010 and SAP system
The requirement was to receive mails in SAP but with out publishing SAP domain. SAP team was not ready to do any configuration change and the request was from high level of the Organization. SAP team just want to receive mails which sent to a particular mail address [User] that means they wanted us to receive mails and forward that to a SAP server to a particular port 250xx. The funniest thing is I was not aware that we can change destination port from settings of a ‘send connector’ . Let us check how I did it.
Note;- this method which is mentioned in this article can be used for any destination system where you want forward mail to a particular port.
For getting this happen you have to have some pre-requisites, they are,
1. One user mailbox with proper mail address.
-This is for receive mails. Set forwarder from the properties to the mail-enabled contact. [Pre-requisites 2]
2. One mail enabled contactCreate Send Connector
-This can be used to forward mails to SAP SMTP address.
1. Go the EMC from Exchange 2010 server.
2. Brows through and locate ‘Hub Transport’ under ‘Organization Configuration’
3. Right click on ‘New Send Connector…’
4. Give proper name and click on ‘Next’
note that its recommended to use ‘_’ in the name when you use multiple words in name that will help you when you use EPS
5. From next screen, go to Add dropdown and select ‘SMTP Address Space..’
6. Enter the destination domain/SAP and click on OK.
Note;- Choose proper cost according to your needs, its recommended to use cost 1 if you don’t have more than one connector to SAP.
7. Review the settings that you have just made and click on Next
8. From next screen select ‘Route Mail through the following host:’ and click on Add.
Enter the destination IP address and click on OK
9. Review the settings and click on Next
10. Leave it as default and click on Next
11. By using ‘Add..’ button add the Hub Transport server/Edge Transport server and click on Next
12. Review the settings and click on New
13. Now you are done with creating a send connector. Click on Finish to complete.
Configure send Connector with proper destination SMTP port.
1. Go to EMS from Exchange server 2010.
2. From Shell type below command and press enter.
Note choose the
Get-SendConnector -identity Connector_to_SAP |Set-SendConnector -port 2500
3. Use the below command and make sure that SMTP port address is updated,
Get-SendConnector -identity Connector_to_SAP |fl
Send a test mail and track it, trust me you will be happy to read the track log
Note;- If you are confused somewhere in this article then I request you to write the comment, I will be happy to assist you.
Saturday, July 16, 2011
How to list Full Mailbox Access permission assigned
Today I have came up with a situation to generate report and send to higher management. The higher management needs to have a check on all the mailboxes and find out who else has full mailbox permission on xx mailboxes. I had to do a lot of work to consolidate the report but the PowerShell made my life easier to find the information.
In Exchange 2010 its pretty easy to get Full Mailbox information of a mailbox by using command Get-MailboxPermission. Use proper piping so that you can get what ever the result you are looking for.
Let us check with an examples,
eg.1 Get-mailbox –identity “prajeesh” |Get-MailboxPermission
This example will list who ever having permission on the mailbox of user ‘prajeesh’. This produces a long list of permissions – inherited and assigned explicitly to this mailbox.
If you don’t need the list of users who have permission inherited then you can use filter again. Check example 2.
eg 2. Get-mailbox –identity “prajeesh” | Get-MailboxPermission | where { $_.IsInherited -eq $false }
This example will list only the user who got permission particularly on this mailbox. If there is no user who got access in the mailbox level then you get a blank line.
eg 3. Get-Mailbox -Server “server1” | Get-MailboxPermission | where { $_.IsInherited -eq $false }
This example will help you to find permission on the mailboxes which is hosted on the server “server1”, please replace with the exact name of your sever when you try.
eg 4. Get-Mailbox -Server “server1” |Get-mailbox |Get-MailboxPermission |where {($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq $false)}
Here we get list of users with only “FullAccess” permission
eg 5 Get-Mailbox -Server “server1” |Get-mailbox |Get-MailboxPermission |where {($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq $false)} |Export-Csv Mbxpermission.csv -NoTypeInformation
This example is going export the list to a ‘csv’ file.
You may have question now, how can I export mailbox permission of all users from Exchange 2010 organization. Here you go…
eg 6. Get-Mailboxdatabase |Get-mailbox |Get-MailboxPermission |where {($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq $false)} |Export-Csv Mbxpermission.csv -NoTypeInformation
Friday, July 15, 2011
How to fix 0x80040119 error in outlook
1. Close outlook and OC/Lync
2. Go ‘C:\Program Files\Microsoft Office\Office14’ and run ‘SCANPST’
3. Fro ‘SCANPST’ tool brows and select your .ost file and click on start.
4. Scan will start immediately and show you the progress.
5. Finally the error report will be generated and shown to you. Please make sure that the option for “Make backup of scanned file before reparing” is checked and click on “Repair”
6. Once repair completed tool will be prompted to exit.
7. Open outlook and see the status of the issue.
Note:- if the SCANPST is not helping then request you to download ‘PST File Repair’ tool from below link and try http://www.pstfilerepair.com/download.php.