Archive for the ‘Windows’ Category

Enabling File Downloads in IIS

Wednesday, August 11th, 2010

To enable directory browsing and downloading in Apache, what you only need to do is enable directory browsing and make sure that the file has read access. But in IIS, you have to do an extra task, which is to identify which file extensions are allowed.

To enable file downloads, go to IIS Management Console. Look into folder properties -> HTTP Headers. Click on MIME Types and enter the file extension you want to allow.

  • Share/Bookmark

Killing network connections from the MS Windows command line

Thursday, June 18th, 2009

1. Show active connections using netstat:

>netstat -anb

2. Kill connection based on process ID.

>taskkill /pid <pid>

  • Share/Bookmark

TCPView

Tuesday, February 17th, 2009

TCPView is a tool from Microsoft that lets you view what process owns what port. You can download it for free from http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx

  • Share/Bookmark

grep on windows?

Tuesday, February 17th, 2009

I was just fiddling on the Windows command prompt and much to my surprise that I can use “find” like how I use “grep” on Linux. For example, you want to filter lines that have the word LISTEN, just enter the command(s) below:

> netstat -an|find “LISTEN”

  • Share/Bookmark

Crystal Reports .Net workaround

Friday, August 15th, 2008

Check:

http://www.wwwcoder.com/main/parentid/447/site/5042/68/default.aspx

  • Share/Bookmark

Fixing Windows with Knoppix

Wednesday, August 13th, 2008

http://www.extremetech.com/article2/0,1697,1918301,00.asp

  • Share/Bookmark

Force transfer FSMO Roles to another DC

Wednesday, June 11th, 2008

C:\WINDOWS>ntdsutil
ntdsutil:

ntdsutil: roles
fsmo maintenance:

fsmo maintenance: connections
server connections:

server connections: connect to server localhost
Binding to localhost …
Connected to localhost using credentials of locally logged on user.
server connections:

server connections: q
fsmo maintenance:

Seize domain naming master
Seize infrastructure master
Seize PDC
Seize RID master
Seize schema master

  • Share/Bookmark