How to get some information on Bitlocker using VBScript and WMI?
strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2\Security\MicrosoftVolumeEncryption") Set colItems = objWMIService.ExecQuery("SELECT * FROM...
View ArticleHow to access WMI namespaces on remote computers that require encryption?
When you have a look at my vbscript bitlocker post and try to use it on remote machines you may not get any results but an application eventlog entry similar to this one here: Event Source: WinMgmt...
View ArticleHow 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...
View ArticleCertificate problems with vbscript and xml http calls
May be some of you know the problem with xml http calls, vbscript and secured websites with certificate problems. Better known as error 80072F0D in msxml3.dll: “The certificate authority is invalid or...
View ArticleHow to connect to and read data from Mailboxes, Calendars, … via Exchange Web...
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...
View ArticleHow 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:...
View ArticleHow to display Active Directory stored user account pictures in Windows?
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...
View ArticleHow to change BitLocker recovery password with vbScript?
Related to my last post about how to change BitLocker recovery password from an elevated command prompt here is how you can achieve the same result with vbScript and WMI. This script is from Microsoft...
View ArticleHow to manage GPOs with vbScript?
You can do really really cool stuff with gpos in vbScript. I will show you how to export reports and give you some examples what else can be done going the vbScript way… The Group Policy Management...
View Article