Shaun Cassells at MyITForum.com

SMS 2003 and ConfigMgr 2007, PowerShell, Scripting, Finance, Fitness and Fun

August 2008 - Posts

Notepad.exe Tricks
Like most people, I use notepad when I need to put together a script quickly. I never actually looked at the help file for notepad (well, why would you?!?) until I hit the F1 key by accident recently. As a result I found quite a few tricks that notepad provides that I never knew existed. They are turning out to be pretty helpful so I thought I'd share them below:
 
  • When editing a file, press the F5 key to insert the system date and time
  • Change or add headers & footers by selecting file | page setup
  • Press ctrl-G and enter a line number to go to (VERY useful when debugging VBScript errors)
  • Note only works when Word Wrap is off
  • Select view | status bar to display the line/character number as you navigate the file (another beneficial debugging aid)
  • Note only works when Word Wrap is off

Another tip I found was the ability to maintain a log file with timestamps. This is useful when troubleshooting a problem where you need to record what is happening at specific times:

  1. open notepad
  2. set the first line to be (without the quotes and in uppercase) ".LOG"
  3. press enter and save/close the file
  4. every time you open the file, notepad will automatically insert the system date/time at the end of the file and add a new line where you can begin typing
Source: www.bink.nu

 

Posted: Aug 28 2008, 02:39 PM by scassells | with no comments
Filed under: ,
Tip: WinKey shortcuts
Hi all,
  I have gotten several requests recently for keyboard shortcuts.  Here is a great list of Windows Logo Key (WinKey) combos.  My favorites are: WinKey+L, WinKey+E, WinKey+R, WinKey+D. Give them a try.
 
Shaun
 
Microsoft Natural Keyboard keys
  • WinKey or Ctrl+Esc: Start menu 
  • WinKey+R: Run dialog box
  • WinKey+M: Minimize all 
  • SHIFT+WinKey+M: Undo minimize all 
  • WinKey+F1: Help 
  • WinKey+E: Windows Explorer 
  • WinKey+F: Find files or folders
  • CTRL+WinKey+F: Find computer
  • WinKey+D: Minimizes all open windows and displays the desktop - Press second time restores previous state
  • WinKey+L: Lock Windows
  • WinKey+U: Userability (Magnifier, Reader, on screen keyboard)
  • CTRL+WinKey+TAB: Moves focus from Start, to the Quick Launch toolbar, to the system tray (use RIGHT ARROW or LEFT ARROW to move focus to items on the Quick Launch toolbar and the system tray) 
  • WinKey+TAB: Cycle through taskbar buttons 
  • WinKey+Pause/Break: System Properties dialog box 
  • Application key: Displays a shortcut menu for the selected item
  • Vista --> WinKey+X : Laptop shortcuts

List of all keyboard shortcuts: http://support.microsoft.com/kb/126449

or try this one: http://www.seoconsultants.com/windows/keyboard/

Posted: Aug 28 2008, 02:37 PM by scassells | with no comments
Filed under: ,
Ragnar: Second Leg Midnight Run

Picture this.  Your second leg of three.  5 miles at 1 am somewhere in the great state of Wisconsin.  The temp has dropped to low 70s, cool to the skin, wearing LED head lamps, tail lights, reflective vest and music pumping into your ears... when you leave the transition into the night following the red light in the distance.  Then what comes on your tunes... but Michael Jackson's Thriller.   As you listen in the night you change the lyrics...

 Ragnar at nightragnar at night

 

Darkness falls across the land
The midnight hour is close at hand
Relays run in search of time
To traverse two great states of mine
And whosoever shall be passed
by the blasting of soles gassed

Must stand and face their teams quell
And sweat inside a singlet’s shell
The sweaty stench is in the air
The funk of a two hundred six mile dare
Two thousand people stride into town
Closing in to the finish down
And though you sprint to the end
Your body starts to shiver
For no mere mortal can resist
The addiction that is Great River

Symantec Antivirus Client Security Flaw – GRC.Dat is unencrypted clear text

I was poking around the corporate Symantec client when I noticed the GRC.dat files are in easy to read clear text. 

 

They are consumed quickly in a directory where only those with elevated rights can enter.  However, the dat file being in clear text means any curious scripter could seriously modify the client.  For example, setting up a bunk DAT file to move the host parent server to yours… http://www.jacksontechnical.com/article.htm?id=13

 

Let your mind wander.  Then come back and tell me how you mitigated this vector. 

  

References: 

Posted: Aug 25 2008, 10:19 AM by scassells | with no comments
Filed under:
Microsoft Application Virtualization (MAV) / SoftGrid and Symantec Altaris SVS clients on the same machine BSOD

It looks like the filter driver in Softgrid cannot deal with SVS on Windows XP SP2.  (this may apply to more OSs...?) 

1)      Softgrid 4.x works fine when installed by itself

2)      Altaris SVS works fine when installed by itself

3)      Altaris SVS works fine with Softgrid 4.x installed

4)      Softgrid 4.x Blue Screen of Death (BSOD) if SVS is installed

Good news is very few people should ever run into this problem.

 

Solution: Uninstall Softgrid BEFORE you install SVS. 

 

Simple, just wish we could use both on the same computer.

 

Posted: Aug 25 2008, 09:52 AM by scassells | with no comments
Filed under: ,
Ragnar Relay: A quick 206.1 mile run with 12 great friends.
Well in less than 24 hours I'm off to run 206.1 miles with 12 soon to be great friends (or enemies by the end)
http://www.ragnarrelay.com/
 
The course is a nice rolling river run between La Crosse, WI to Minneapolis, MN.  Our team, supposedly one of the faster ones, start at noon Friday and we are predicted to finish about 1 pm Saturday... 25 hours straight. 
 
Anyone else up for a quick jog?
Make the MMS 2008 DVD playable off a network share and website
The following are the steps needed to modify your Microsoft Management Summit 2008 DVD playable from a network share or IIS website.  Note: the content of the DVD is protected.  As such make sure this content is only available to those approved to view the DVD (translation leave me alone DCMA zealots)
  1. Grab your trust (and now dusty) MMS 2008 DVDs (two of them)
  2. Create two network shares somewhere (default rights of read are great)
  3. Copy the entire contents of the DVD to a different share for each disk
    1. Disc 1 is 7.87 gb (dual layer)
    2. Disc 2 is 1.83 gb
Great news, to play off the network, just double click index.html and you are good to go.To make playable via IIS
  1. Right click on My Computer >> Manage
  2. Navigate to Services and Applications >> Internet Information Services (IIS) Manager >> Web Sites >> Default Web Site
  3. Locate your network share name (mine is MMS2008)
  4. Right click >> Properties
  5. Documents tab
  6. Add… a default content page
  7. Index.html
  8. click ok
Congrats you can now execute over the intranet via IE.Http://ServerName/ShareName/ 

Enjoy

Update: to play video you need to install Silverlight.  If you don't want to or are not able to you can play the wmv files directly

\\ServerName\ShareName\assets\video\SessionNumber\*.wmv

 

Posted: Aug 15 2008, 10:02 AM by scassells | with no comments
Filed under: ,