Strange Names for Groups of Animals

I was recently watching D-News, well, listening, and they mentioned that a group of crows are called a murder. I know many gatherings or groups of creatures have different odd names so I figured I list out the ones I know or could find for reference and trivia purposes. Here goes (some sourced from Wikipedia so if they’re wrong I’ll correct them- speak up!)

There are 249 at last count. Lets see how high we can get this.
List below the break.
Continue reading “Strange Names for Groups of Animals”

Outlook 2011 For Mac Keeps Changing the Exchange Server Address

To update your Exchange 2007 or 2010 server you will need to run the following commands from the Exchange Management Shell and replace the Server running the Client Access Role with your external domain name. These commands update the URL for the Autodiscover service, Exchange Web Services (EWS) and the OWA Web-based Offline Address book respectively.

Before running these commands you will need to check make sure a DNS record exists mapping the IP Address to the Exchange Client Access (CAS) server.

Note: Each of these commands below should be run on a single line in the Exchange Management Shell (EMS):

Set-ClientAccessServer -Identity HostName -AutodiscoverServiceInternalUri https://mail.yourdomain.com/autodiscover/autodiscover.xmlSet-WebServicesVirtualDirectory -Identity "HostName\EWS (Default Web Site)" -InternalUrl https://mail.yourdomain.com/ews/exchange.asmxSet-OABVirtualDirectory -Identity "HostName\oab (Default Web Site)" -InternalUrl https://mail.yourdomain.com/oab

Recycle the IIS Application Pools

Next to make these commands take effect you have to tell IIS to push these changes by recycling the application pools.

  1. Open IIS Manager by clicking Start, then enter inetmgr.
  2. Expand the server and expand Application Pools, then right-click on MSExchangeAutodiscoverAppPool, and select Recycle.

Force Active Directory Sync/Replication With All Partners

From time to time I need to force sync all of my GCs aka DCs. This is a quick way to force everyone to replicate. If you have a lot of GCs this could take a while.

Syntax:
 repadmin /replicate destination_dsa Naming Context /allsources
Example:
 repadmin /replicate server1.test.com dc=test,dc=com /allsources

Destination server Name: server2.test.com
Naming Context: dc=test,dc=com (Domain partition)

How To Add TRIM Support on your Mac SSD

It is possible to do this by hand using the Terminal. It looks ugly but essentially what you’re doing is patching a low-level system file to allow TRIM to function with your SSD.

Just to be on the safe side, back up the file we’re modifying. Copy the following into a new Terminal window and hit Return (the Enter key).

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original

You’ll be prompted to enter your administrative password, so type it in and press Return once more.

Use the following command to modify the kernel extension so that it activates TRIM support.

sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
Important: This code is intended for use on OS X Mountain Lion 10.8.5 or above or OS X Mavericks.

To make the changes take effect, you need to manually refresh the kernel extension cache.

sudo touch /System/Library/Extensions/

Once done, reboot and TRIM should be active.

How To Force SharePoint to Sync with Active Directory

Occasionally I have a user that changes their last name (or we got it spelled wrong) and I need the change to reflect across SharePoint (why SP doesn’t do this by itself I have no idea). In order to aid this process I found this script to force a resynchronize of each instance of the user profile in the user information lists. The script accepts one argument, which is the username to resync in the format DOMAN\User. Create a new powershell file with a ps1 extension and paste the code below into it.

$webapps = Get-SPWebApplication
 foreach ($webapp in $webapps) {
 [string] $login = $args[0]
 $sites = get-spsite -Limit All -WebApplication $webapp
 foreach ($s in $sites) {
 write-host $s.url
 $w = $s.RootWeb;
 $u = get-SPUser -Web $w -limit all | Where-Object {$_.userlogin -eq $login}
 if ($u -ne $null) {
 write-host "`t$($w.url)"
 Set-SPUser $u -SyncFromAD
 write-host "`tUpdated"
 }
 }
 }

After running it, you may get a few errors but you’ll notice their display name and other info is updated.

CentOS to MS Hyper-V Volume Issues

After making an image of a physical linux box (Dell hardware running CentOS), I converted the IMG file to a VDH file and after booting had many issue. One of which was the following error which caused all databases on the respective volume to fail because the volume was in read-only mode.

EXT3-fs error (device hda3) in start_transaction: Journal has aborted

Turns out, the system is telling me that it’s detected a file system/journal mismatch, and it can’t utilize the journal any longer. When this situation pops up, the file system gets mounted read-only. To fix the situation, I had to boot the system (now in the VM environment) in single user mode, dismount the volume and fix it.

I first started by removing the journal from the file system:

# tune2fs -O ^has_journal /dev/hda3

Then I tried to fsck it to correct any possible problems:

# e2fsck -p -f -v /dev/hda3

Unfortunately this lead me to another error: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options).

Ugh. fsck again….I had originally run it without the -f option and it found no errors, yet it refused to mount in read-write mode. So now running it sans the -p option, -f forcing it to check it anyway, seems to have helped- but this time I needed to be present to hit y to every single error. There were hundreds.

Once that finished I ran it again with the -y option to see if it picked up anything and it was clean!

Time to make a new journal which makes the partition an ext3 file system again:

# tune2fs -j /dev/hda3

I can now mount the partition as an ext3 partition:

# mount -t ext3 /dev/hda3 /mnt/fixed

After rebooting the system seems happy once again with no mounting errors. Quick and simple!

The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.

When you use your Windows 7 workstation for heavy network file copying the lan manager server tends to run out of memory. By making the following setting changes you can avoid this and enhance the file copy speeds.
Continue reading “The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.”