Command Line Taking Ownership of Files

Windows XP: Tools: Install windows server 2003 resource kit subinacl Usage: Single File: Subinacl.exe /file [path-and-file-shortname] /setowner=Administrator /grant=Administrator=F Sub Directories Subinacl.exe /subdirectories [path] /setowner=Administrator /grant=Administrator=F Windows Vista/Windows 7: Tools: Takeown icacls Usage: takeown /f [filename] /r /d y icacls [filename]…

Window Server 2003/2008/2008 R2 Uptime

Windows Server Uptime can be monitoring using SNMP. Windows Servers:  sysUptime (OID 1.3.6.1.2.1.1.3.0)  value is in hundredths of a second. Unix/Linux:  hostUptime (OID 1.3.6.1.2.1.25.1.1.0) Cisco Switches:  snmpEngineTime (OID 1.3.6.1.6.3.10.2.1.3) WhatsUp Gold Active SNMP Monitor Example: Windows Server Uptime Past 40…

SQL Server 2008/2008 R2 Maintenance Scripts

Blitz Script will find databases that need clustered indexes, and many other common problems with databases. http://www.brentozar.com/blitz/ Below are scripts that you can use to fix the problems found. Find missing clustered indexes.  http://sqlserverpedia.com/wiki/Find_Tables_Without_Primary_Keys SELECT SCHEMA_NAME(o.schema_id) AS [schema] ,object_name(i.object_id ) AS [table]…

Windows 7 Block IP Addresses

PeerBlock is very useful, but it is better to block at the router/firewall that at the client. However for home use PeerBlock works well and can be as paranoid as you want. Resources: http://www.peerblock.com/ http://www.iblocklist.com/lists.php http://blogs.cisco.com/security/block-a-country-with-my-cisco-router-or-firewall/ http://community.spiceworks.com/topic/158311-sonicwall-vs-fortinet http://www.sophos.com/en-us/products/unified.aspx http://www.countryipblocks.net/ http://www.nirsoft.net/countryip/…

%d bloggers like this: