Skip to content

Category: code examples

Powershell: Exporting Active Directory Contacts

This article was been published more than a year ago. The information may be outdated.

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 a list of a given users group memberships from Active Directory

This article was been published more than a year ago. The information may be outdated.

A while back, I showed you how to export a list of all members of a group, as well as all computers, from Active Directory. On a related note, here’s how to export all group memberships held by a single user:

Leave a Comment

Exporting a list of all computers from Active Directory

This article was been published more than a year ago. The information may be outdated.

Last week I covered how you can use the DSQuery command to export members of a given AD Group. This week, on a related note, I will cover how to use the same basic command to export all computer accounts in Active Directoy.

3 Comments

Exporting members of an Active Directory group

This article was been published more than a year ago. The information may be outdated.

A while back, my boss came to me, asking me if I could get him an export of the users that are members of two groups in Active Directory. For the purposes of this blog post, let’s call them “OfflineUsers” and “Software Access”. As it turns out, this is pretty easy to do. Here’s how:

1 Comment

Exporting Sense scripts as clear text

This article was been published more than a year ago. The information may be outdated.

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

This article was been published more than a year ago. The information may be outdated.

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

Taking MailTo to the next level

This article was been published more than a year ago. The information may be outdated.

If you’ve ever written a website in HTML, you are probably familiar with the MailTo-command, used to automatically start a new email message when the link is clicked. However, you can do so much more with the command. Here are some examples:
 

Leave a Comment