This falls under so many categories. MacOSXHints has this storyAn AppleScript to look up NetBIOS names. but Real Men use the Terminal. Here's the command line bit that does the real work:
nmblookup -T -U <WINS server IP> -R <NetBIOS name>
Continue reading "Lookup NetBIOS names from OS X" »
Itís a little thing but I do it all the time in Mozilla. In Safari, I canít load a URL by dragging it onto a tab. In Safari I have to either right-click then choose New Tab from the menu or command-click the link, which requires two hands. Then I still have to click on the tab to bring it to the front (there are keyboard commands for tab switching but theyíre also two-handers - shift-command-right arrow and left arrow). When Iím done with the page, I have to close the tab because itís not much good for anything else.
Continue reading "Why I'm not switching to Safari" »
This is an interesting script. It has some room for error but I have an idea about how to avoid that.
Some fellow who seems to work for Microsoft in some capacity has written a batch script called MakeMeAdmin that uses runas in clever ways to make a program run as the user but with admin privileges. The advantages over simply running programs using a local admin account are the program will use the user's profile instead of the admin account's and the programs will have access to domain resources.
Here are the phases of the script:
1. Open a command prompt as a local administrator (user is prompted for this account's password)
2. Current user is added to the local Admin group
3. Open command prompt (or another specific program) as current user (user is prompted for their own password)
4. Current user is removed from the local Admin group
Changes to group membership don't affect existing login sessions, only new ones. Therefore when runas is used in step 3 to start a program as the current user, it's a separate session and therefore the Admin group membership takes affect. Step 4 can happen immediately because the user's removal from the Admin group won't affect the session opened in step 3.
Continue reading "MakeMeAdmin script" »