Powershell – Update NTFS Audit Levels

Here are the required steps for updating audit rules on Windows NTFS shares with PowerShell.

 # PowerShell Script used for updating and removing NTFS Audit Rules
 # The $path variable represents the UNC path to the share that the script is being executed against.
 # Comment or Un-Comment the Remove or Set rules to update a shares permissions.
 $path \\\
# Get the current ACL details
 $CurrentACL = get-acl $path
if (!($CurrentACL -eq $null)) {
# Success & Failure
 $AccessRule = new-object System.Security.AccessControl.FileSystemAuditRule("Everyone","ChangePermissions,DeleteSubdirectoriesAndFiles,Delete,TakeOwnership","ContainerInherit","None","Success,Failure")
# Remove Audit Rule
# Set New Audit Rule
# Apply New Permissions
 set-acl $path -AclObject $CurrentACL
 } else {
 Write-Host "ACL's unsuccessfully pulled from path $path"

Fix – Dell E1505 Intel Wireless Card Drops

Recently my girlfriends laptop has been unable to reach the internet via wireless.  The symptoms are pretty eratic and hard to tie down.  Initially web sites will load but after a couple minutes all network activity will drop.  The interesting piece is that the wireless signal and all monitoring details show as good.

Symptom: All wireless network packets are dropped 1 minute after connecting to wireless access point
Wifi Card: Intel Wireless Card 3945ABG
Laptop Model: Dell Inspiron E1505
Driver Version: (9/26/2007, Intel)

Fix: Within the network adapters properties force the wireless card to only use 802.11G.

Update Wifi Properties

  1. Right click my computer and select Manage
  2. Select Device Manager and expand the Network section
  3. Right click the Intel(R) PRO/Wireless… adapter and select Properties
  4. On the Advanced tab scroll through the list of configuration options and select Wireless Mode
  5. Uncheck “use default value” and then select your wireless type ie. 802.11G etc.
  6. Click Ok and exit the computer management interface.

Windows 2003 Server 64bit Edition – LUN Alignment

Pre-requisites: Disk must be “Basic”.  Dynamic disks are not supported.

Configure Disk Alignment Value:

  1. Launch command window start -> run “cmd”
  2. type “diskpart”
  3. list disk
  4. select disk <disk number>
  5. list disk (confirm an * is next to the disk you selected)
  6. list partition (NO partitions should be visible. If partitions are listed then the disk may contain production data)
  7. create partition primary align=<alignment value ex: 32, 64, 128>
  8. assign letter=<free drive letter ex: G>
  9. list partition
  10. exit

Example configuration output:
Microsoft DiskPart version 5.2.3790.3959
Copyright (C) 1999-2001 Microsoft Corporation.
On computer: Test1
DISKPART> list disk
Disk ###  Status      Size     Free     Dyn  Gpt
——–  ———-  ——-  ——-  —  —
Disk 5    Online        60 GB      0 B
DISKPART> select disk 5
Disk 5 is now the selected disk.
DISKPART> list partition
Partition ###  Type              Size     Offset
————-  —————-  ——-  ——-
Partition 1    Primary             60 GB   128 KB

Format Disk:

  1. Start -> run “diskmgmt.msc”
  2. Change the allocation size to match the segment size of the associated LUN.  A common segment size is 64KB
  3. Click Format

Windows – Password Recovery/Reset

This is absolutely one of the best free tools to reset the administrator password and gain access . It modifies the encrypted password in the registry’s SAM file allowing you access to the account in Windows NT/2000/XP/2003/Vista systems. There is an image file to create a bootable floppy disk or bootable CD to modify the admin password and access NTFS partitions. You do not need to know the old password to set a new one. It will also offer to unlock disabled or locked user accounts (a very helpful feature). The program was just updated on April 9, 2007 to include Vista support.
Visit the site by clicking on the link below to download a CD image or floppy image of this program.


Expand NTFS Partitions

Expansion of non-dynamic NTFS partitions can be accomplished by using the Microsoft Utility called DiskPart.exe.  DiskPart allows examination of disks, volumes, and partitions. Cloning of disk and also expansion on existing partitions.

CAUTION! Use at your own risk – Disk corruption can occur if an application is using the partition while expansion is in progress.

Link to Microsofts full description of DiskPart Util
Download DiskPart Util from Microsoft

  1. Launch a command window Start -> Run
  2. type in diskpart, you will be placed at a DISKPART> prompt
  3. list disk to view all visible disks
  4. select disk <number>
  5. select volume <number>  Note you cannot expand a volume if the volume does not have extra unused space.
  6. extend volume <number> size=<number in MBs>
  7. exit exits the program…

Set explorer as your defaul folder view

This is for the old school Windows peeps who grew up with Windows 95 and Windows 3.1 and remember when windows default view used to be Explorer.  


Set all folders to open in Explorer view:

Open a new window. Go to Tools -> Folder Options and select the File Type tab and scroll down to Folder. Click on Advanced and select explorer and then click the Set as Default option to the right. Click Okay.