Showing posts with label MISC. Show all posts
Showing posts with label MISC. Show all posts

Wednesday, 27 February 2013

How to enable write caching on domain controller


Once a server is promoted to a DC, Windows 2008 R2 in my case, write cache is disabled by default. You can try to enable it, but it will revert back to disabled. This is default behavior to protect AD Database.
You should not "hack" to enable it on Production Server, but what if you really want it on Dev/Test environment. Some workarounds

Manual  Enabling or Disabling the Disk Write Caching
  • Right-click My Computer , and then click Properties .
  • Click the Hardware tab.
  • Click Device Manager .
  • Click the plus sign (+) next to the Disk Drives branch to expand it.
  • Right-click the drive on which you want to enable or disable disk write caching, and then click Properties .
  • Click the Disk Properties tab.
  • Click to select or clear the Write Cache Enabled check box as appropriate.
  • Click OK .
Dskcache.exe Utility
Get Dskcache.exe from http://support.microsoft.com/?id=811392 to enable Write Cache on start up script

c:\dskcache.exe +w
exit
Start > gpedit.msc then go to
Local Computer Policy\Computer Configuration\Windows Settings\Scripts

Registry hack

Path: HKLM\System\CurrentControlSet\Services\NTDS\Parameters
Value: "DSA Heuristics"
Type: REG_SZ
Setting this to "1" (Note: the type MUST be a string type) prevents AD service from disabling write cache.

Saturday, 19 January 2013

Free Monthly Calendar Template

This free monthly calendar template for Excel allows you to create a professional looking monthly calendar by simply choosing a month and year. Version 2.0 has been greatly simplified and now lets you make copies of the worksheet so you can create a 12-monthly calendar workbook, starting with any month. Make Monday the first day in the calendar by simply clicking on a checkbox.


Source:
http://www.vertex42.com/calendars/monthly-calendar.html

Saturday, 29 December 2012

Ping Azure VM


By default, Ping, tracert are disabled in Windows Azure VM. There are a few posts over the Internet on how to enable Ping by configuring Firewall rules on your VM and/or EndPoint configuration.

The simpler way to test connectivity to your VM is to use tcping.exe
http://www.elifulkerson.com/projects/tcping.php
tcping.exe is a small console application that operates similarly to 'ping', however it works over a tcp port. 
Example Output:
D:\tcping-devel>tcping www.reddit.com
Probing 72.14.204.104:80/tcp - Port is open - time=23.285ms
Probing 72.14.204.104:80/tcp - Port is open - time=21.651ms
Probing 72.14.204.104:80/tcp - Port is open - time=21.899ms
Probing 72.14.204.104:80/tcp - Port is open - time=21.789ms
Ping statistics for 72.14.204.104:80
     4 probes sent.
     4 successful, 0 failed.
Approximate trip times in milli-seconds:
     Minimum = 21.651ms, Maximum = 23.285ms, Average = 22.156ms
Here is the Ping to my Azure VM (from Vietnam to VM hosted in East Asia Region)
D:\MyPrograms\Apps>tcping hostname.cloudapp.net 3389
Probing 168.33.150.175:3389/tcp - Port is open - time=66.740ms
Probing 168.33.150.175:3389/tcp - Port is open - time=64.787ms
Probing 168.33.150.175:3389/tcp - Port is open - time=65.805ms
Probing 168.33.150.175:3389/tcp - Port is open - time=69.730ms
Ping statistics for 168.33.250.175:3389
     4 probes sent.
     4 successful, 0 failed.
Approximate trip times in milli-seconds:
     Minimum = 64.787ms, Maximum = 69.730ms, Average = 66.765ms


Saturday, 4 February 2012

Bluetooth mouse - no more connection lost

I've been using a Bluetooth mouse with my Win7 laptop. However it intermittent looses connection. I tried different ways but it does not seem to fix the issue. Change battery, update my laptop wifi / bluetooth driver. One nice day, I ran through this post and it is fixed.  

Steps: Device Manager > Bluetooth Radios > Thinkpad Bluetooth > Power Management > Uncheck "Allow The computer to turn off this device to save power"

Thursday, 13 January 2011

Access Facebook from VietNam



Option 2: Edit windows hosts file
- Use notepade, open hosts file at C:\Windows\System32\drivers\etc
- Add following IPs:


125.252.224.88 www.facebook.com
69.63.181.12 apps.facebook.com 
153.16.15.71 www.facebook.com
153.16.15.71 register.facebook.com
153.16.15.71 www.logins.facebook.com
153.16.15.71 facebook.com
153.16.15.71 blog.facebook.com
153.16.15.71 logins.facebook.com
153.16.15.71 login.facebook.com
153.16.15.71 apps.facebook.com
153.16.15.71 upload.facebook.com
153.16.15.71 graph.facebook.com
153.16.15.71 photos-a.ak.fbcdn.net
153.16.15.71 photos-b.ak.fbcdn.net
153.16.15.71 photos-c.ak.fbcdn.net
153.16.15.71 photos-d.ak.fbcdn.net
153.16.15.71 photos-e.ak.fbcdn.net
153.16.15.71 photos-f.ak.fbcdn.net
153.16.15.71 photos-g.ak.fbcdn.net
153.16.15.71 photos-h.ak.fbcdn.net
153.16.15.71 static.ak.connect.facebook.com
153.16.15.71 static.ak.fbcdn.net
153.16.15.71 b.static.ak.fbcdn.net
153.16.15.71 error.facebook.com 
153.16.15.71 developers.facebook.com 
153.16.15.71 pixel.facebook.com
153.16.15.71 api.facebook.com
153.16.15.71 chanel.facebook.com
153.16.15.71 0.50.chanel.facebook.com
153.16.15.71 external.ak.fbcdn.net
153.16.15.71 profile.ak.fbcdn.net
153.16.15.71 creative.ak.fbcdn.net