Sunday, 13 July 2014

Extract data from Offline Files Client Side Cache (CSC) using CSCCMD

On a XP or 2003 machine:

Download CSCCMD 1.1 

Run the following:

csccmd /isenabled

csccmd /disable

Use the following reg key to set an alternate location for the database to be restored:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache\DatabaseLocation

String = c:\CSCFiles

Disable NIC 

csccmd /enable

csccmd /enum

csccmd /extract /target:PathWhereToPutExtractedFiles /recurse

Wednesday, 30 April 2014

Simple powershell robocopy log analyser


Select-String -path "\\server\share\logfile.log" -pattern "Access Is Denied" -allm

atches -simplematch -context 1 | out-file '\\server\share\errors.log'

Wednesday, 23 April 2014

Robocopy monitor copying old files

If robocopy /MON or /MOT appears to be re-copying older files still - try these switches:

/XO - Exclude old files
/FFT - Assume FAT file times - allows slightly less sensitivity (2 seconds) when comparing file times.


robocopy SRC DST /copyall /MIR /MON:1 /XO /Z /W:5 /R:5 /fft

Tuesday, 15 April 2014

Aruba IAP's - Cisco Switches - Inconsistent peer vlan - Spanning Tree Blocking


If you receive the errors below on a Cisco switch when using Aruba IAP's:

%SPANTREE-2-BLOCK_PVID_PEER: Blocking FastEthernet0/XX on VLAN000X. Inconsistent peer vlan

and show spanning-tree shows the port as being blocked

Setup this configuration on the individual port:

spanning-tree bpdufilter enable