Comparing attributes of objects in Active Directory

by Shijaz Abdulla on 13.07.2008 at 10:15

This is more a Microsoft Word tip rather than an Active Directory tip. In essence, it shows one of the many methods to compare values of all attributes of two different objects in Active Directory, or of the same object in a "before-after" comparison scenario – to track changes.

In this example, we will try to do a before-after analysis of a single user object to track changes that have happened to the attributes of the same user object.

First, I dump the LDF file for the user that I want to track changes for, before I make the changes using the LDIFDE tool.

LDIFDE -f user_before.ldf -d "CN=User Jones,OU=Test Users,DC=Domain,DC=local

Then, I make the changes to the attributes. In this case, I am moving the user’s mailbox from an Exchange 2003 server to an Exchange 2007 mailbox server.

Once again, I dump the LDF for the same user after I’ve done the operation.

LDIFDE -f user_after.ldf -d "CN=User Jones,OU=Test Users,DC=Domain,DC=local

Now I have two LDF files, which I want to compare. Microsoft Word has a pretty cool compare feature that shows you what exactly has changed in red. Also, you get to see both the files in two small windows and the changes in a separate window, and they all scroll together!

Simply open (or paste) the two files in Microsoft Word as separate documents. Then, open up the Review toolbar tab, and choose the Compare option.

image 

Here’s a screenshot.

DPM 2007 error 31008 when creating Protection Group

by Shijaz Abdulla on 01.07.2008 at 16:58

I was trying to create a protection group in System Center Data Protection Manager 2007 to protect SharePoint Server 2007.

I followed the protected computer prerequisites documentation and made sure the following were done:

  1. Installed KB940349 on the SharePoint front end server.
  2. Installed KB941422 – Update for WSUS 3.0. After installing this KB, I had to run the SharePoint Configuration Wizard.
  3. Start the VSS Writer service on the WSS server as per this article.
  4. Make sure the back end SQL Servers are running SQL Server 2005 with Service Pack 2.

I followed all these steps as per the prerequisites document. However, I still got the following error:

image

This item cannot be protected because some prerequisite software is missing. Ensure that all prerequisite software is installed and then protect this item (ID: 31008). Click Help to view the list of prerequisite software for the selected item.

The problem was solved when KB940349 was installed on the backend SQL Server as well. All servers were restarted after installing this update. Then I went to the Management tab on the DPM 2007 console and selected Refresh Information from the Actions pane.

On returning to the Create Protection Group wizard, the error was gone.

10 bad email habits

by Shijaz Abdulla on 13.05.2008 at 13:03

EHLO!

outlook-icon This is a list of ten bad email habits that I’ve come across. Take a look and see if you find yourself doing some or all of these.

If you’re like me, and you can’t stand the sight of ol’ SMTP being abused, I’ve included some tips on how to teach the abuser a lesson :) . This is just my list of email habits, feel free to add more by posting comments.

  1. Misusing the CC field – Type 1
    Some people think that if they CC somebody’s boss on every email message requesting action, they can get a quicker response. For something that’s really critical or important, this is good. But CCing the boss on every diminutive email request is just too much. Too many such “CC” e-mails to the sender’s manager is annoying for the manager too, and the manager might eventually stop reading emails from you (or even worse, administer a quick issue of the DEL key) every time you send a message. Your email eventually loses importance might get ignored even when it really is urgent. In the IT world, we can even see users doing this for things as trivial as getting access to a shared folder on the file server.

    What can I do?
    If you are the recipient, do not give the sender an impression that you are expediting on the sender’s low-priority request just because your boss is CC’d on it. Give priority to those other low-priority requests that have been directly sent to you by others and action them first (even if they came after the abuser’s email). If you can afford to do it, action this particular email request at the end of the day. When you reply to this sender, do not CC your boss.

  2. Misusing the CC field – Type 2
    And there are some other senders, who mark a CC to every son of Adam whenever they send an email message. If the motive of the email is to advertise about an achievement of the sender (often in a subtle way), this is perhaps done to show the world that the sender is worth his salary. If the motive of the email is to point out a fault concerning one of the recipients, then this most likely shows arrogance on part of the sender.

    What can I do?
    If the motive of the email is to communicate something which does not directly concern you – it is best to ignore it – if you can’t take it any longer, pick up the phone, and ask the sender nicely to stop marking you on such emails. If several of the recipients do the same thing, the sender will gradually come to terms with the idea. If the motive of the email is genuine and if you need to respond to it, make sure you remove all the unnecessary recipients after hitting ‘Reply to all’. This will reduce the number of recipients in the remaining part of the thread, and most likely prove a point to the sender.

  3. BCC
    The BCC field is a mistake. It shouldn’t have been there in the first place.
    Users, be aware that, upon request of the management, your email administrator can and will be able to determine whom you are marking on BCC.
  4. Responding when you are angry/frustrated
    This can make things very ugly. There is no worse feeling than wishing that you had never sent an email – two hours later. Think twice before typing an email. This is going to be a permanent record in the pages of history. Think of email like a gun. Once you pull the trigger (hit Send), there is no turning back.

    What can I do?
    Do not hit ‘Reply’ as soon as you finish reading a provocative e-mail. Sit back, relax, take a deep breath and reply later when you are ‘yourself’ again.

  5. Using email instead of the phone
    Using the phone for minor things can be faster than sending an email. Some people tend to think that sending an email increases the priority of the matter. However, in the real world, people are not always glued to their Outlook and may not (or choose not to) see your message till you call them :) .

    What can I do?
    Accept the fact that email is not a replacement for the telephone. Period.

  6. Read receipts
    A read receipt is a cool feature designed with a purpose – it tells the sender when and if you have read the message. So, use it! Some people (usually managers) do not like to send read receipts when they receive email. The justification might be “who is this guy to ask me if read my email?!”. On the other hand, some people configure Outlook to always ask for a read receipt on every email they send. That’s a terrible waste of a good email feature.

    What can I do?
    Respond positively to all read receipts. Avoid configuring Outlook to automatically request read receipts for every email you send. It is annoying!

  7. Overdoing the Out-of-Office reply
    Out-of-Office reply messages are really cool too. They let the sender know that you’re not in town so they need not expect an immediate reply. It can also be used to direct the sender to contact someone else. However, some people use the Out-of-Office to write essays to explain at great lengths what they are up to and what’s missing in the organization because they are gone. I guess this is done by some users to show the boss (and everyone else) that they are taking care of a lot of responsibilities – the work of four men, etc. Oh please!

    Example of a good Out-of-Office message:

    Dear Sender,

    I will be out of office from May 27th, 2008 to June 26, 2008 and I will be having limited access to my email during this period. For any urgent matters, please contact Mr. Humpty Dumpty on 050-123-456 or email him on hdumpty@mycompany.com

    Regards,
    Yankee Doodle


    Example of a bad Out-of-Office message:

    Dear Sender,

    I will be on vacation at a beach resort in Hawaii from May 27th, 2008 to June 26, 2008. I will be having limited access to my email during this period.
    Please contact the following people during my absence:

    For matters concerning cabbage and cauliflower, please contact Jack Thompson.
    For reporting rotten cauliflower, please contact Charlie Brown.
    For issues related to onions and garlic, please contact John Smith.
    For issues related to onions without leaves, please contact Charlie Brown.
    For issues related to onion skin, please contact Jack Thompson.
    For anything related to vegetables, please contact John Smith.
    For queries related to legumes, please contact Charlie Brown.
    Anything else related to food that grows on plants, please contact Jack Thompson

    Regards,
    Show-Off Jones

    What is this? An IVR system? The sender could have also added one more line – “If you are confused, wait till I come back, because I’m THE MAN“.

  8. Empty Meeting Requests
    If you send a meeting request, you are requesting time from other people – which is valuable. Make sure you have a darn good reason for throwing a meeting and mention it in your request. Write a brief note on the meeting – use the OARRs rule: Objective, Agenda, Roles and Responsibilities. There’s nothing more ridiculous than receiving an empty meeting request and you end up reaching the venue wondering what the whole meeting is about. And when you reach there, you find other attendees in your very same, clueless, sorry situation.
  9. Using c
    razy shortcuts and too many smileys
    Using abbreviations like ASAP, FYI, FYA are well-accepted and good. Avoid using words like ‘coz’, ‘bcz’, ‘pls’, ‘thx’, ‘thnx’, ‘LOL’, etc. These might be good to use in a chat session, but not in a formal email message. Also make sure your email is well-punctuated and easy to read. Do not use more than one smiley per formal message. Read your mail once to see if it makes sense and run a spell check before hitting ‘Send’.
  10. Sending chain mail
    Sending a few impressive emails is good and keeps cheer in the workplace. It also helps build conversation at the water cooler and in the coffee room. But please don’t overdo it. Do not keep sending every trash that you receive from the internet – especially the ones that ask you to ‘send this message to 500 people in 3 days otherwise your momma’s gonna die’.

Hope you enjoyed this post. Let me know if you have come across more email habits by posting a message below.

Great free tool for checking ISA Server access policies

by Shijaz Abdulla on 01.05.2008 at 10:53

Here’s a great tool that lets you find out if a particular user’s access to a resource is affected by ISA and by what rule:
http://sync-io.net/ISAAccessChk.aspx

As with all third party tools, Microsoft does not provide you with support for this tool.

How to understand an Exchange Server 2007 NDR

by Shijaz Abdulla on 26.04.2008 at 19:52

Here’s one for users and IT support personnel who sometimes have problems understanding what exactly an email non-delivery report (NDR) is trying to convey. Messaging experts, please excuse.

In Exchange Server, all NDRs returned to the sender appear to come from the local Exchange Server of your organization and not from the remote recipient’s mail server – even if the problem is at the receiving end. If the mail is received at the remote server and an error occurs during further re-routing/relaying, then the NDR might not appear to come from your organization’s Exchange Server. The NDR is formatted in an easy-to-read email message by the Exchange server in your organization and is sent back to the sender.

So, how easy is it to understand an NDR?

At first sight of the new, well-designed NDR of Exchange Server 2007, most users and non-email administrators tend to think that the problem is always on the local Exchange Server. To add to the confusion the NDR contains the words “Sent by Microsoft Exchange Server 2007″ and “Generating server: “.

Here are some tips:

  • The text marked in blue is not what’s important. It will always show YOUR organizations edge transport server – unless the error occurred at a subsequent mail re-routing operation at the destination.
  • Pay attention to the part that I’ve marked in red. The part labeled (1) is more important. It gives you an overview of what’s wrong – but need not always give you the full picture.
  • The part labeled (2) is the server on which the error occurred. If this doesn’t look like one of the servers inside your organization, the problem is most likely not at your end.
  • The part labeled (3) is the error reported by the server mentioned in (2).
  • Part (4) shows the flow of the message between various servers both within and outside your organization. All it takes is a little effort to understand what’s going on.
  • Trust your email servers :) . Don’t always think the problem is at your end, even if it looks like your server is reporting the error. Make an earnest attempt and apply some educated logic to figure out where the problem lies.

The more users you train on how to read NDRs the lesser helpdesk calls you will get. I’ve seen that sometimes very simple NDRs like the following get escalated all the way to the email administrator as an “email problem”:

Your message did not reach some or all of the intended recipients.

Subject: RE: Acquisition of Yahoo Sent: 4/15/2008 11:09 PM
The following recipient(s) could not be reached:
shijaz@2hotmail.com on 4/15/2008 11:09 PM The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.

The solution? Teach the user how to type an email address correctly :) .

POP3 vs. Outlook Anywhere (Exchange RPC over HTTP)

by Shijaz Abdulla on 23.04.2008 at 08:56
The year is 2008 and you might be wondering why I’m making such a post.

This blogger has seen that even in this time and age, some people simply love POP3 and prefer it over better and more secure alternatives. This post serves as an eye-opener to users as well as administrators who are die-hard POP fans.

Some reasons why you shouldn’t use POP

  1. Traditional POP3 (without any secure configuration – which is also the most common way admins configure your Outlook Express) transmits your username and password over the network in plaintext. Any user with malicious intent, can “sniff” your password over the network and get hold of your email. In most cases, the credentials that you use to retrieve mail are the same that you use to send mail, which means the intruder can not only read your mail, but also send mails to other people on your behalf!
  2. Now, relating to the above point, replace the ‘hacker’ with malicious software/spyware/virus on the PC of a legitimate user on your network. The malware can do the sniffing and use the credentials to inject spam into your organization, as well as the rest of the known universe, pretending that its YOU the POP user who is sending the spam.
  3. All your emails are dumped to your PC from the server. What if you’ve been using POP for the past 5 years and your PC decides to crash – and you have no backup.
  4. What if your PC doesn’t crash, but your mail folders get corrupted – quite common with many POP3 clients.
  5. What if you want to access your received emails from some place else and you do not have your PC with you. Of course, for points 3, 4 and 5, you could leave a copy of your mails on the server – but what’s the point in sticking to POP3? – read on!
  6. For some users, their email might seem very secure when it’s sitting on their own PC and nowhere else. I have news for you. The moment someone else sits on your PC, kiss privacy goodbye. A knowledgable user can open password protected folders. An additional point to ponder: SMTP traffic on the internet is not encrypted by default. It is most likely that your sensitive email is flying about cyberspace in plain text anyway!
  7. If you travel to a partner/client’s office with your laptop, accessing your mailbox via POP3 might require intervention of their network administrator if POP is not already open on their firewall – or you may require some sort of firewall client.
  8. No access to your company’s Address Book.

Some reasons why you should use RPC over HTTPS instead

  1. Passwords don’t go out in plain text. Just about anybody can’t get hold of your password.
  2. If you use RPC over HTTPS, an SSL session is established between your PC and the server that has your email. The email content reaches you in a secure, encrypted channel.
  3. The email is stored on your server, and (hopefully) a backup is taken every night.
  4. If you use Outlook in cached mode, all you have is an offline copy of the same email – which means its available for your reference even when your PC is not connected to the office network.
  5. If your client PC crashes, or if your Outlook folders get corrupted, your emails are still safe on the server. All it needs is a fixing of your Outlook. (Note: If you archive some of your email on PST – make sure its backed up – or that the organization has a centralized email archiving system in place)
  6. You can access your company’s Address Book and all your contacts, tasks, calendar, etc.
  7. Presence information from Live Communications Server, integration with SharePoint workspaces, etc.
  8. Unlike POP3, Outlook Anywhere uses HTTPS and can be used from any partner network where they allow you to surf the net. No additional config required. :)

Some users need to have more than one Exchange mailbox open at the same time on the same PC (usually executive secretaries). The common excuse is that they cannot configure two Exchange mailboxes on the same Outlook profile.

It is indeed possible to configure two Exchange Server mailboxes on the same Outlook profile. Here’s a tip: In Outlook 2007: Tools –> Account Settings –> Select your Exchange mailbox –> Change –> More Settings –> Advanced tab –> Add –> type the second mailbox name –> OK –> Next…Finish. See this page for more details.

Frequently Asked Questions about being an MVP

by Shijaz Abdulla on 09.04.2008 at 21:32

Microsoft MVP: Independent Experts. Real World Answers.

Time and again, I have been approached by people who are interested in knowing more about the Microsoft Most Valuable Professional (MVP) Program. Some are interested to know Microsoft’s stand on MVPs, others want to be MVPs themselves, and some others are just curious.

I’ve been asked about the MVP program almost everywhere I’ve represented myself as an MVP – workplaces, customer locations, industry events, user group events, job interviews and even at social gatherings.

So I thought its about time I compiled an FAQ (Frequently Asked Questions) on the MVP Program!

Question 1:
I am an MCP. How do I become an MVP?
or
Which exams to pass so that I can become an MVP?
(No, don’t laugh – its the most common question I get)

Answer:
None. You don’t need to pass any exams to become an MVP. The MVP is not a certification. It is an award given annually to selected individuals within the IT community for their outstanding contributions to technology and the community in general. Although MVPs are usually Microsoft certified, there is no reason to have any certification to be considered for an MVP. Read on.

Question 2:
I am an expert and I think I’m too good. Can I become an MVP?

Answer:
Being an expert does not entitle you to become an MVP. An expert who is willing to voluntarily share this knowledge to the community (i.e. other IT professionals/developers/users) is an ideal candidate for the MVP Award.

Question 3:
How do I become an MVP?

Answer:
Better rephrase your question to: “How do I contribute to the community so that I may be considered for the MVP?”

Be prepared for the long haul. Ask yourself the question: “Do I just want to become an MVP so that I can use the MVP title with my name?”. If deep inside, your answer is ‘yes’, then this title isn’t for you.

Question 4:
OK. So how does one contribute to communities?

Answer:
MVPs usually have an in-built passion for sharing knowledge. They feel great when they express themselves. They feel delighted when they radiate their knowledge to peers. MVPs share knowledge by speaking at IT events, running an active user group, maintaining technical blogs and websites, contributing to forums, producing technical webcasts/podcasts, writing books, whitepapers, etc.

The important thing is that it should come from within you – its a mentality to share information voluntarily. I think its second nature to most MVPs. You cannot force yourself to do this – if you do, you might just end up breaking out from the program because you will gradually lose interest.

MVPs also act as an indirect feedback channel to Microsoft. Being extraordinary customers, Microsoft gets a pulse of what customers feel about their products and services.

Question 5:
I am too busy to do some of this stuff. Can I still become an MVP? Is there any shortcut?

Answer:
MVPs are busy people, too. We are normal people with a job, a family and a life. This has got more to do with developing a passion and moving forward with it. There are no shortcuts. MVPs are a select group of experts, handpicked by Microsoft. That’s why there are so few MVPs and thats why all of them are so good!

Question 6:
Do you have any tips for me?

Answer:
Yes. Here are some. These are my views alone – all MVPs need not agree on all points.

1. MVPs have a basic inclination towards Microsoft products and technologies. I mean, we really love the company! And we are crazy about it. Most MVP’s (like me, for instance) will never be able to hear and accept distorted images about Microsoft even when nobody’s looking! We just can’t stand someone talking ill about the company and will defend Microsoft – with educated and professional counter-arguments.

2. Behave yourself. Do not use abusive/insulting language at forums, speaking engagements, etc. You are an alternative face of the company. MVPs are closely associated with Microsoft and they wouldn’t want you to do anything that they would not do.

3. Understand Microsoft’s policies, and study the reasons behind them. Respect the ideals of the company and speak respectfully. Be careful on what you say in public and online in your blog, forums, etc.

4. More at Robert McLaw’s blog.

Question 7:
Does Microsoft pay you? Why do you promote Microsoft for free?

Answer:
No, Microsoft doesn’t pay MVPs. Although MVPs indirectly promote Microsoft products, we do it out of passion for the technology. For most MVP’s, Microsoft technologies are our bread & butter. We are usually specialized on one or more Microsoft products. It’s pure passion. Contribution to communities and securing the MVP status gives us a feeling of achievement.

Question 8:
Does being an MVP help you in your career?

Answer:
Even though a direct monetary gain from Microsoft is absent, the MVP title has significant career benefits. The Most Valuable Professional award stands out in your resumé and MVP’s are in great demand in the industry, especially for positions that require expertise in Microsoft products. The MVP title is a trusted seal that we are known experts in the industry, directly endorsed by Microsoft for sharing knowledge. Speakers who are passionate about sharing knowledge are usually people of good character, personable and well-spoken – which are traits that employers usually desire in employees. Hiring an MVP who participates in public events often indirectly brings fame to the employer. Some MVPs eventually make it into Microsoft too.

Question 9:
Am I too young/old/short/tall/fat/ugly/etc to become an MVP?

Answer:
The MVP Program knows no discrimination, except in the passion to share and the desire to lead. Young and old alike can become MVPs. As Robert McLaws puts it: “DON’T be elitist just because you’ve been in the industry for a while. You won’t be around forever, and someone younger than you will eventually take your place. In this industry, you can be relevant one day, irrelevant the next.”

Update: As of April 2006, MVPs must be at least 18 years of age.
Question 10:
Can I be an MVP for life?

Answer:
No, the award is given annually and is valid only for the year it is awarded. No harm though, in stating publicly that you were an MVP once upon time in 1998. If you are a current MVP and you keep up with your contributions, you may be re-awarded the next year.

Question 11:
Would you like to work for Microsoft some day?

Answer:
Me, person
ally? Yes. :)

How to make an SPF record

by Shijaz Abdulla on 16.03.2008 at 13:06

Sender Policy Framework (SPF) is a mechanism used to help prevent spam. Basically, an SPF record is a record in your organization’s DNS server that announces to the world the IP adddreses from which you normally send out email.

Hence, if another server receives email supposedly from your SMTP domain, the server first checks if the session was established from one of the IP addresses you listed in your SPF record. If not, the message is mostly likely spam.

So how do you define an SPF record. This can get a little tricky. But Microsoft has a wizard that lets you create an SPF record easily. Check it out:

http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/

Product Activation for Windows Server Core

by Shijaz Abdulla on 11.03.2008 at 13:52

Windows Server 2008 Server Core has no GUI. So how do you do the Product Activation for Server Core? How do you check if activation was successful? This post tells all.

To activate Windows:

cscript C:\Windows\System32\slmgr.vbs -ato


To get lots of useful information about the activation:

cscript C:\Windows\System32\slmgr.vbs -dlv

To find out how much time you’ve got (to activate, of course):

cscript C:\Windows\System32\slmgr.vbs -xpr


Output displayed will tell you when the grace period will end.

Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Initial grace period ends 4/20/2008 11:23:28 PM

If you are already activated, -xpr switch will tell you that, too

Welcome to the dark side.

Did you know

by Shijaz Abdulla on 19.02.2008 at 11:02

… that a Microsoft Product Key never contains a the letters I, O and the numbers 0 (zero) and 1 (one). This is probably done to prevent users from getting confused!

< Previous postsNext posts >