Notes from Daily Encounters with Technology RSS 2.0
 
# Wednesday, January 03, 2007

The functionality of the Run as context menu item is often an invaluable tool. The following two scenarios are probably the most common.

  • If you’re using a LUA account (which you always should) you can use it to run specific applications with administrative privileges.
  • If you’re a developer you can use it to test how you’re application behaves with different credentials.

The downside of this command is that unless you want to use the administrator’s account, you have to enter the desired username every single time which quickly becomes tedious.

You can work around that if use the Runas command. Its /user parameter allows you to set your desired username in advance. To avoid typing you can create a shortcut pointing to the following location:

C:\Windows\System32\runas.exe /user:MYCOMPUTER\MyUser MyApplication.exe

Apart from opening a command prompt for password instead of a nice GUI this should be a perfect solution, as long as you don’t want to run too many applications this way. Creating shortcuts for all of them can once again get tedious.

But fear not, there’s a solution for this as well; create your own context menu command by adding the following entry into the registry:

[HKEY_CURRENT_USER\Software\Classes\exefile\shell\Run as MyUser...\command]
@="C:\\Windows\\system32\\runas.exe /user:MYCOMPUTER\\MyUser \"%L\""

Of course you should replace MYCOMPUTER\MyUser with your desired username in both above examples; and MyApplication.exe in the shortcut with the path to your application. Use HKEY_LOCALMACHINE instead of HKEY_CURRENT_USER to add the command for all users not only for you.

Wednesday, January 03, 2007 9:54:16 PM (Central European Standard Time, UTC+01:00)  #    Comments [2] - Trackback
Software | Windows
# Sunday, December 31, 2006

Microsoft Office 2007 applications (at least Outlook and OneNote in particular) require Windows Desktop Search 3.0 to be installed for their built-in search capabilities to work fully. Since out of the box this version of WDS doesn’t support the indexing of files on network shares you also have to install the WDS Add-in for Files on Microsoft Networks. You still have to map the network drives to be indexed but at least you can select them in the WDS options window afterwards.

In Windows Vista WDS 3.0 is already built-in but you still have to install the add-in for the indexing of files on network shares to work.

Sunday, December 31, 2006 8:45:04 AM (Central European Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Software | Windows
# Monday, December 25, 2006
I’ve recently passed the MCP exam 70-536: TS: Microsoft .NET Framework 2.0 – Application Development Foundation. My overall experience has been very positive. Although there are a few not so relevant topics I think that most of them are a must-know if you’re a .NET developer. I found the exam quite easy with only a few really nitpicking questions. Maybe I was just lucky but it was a pleasant surprise for me.

I used the Microsoft Self-Paced Training Kit as the study guide. In spite of the mistakes it contains (see errata) I still find it a useful overview of the topics covered by the exam. I even think of it as a great overview of .NET framework for every developer even if he’s not considering taking the exam. On the other hand it really shouldn’t be your only resource, more of a starting point to direct you to the topics you realize you don’t know enough about. MSDN or a more specialized book can help you from there on.

If you’re interested, I’m selling my own copy of the book at a reduced price. It is in mint condition, I’ve even left the 15% off voucher unused. On a side note: here you can always see the list of items I am selling. The link is listed among my other sites in the left column of this page.

Monday, December 25, 2006 9:49:24 AM (Central European Standard Time, UTC+01:00)  #    Comments [3] - Trackback
Development | .NET | Personal | Education
# Monday, December 11, 2006

I you haven't checked out our Vista site recently, now is the right time to do it. Since my last posting two new gadgets have been released:

An update for Slovenian Radio has also been released in the meantime. Apart from bug fixes the list of radio stations has been extended.
 
Try them out if you're using Windows Vista and haven't done so already.
Monday, December 11, 2006 12:58:18 PM (Central European Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Development | Personal | Work | Gadgets
# Friday, December 01, 2006

We have just released our first Sidebar Gadget – Slovenian Radio.

The gadget features a centralized list of radio stations (retrieved from our server) and basic controls for selecting the station and adjusting the volume. Everything is packaged in a nice and simple GUI.

Try it out. It really is the most convenient way of listening to Slovenian radio stations online. You can download it for free here. Spread the word if you like it.

Friday, December 01, 2006 8:23:14 AM (Central European Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Development | Gadgets | Personal | Work
Sponsored Ads

About Me
Twitter
@MladenPrajdic @andrejt use the middle mouse button then 2 days ago
Great #DotNetRocks show: Troy Hunt Secures http://t.co/oxClbXLe http://t.co/MiMasNuZ PDF is worth checking out as well http://t.co/z4BHAzqh 3 days ago
Hazards of Converting Binary Data To A String http://t.co/lb8kRSsU via @haacked 5 days ago
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

All Content © 2012, Damir Arh, M. Sc. Send mail to the author(s) - Privacy Policy - Sign In
Based on DasBlog theme 'Business' created by Christoph De Baene (delarou)
Social Network Icon Pack by Komodo Media, Rogie King is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.