Posts made in August, 2011

How to display user pictures in Outlook, Sharepoint & Co. using Active Directory?

Posted by on Aug 12, 2011 in Active Directory | 0 comments

Newer versions of Sharepoint, Outlook or Office Communicator support showing small user pictures in new mails, contact information or websites using data stored in a user’s object in Active Directory. Even Windows can show your user picture for example on the lock screen or in the start menu. But you need to make some preparations for this feature to work. First at all you need the pictures for your user objects in the directory. You can use ADSI Edit, Powershell or 3rd party software to put pictures in AD. My blog post “How to save a user picture in Active Directory with...

Read More

How to display Active Directory stored user account pictures in Windows?

Posted by on Aug 12, 2011 in Active Directory, VBScript | 7 comments

This topic is little more complex and we’ll need different steps to accomplish this feature. First at all you need the pictures for your user objects in the directory. You can use ADSI Edit, Powershell or 3rd party software to put pictures in AD. My blog post “How to save a user picture in Active Directory with vbScript?” will do this for you using vbScript. Second you’ll need a small application that sets a picture on your harddrive as the user account picture. I tested this only with Windows 7 – so there is no guarantee that this works with other versions too. Why...

Read More

How to save a user picture in Active Directory with vbScript?

Posted by on Aug 12, 2011 in Active Directory, VBScript | 0 comments

Active Directory offers the possibility to save pictures in a user’s object. These pictures can then be used in Outlook, Sharepoint or even self-written applications. Here is how you can do it: Function SavePictureToAdFromUrl(szADsPath, szUrl) Dim objUser, bytesRead, adoStreamRead Const adTypeBinary = 1 Set xml = CreateObject("Microsoft.XMLHTTP") xml.Open "GET", szUrl, False xml.Send If xml.status = 200 Then Set adoStreamRead = CreateObject("ADODB.Stream") adoStreamRead.Type = adTypeBinary adoStreamRead.Open adoStreamRead.Write xml.responseBody...

Read More

How to set the Windows 7 user account picture programmatically?

Posted by on Aug 12, 2011 in C#, Environment, VB.net | 6 comments

Windows 7 offers the possibility to show small user account pictures, for example in the start menu or on the lock screen. Since there is no documented way of setting this picture programmatically here is a solution for developing a small application that can do this for you. You’ll simply need Visual Studio – either with C# or Visual Basic support. You can get your free edition here: http://www.microsoft.com/visualstudio/express. Create a new console application, copy and paste the following source code an build the solution. The resulting application will be able to set the user...

Read More

How to connect to and read data from Mailboxes, Calendars, … via Exchange Web Services and vbScript?

Posted by on Aug 3, 2011 in Exchange Server, VBScript | 16 comments

I offen wondered how I can programmatically read items from mailboxes stored within Microsoft Exchange Server. Some time ago I used Outlook with some macros that accessed the information I needed. But what if Outlook does not run? Or what if the computer crashed – who would logon and start Outlook? Sure you can find workarounds for every problem. But this never seemed to be a ‘cool’ solution to me. In the past few weeks – after I got my Exchange 2010 MCITP – I started to have a look at EWS – Exchange Web Services (available since Microsoft Exchange Server...

Read More