Howard @ MSFT selling BI

Just another WordPress.com site

Monthly Archives: March 2009

Run IE as user script

Dim wshShell
set wshShell = WScript.CreateObject("WScript.Shell")

if (wscript.Arguments.Count < 2) then
    wscript.echo "Missing Domain User Password parameter."
    wscript.quit
end if

‘wscript.echo "Opening Internet Explorer as " & wscript.Arguments(0) & "\" & wscript.Arguments(1)

wshShell.Run "cmd.exe /c ""title StartIE & runas.exe /user:" & wscript.Arguments(0) & "\" & wscript.Arguments(1) & " ""%ProgramFiles%\Internet Explorer\IEXPLORE.EXE"""""

wscript.Sleep(1000)

wshShell.AppActivate "StartIE"

wshShell.SendKeys wscript.Arguments(2) & "{ENTER}"

Save this script then create a shortcut with this as the target

C:\<path>\StartIEAsUser.vbs <domain>  <user> <password>

Tips on How To Act Like A Zombie

Here is some useful info from the Xbox360 Marketing Team with the release of Resident Evil 5

  • Make moaning and gasping sounds when you breathe through your mouth. It adds great effect. Your jaw should hang slack at most times. If you must make other noises, talk in gibberish or moan louder/higher. Moaning always works.
  • Shamble, don’t walk. Lean forward and almost fall with every step. Adding a limp or dragging one leg works great as well. Swing your arms limply, like you don’t ever use them.
  • When passing people, growl or groan at them and wave your arms. Some higher-level zombies tend to moan for "BRAINS!!!" as well.
  • Be stupid. The average zombie has an IQ barely above freezing temperature. They will run into walls, trip, fall, and can’t work with their hands.

How to add a Document Icon to a Sharepoint Library

Here are the steps to add an icon for .pdf files.  Change as appropriate for other file types.

  1. Save the image you wish to see as the PDF document icon to "\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images\pdf.gif" – Images should be 15×15 pixels in size. (However the 17 x 17 icon from http://www.adobe.com/misc/linking.html works fine)
  2. Edit  "\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml\DOCICON.XML"
  3. Add the following line <Mapping Key="pdf" Value="pdf.gif"/>
  4. run iisreset