Renaming virtual disks

SSH to server, CD to directory disk is held in. vmkfstools -E 'examplevm.vmdk' 'examplevm-renamed.vmdk' eg vmkfstools -E Windows\ 2008-000001.vmdk Clubhouse-HD1.vmdk May be wise to delete any snapshots associated with the disk…

Comments Off on Renaming virtual disks

SNMP Software

Not PowerSNMP (can't do much with it) Not Tembria (nice, but can't get the OIDs) Possibly iReasoning MIB Browser - qwerky but has what I need

Comments Off on SNMP Software

Install an Additional Domain Controller from IFM (Install From Media) in Windows Server 2012

To to add a DC to a domain over a slow link? SYSVOL replication going slow? Use Install From Media instead! http://www.msserverpro.com/install-an-additional-domain-controller-from-ifm-install-from-media-in-windows-server-2012/ Install an Additional Do...er 2012 _ MS Server…

Comments Off on Install an Additional Domain Controller from IFM (Install From Media) in Windows Server 2012

Exchange to move marked messages to junk folder

Run the following command via Exchange Management Shell. New-TransportRule -Name 'SCS MailGuard classified messages moved to Junk Mail' -Comments '' -Priority '0' -Enabled $true -SubjectMatchesPatterns '[BANNED]','[SPAMMY','[SPAM' -SetSCL '9' I believe…

Comments Off on Exchange to move marked messages to junk folder

Excel VBA reminders / snipbits

Consider using Collections, not arrays Use SET when assigning Objects Set InvoiceWS = ActiveWorkbook.Sheets("Invoice") Function InArray(arr, val) As Boolean    For arrloop = LBound(arr) To UBound(arr)       If arr(arrloop) =…

Comments Off on Excel VBA reminders / snipbits

Updating NIC’s MTU on FreeBSD

Use the command ifconfig bge0 mtu 1500 and NOT ifconfig bge0 192.168.0.1 mtu 1500 ias explained in http://www.cyberciti.biz/faq/freebsd-jumbo-frames-networking-configration/ if trying to chage the MTU remotely via SSH. If you specifiy a…

Comments Off on Updating NIC’s MTU on FreeBSD

Upgrading Spamassassin on FreeBSD outside of ports tree

Unsure of the future implications of this but as it's been a few days and there are no signs of a upgrade I'm taking a flyer... Download and extract spamassassin…

Comments Off on Upgrading Spamassassin on FreeBSD outside of ports tree

perl cpan

To gain access to cpan type perl -MCPAN -e shell To update cpan type install CPAN reload cpan To install a module via cpan type cpan> install HTML::Template

Comments Off on perl cpan

Upgrading FreeBSD 9.1 to 9.2 with freebsd-update

http://www.freebsd.org/releases/9.2R/installation.html Recommend running commands 1-5 at the bottom of this page prior to updating to avoid receiving errors like "pkg: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg"…

Comments Off on Upgrading FreeBSD 9.1 to 9.2 with freebsd-update

FreeBSD screen resolutions

To test... kldload vesa vidcontrol -i mode (will list the available modes) vidcontrol MODE_279 To make permanant Edit /boot/loader.conf and add vesa_load=”YES” Edit /etc/rc.conf add allscreens_flags MODE_279″ (for example)

Comments Off on FreeBSD screen resolutions

Keeping Ports tree tidy

As yet untested over any period of time. portmaster --check-depends portmaster --check-port-dbdir portmaster -s portmaster -y --clean-distfiles

Comments Off on Keeping Ports tree tidy

Upgrading perl 5.14 to 5.16 on FreeBSD 9.1 using portmaster

Update portstree! portsnap fetch update Portmaster users: portmaster -o lang/perl5.16 lang/perl5.14 Conservative: (tried this, didn't see to make Amavis work though) portmaster -D p5- Comprehensive (but perhaps overkill): (tried this,…

Comments Off on Upgrading perl 5.14 to 5.16 on FreeBSD 9.1 using portmaster

MySQL Logs – Selecting General Query and Slow Query Log Output Destinations

[mysqld] ... log-output=TABLE expire_logs_days=1 general_log=1 general_log_file=/var/log/mysqld-queries.log slow_query_log=1 slow_query_log_file=/var/log/mysqld-slow-queries.log ...   SET @old_log_state = @@global.general_log; SET GLOBAL general_log = 'OFF'; ALTER TABLE mysql.general_log ENGINE = MyISAM; SET GLOBAL general_log = @old_log_state;…

Comments Off on MySQL Logs – Selecting General Query and Slow Query Log Output Destinations

Helpful RunAs Commands

Control Panel Tools You can access any of the Control Panel Tools by using RunAs against the control.exe file and the associated CPL app. For this you can use the…

Comments Off on Helpful RunAs Commands

Add WordPress Admin user via MySQL query

// You may need to update the table names if a Wordpress table prefix has been set. INSERT INTO wp_users (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES…

Comments Off on Add WordPress Admin user via MySQL query

Exchange 2007 / 2010 Limit Memory Usage

SBS 2011 Exchange Memory Usage Limits with side note for Exchange 2007 / 2010 How to limit Exchange 2010 memory usage  

Comments Off on Exchange 2007 / 2010 Limit Memory Usage

WSUS Best Practices & Cleanup info

Best Practices with Windows Server Update Services 3.0 Geek of All Trades: 6 Tips for 100 Percent WSUS Compliance What to do when your WSUSContent folder grows too large Scripts…

Comments Off on WSUS Best Practices & Cleanup info

Setting maximum memory limits on SQL embedded instances

Open up SQL Server Management Studio, connect to \\.\pipe\mssql$microsoft##ssee\sql\query, right click the server and click Properties. Set the Max Server Memory to 256.   Recommendations for the usual suspects... Instance Tried and…

Comments Off on Setting maximum memory limits on SQL embedded instances

WSUS Cleanup v2 Script

WSUS_Cleanup_v2 Must be unzipped to C:\ (so it becomes C:\SCRIPTS). Import the scheduled take by going into Task Scheduler, clicking Import Task, navigating to C:\SCRIPTS and selecting WSUS_Cleanup_v2.xml. I recommend calling…

Comments Off on WSUS Cleanup v2 Script

Webserver & SSL Hardening – IIS

IIS-Hardening-1-Disable-insecure-Ciphers-and-Hashes I believe that a reboot is required for the configuration to take effect. A reboot is required. May not be required for Windows 2003 / IIS6? Might get away…

Comments Off on Webserver & SSL Hardening – IIS

glib consistently being reinstalled

# portmaster -DaG ===>>> Starting check of installed ports for available updates ===>>> The devel/gio-fam-backend port moved to devel/glib20 ===>>> Reason: Obsoleted by new functionality in glib20 ===>>> Launching child…

Comments Off on glib consistently being reinstalled