Archive for July, 2009

How to discover properties for Active Directory user accounts

There are times when a network admin or developer needs to access certain properties of Active Directory user accounts, and some of the properties may not visible in the MMC console. But how do you know which properties and methods are available for the User object in AD? It can be quite difficult to find documentation on this topic, but there is a site on MSDN which lists all methods and properties for the IDSUser object available through ADSI for access through scripts and applications:

http://msdn.microsoft.com/en-us/library/aa746340(VS.85).aspx

What this section does not tell you is what are the types of these fields – string, array, etc. For example, the Description field is not a string, it’s a an array of strings. If you try to access an array field with a script that uses a string variable, it will inevitably fail.

How do you find that out? You can find it out by running WMI CIM Studio on your server. Download it here:

http://www.microsoft.com/downloads/details.aspx?familyid=6430F853-1120-48DB-8CC5-F2ABDC3ED314&displaylang=en

Install WMI CIM studio on your Windows Server machine and connect it to the following namespace on your domain controller:

\\YOUR_DOMAIN_CONTROLLER\root\directory\LDAP

When connected, navigate to this location:

DS_LDAP_Root_Class > ds_top > ads_person > ads_organizationalperson

The user properties and their corresponding types will be listed in the right pane.

Microsoft Loopback adapter on VirtualPC

I finally figured out a problem with my SharePoint development image on VirtualPC. Ever since I configured it (again) a few weeks ago, I could not establish network communication between the virtual machine and the physical host. I configured the Microsoft Loopback adapter as described in various posts on the Net (such as this one, but I stillcouldn’t connect.

I stumbled on the solution earlier today. It turns out, you need to install Virtual Machine Additions for VirtualPC, and this is done while the virtual machine is running. The VMA appears as a mounted CD in the OS, and you need to run the Setup to install the additions. After I installed them, I was able to connect to my physical host.

WSS 3.0 and MOSS 2007 update install order

Chandima Kulathilake has a good post on his blog about Service Pack 2 for SharePoint, which includes the binaries install order. Here’s an excerpt from http://www.chandima.net/Blog/archive/2008/10/29/sharepoint-service-pack-2-is-coming-are-you-ready.aspx:

Binaries install order

1. The 2007 Microsoft Office Servers Service Pack 1

2. The Windows SharePoint Services Infrastructure Update x86 x64

3. The Microsoft Office Servers Infrastructure Update x86 x64

4. KB 953397: Excel Server Security Update x86 x64

5. KB 955586: Document Lifecycle Workflow Update

6. August Cumulative Update for Windows SharePoint Services 3.0 (Global)

7. August Cumulative Update for Microsoft Office Servers

Note: As of this posting, the latest Cumulative Update was released on June 30, 2009. Here’s the URL: http://support.microsoft.com/kb/971538

Creating search scopes in MOSS 2007

I was setting up custom search scopes for the intranet project I’m working on, and I found this post by Sanjaya very useful. Nicely organized, with step-by-step instructions. Great job, Sanjaya!

http://sharepointsearch.com/cs/blogs/sanjaya/archive/2009/06/12/create-and-configure-a-scope-to-return-only-documents-in-search.aspx


RSS Information Week Headlines

  • An error has occurred; the feed is probably down. Try again later.

RSS SharePoint Team Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS InfoPath Team Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Joel Oleson Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Susan Hanley’s KM Blog

  • An error has occurred; the feed is probably down. Try again later.

Blog Stats

  • 348,115 hits