Skip to content

Category: code examples

Powershell: Exporting Active Directory Contacts

Some time ago, I needed to have a list of all Contacts registered in Active Directory. Knowing that there are a lot of them (numbering at least eighty), getting the data manually was not a viable alternative, particularly knowing that the same objective can be achieved through Powershell. I eventually came up with a solution. To make following it logically easier, I’m going to include commentary on each step:

Leave a Comment

Exporting Sense scripts as clear text

As part of my studies, I have been “programming” in Sense, a version of Scratch, the graphic programming environment developed at MIT. The programs developed in Sense are stored as .sb-files. Now, the problem is that these files are only readable by the program that made them (and Sense programs are apparently not readable by Scratch). The problem this poses is that I can’t be assured of being able to read the files when, at some point in the future, I might want to.
Luckily, Sense, and presumably Scratch, too, has an export facility, allowing you to export the program you’ve made to clear text. Here’s how:

Leave a Comment

Deleting a service from the command prompt

Sometimes, as an administrator, you will need to remove a service from Windows. This can be because it is malfunctioning, and reinstalling the software it came with does not solve the issue, or because an uninstall of the software it came with does not solve the actual problem. Whatever the cause, removing a service takes a little bit of legwork before you can get to the actual removal of it.
In order to remove a service, you need to know what name Windows uses to refer to it. This can be found as follows:

Leave a Comment

Controlling the version of Java installed

Every so often, I encounter computers that, among other things, have very specific prerequisites. For SAP CRM and Mobile Sales, more often than not, a specific version of Java should be installed. If it isn’t, problems ensue. Now, while you’ll always have the option of finding out what version is installed through the control panel, there is a much quicker way.

Leave a Comment