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

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: This function will read a picture resource from a url (szUrl) and...

How to set the Windows 7 user account picture programmatically?

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...

How to (re-)set identity column value in SQL Server?

When you use identity columns in SQL server you may have recognized that when deleting all table data your identity value stays at its latest position. Sometimes this is useful, sometimes it is not. Then you need to set this value to your preferred starting point....
Certificate problems with vbscript and xml http calls

Certificate problems with vbscript and xml http calls

May be some of you already got stuck with the problem about xml http calls, vbscript and secured websites with certificate problems – the others surely will… There are some problems occurring right often. For example the host name does not match the...

How to do ‘replaceall’ in VBScript?

As you might know the vbscript replace function does always search only “one round”. Here is an example, what exactly I mean: Lets assume you want to correct the following string by replacing all “double-l’s” by...