Tag: Administration

NTFS folder permissions with PowerShell

***Before we start, I should say that these steps were made on a Windows Server 2008 R2 machine running PowerShell 2.0. I understand there are different switches available to other OSs and PowerShell versions. Changing permissions on the home folders

Posted in Guides Tagged with: , ,

Script to check local machine info

Throughout my career I have noticed issues with build consistency across servers. As this is a recurring and seemingly never-ending problem I tried to find a script that could be run on a bunch of servers to check their configuration.

Posted in Guides Tagged with: , ,

Script to move a machine in AD after adding it to the domain

This is probably the script of which I’m most proud. Although I haven’t used it at many employers, it took a lot of testing to get it working. This script checks the Computers container in Active Directory for machines that

Posted in Guides Tagged with: ,

Script to defrag C: drive

Windows operating systems prior to Vist and Server 2008 didn’t have the functionality of easily scheduling a defrag job from the GUI. Using the script below you can create a scheduled task to regularly defragment your disks. I recommend using

Posted in Guides Tagged with: ,

Script to clear temporary files

This is a script I put together a few years ago, but have ended up using at some point at every employer since. Installing an application (or even just running one) can create lots of temporary files. It’s not unusual

Posted in Guides Tagged with: , ,

Add additional DNS server to Windows Server 2008 Core NIC configuration

An issue occurred at a previous employer whereby a Server 2008 (Core) Hyper-V server had been set up with only a primary DNS server on both NICs. This may have resulted in an issue if the DNS server went down

Posted in Guides Tagged with: , ,

Managing Exchange 2007 and 2010 Servers from the same machine

As the Exchange 2007 and 2010 technologies are markedly different, you can only manage Exchange 2007 servers from the Exchange 2007 Exchange Management Console (EMC) and Exchange 2010 servers from the Exchange 2010 EMC. Fortunately you can install both the

Posted in Guides Tagged with: ,

Obtain RAM information from a Windows machine without opening the case

This guide will work on all machines running Windows XP or newer. To get DIMM location and capacity (in bytes) of all memory sticks in a machine run: wmic MEMORYCHIP get banklabel, capacity, caption, devicelocator, partnumber at a command prompt.

Posted in Guides Tagged with:

Using Robocopy to manually manage backups

This guide was created for a call logging system which generated thousands of audio files every day. It ran on an old Windows XP PC and all of the files were saved to a local disk. There was a manual

Posted in Guides Tagged with:

Using PSINFO to obtain information about Domain machines

PSINFO will give you some great information about machines on your network, you can find how long a box has been up, the installed Operating System, Service Pack, Windows Updates, other installed software and basic hardware information. Download the PSINFO

Posted in Guides Tagged with: