running as administrator

Recently I was developing an application that required administrator level access on machine to do certain task.

UAC is a feature of Windows Vista and 7 designed to prevent unauthorized changes to your computer. By default, even an administrator account in modern versions of Windows does not have full access to modify system settings and install programs. Thus, if you try to install a program or change critical settings, you may see your desktop fade and show only a prompt window asking if you’re sure you want to do this.  This ensures secure desktop, designed to prevent a program from automatically approving itself.

In case you are using standard (non-admin) account Windows will ask you to grant permission using admin account. The way to do this with .NET applications is to add a New Item of type Application Manifest File:

Continue reading

Sharing Options:

RAMDrive and SSD, continued

This is continuation of previous post SSD Thrashing and RAMDrive, I have created a 512MB RamDrive and mapped it as R Drive. My Temp directories are located on RamDrive and so is the data directory for Chrome. With this arrangement and heavy use of chrome I could see some good benefits- due to holiday season I have spent a lot of time on my laptop (~8-10 hours or usage every day). And have a graph to show about the usage:

Continue reading

Sharing Options:

SSD thrashing and RAMDrive

This is continuation of my previous post: disabling superfetch, prefetch and indexing

After installing SSD I was monitoring how Windows has been using the drive. One of the day I spent quite sometime watching videos over web and the data written to SSD increased by ~35GB. That day I effectively did nothing other than watching videos on youtube and pluralsight. With this in mind I set out to investigate what caused this un-neccessary writes to SSD. Crystal DiskInfo has been my companion in deciphering the SMART data reported.

Crystal DiskInfo can read the SMART information quite nicely, it is a bit easier to use as compared to OCZ’s toolbox. The stats of interest here are the Total Host Writes and Total NAND Writes. Host Writes is how much data OS has transferred to SSD to write and NAND writes represents how much controller wrote to SSD (there is compression at play here- I am not losing data :))

Continue reading

Sharing Options:

disabling superfetch, prefetch and indexing

Recently I bought a SSD for my laptop, and after upgrading it feels really fast. Earlier Windows 8.1 used to boot to desktop in about ~100 seconds (5400 RPM HDD) and now it has been reduced to ~6 seconds!!

With SSD quite a few of the Windows optimizations are not required- namely search indexing, superfetch and prefetch. Actually disabling these might increase SSD lifetime- as they reduce un-neccessary writes to SSD.

Search Indexing was added to compensate for HDD lag while accessing commonly used files. It did has profound effect when I was using 5400 RPM HDD but with SSD no one needs it.

Continue reading

Sharing Options: