Submitted by northben on Mon, 01/30/2012 - 10:00
Let's say you need to add a new user to all the Active Directory groups of an existing user. It would be painstaking and error-prone to compare group memberships in the AD Users & Computers snap-in. But don't despair: There is an easier way!
First, install the free ActiveRoles Management Shell module for PowerShell from Quest if you don't already have it. Trust me, you'll wonder how you managed Active Directory without it!
Second, run a command like this in PowerShell:
Submitted by northben on Tue, 01/17/2012 - 12:08
Here's a quick way to remove blank lines from a file using PowerShell. This will also remove lines that only have spaces.
(gc file.txt) | ? {$_.trim() -ne "" } | set-content file.txt
Submitted by northben on Mon, 01/09/2012 - 10:14
Let's say you want to use PowerShell's Get-WmiObject commandlet to retrieve a list of files older than a certain amount of time. Here's one way to do it.
Submitted by northben on Fri, 01/06/2012 - 21:18
If you're wondering "Should I turn off the Windows Firewall service to disable the Windows Firewall?" The answer is NO!
Submitted by northben on Thu, 06/23/2011 - 16:39
If you send a lot of emails to distribution lists that you also belong to, it can be annoying and unproductive to move those same emails from your inbox. However, with the Rules feature in Outlook, it is easy to have your computer do this for you.
Here's how:
Submitted by northben on Tue, 12/21/2010 - 08:54
Recently I needed to list all of the files in a large directory tree. Each line needed to include the full path to the file, and I didn't want to include the directories themselves in the list, just the files. Here's how I did it:
dir /a:-d /s /b > files.txt
The dir command, as you probably know, lists files in the current directory, but the default settings are not useful here - it does not include file path, for one thing.
Submitted by northben on Mon, 01/11/2010 - 11:26
If you use OpenWRT and have a server on your LAN, you probably want to setup loopback forwarding. Here's how to do it.
These instructions came from this page. I simply want to explain them a bit more, and confirm that these instructions for loopback forwarding work on OpenWRT Kamikaze.
Submitted by northben on Tue, 09/29/2009 - 14:13
- Create an Outlook PRF file. Use the Office 2003 Resource Kit.
- Then add this .reg file to your users' startup script. Adjust the name and location of the PRF file to your needs.
This will affect Outlook 2003 and Outlook 2007.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Setup]
"ImportPRF"="\\\\server\\scripts\\outlook_settings.prf"
"First-Run"=-
"FirstRun"=-
Submitted by northben on Wed, 06/17/2009 - 00:06
Submitted by northben on Sun, 05/03/2009 - 19:44
If you want to use WDS on your WRT54g router, or other OpenWRT Kamikaze router, you MUST use the 2.4 broadcom version. If you do not see the WDS mode as an option in your wireless radio settings, double check that you are not running the 2.6 version of OpenWRT. The 2.6 version of OpenWRT Kamikaze is not yet compatible with WDS.
Pages