howto

How to copy group membership between Active Directory users

Categories:

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:

Remove empty lines from a file with PowerShell

Categories:

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

PowerShell Get-WmiObject with a variable in filter

Categories:

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.

How to disable the Windows Firewall on Server 2008

Categories:

If you're wondering "Should I turn off the Windows Firewall service to disable the Windows Firewall?" The answer is NO!

How to Exclude Yourself from Emails you send to a Distribution List in Outlook

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:

List files and paths in a directory tree (including files in subdirectories)

Categories:

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.

How to setup Loopback Port Forwarding on OpenWRT Kamikaze

Categories:

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.

How to Automatically Create Outlook user Profiles when a User Opens Outlook

Categories:

  1. Create an Outlook PRF file. Use the Office 2003 Resource Kit.
  2. 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"=-

How to setup WDS on OpenWRT Kamikaze

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.


This thread is how I found out: http://forum.openwrt.org/viewtopic.php?id=19037

Pages

Subscribe to RSS - howto