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:
Category: code examples
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.
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:
In Sense, you can reference a list to control what your program does. By default, the [line X from_file “file.txt”] references the Sense project folder, but it can reference one…
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:
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:
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.
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:
I frequently make use of bullet-point lists in my blog, and I usually code these in HTML. I like them to stand out a bit. It’s pretty simple to achieve, and here’s how: