Google

2007-06-19

Running PowerShell Scripts

When I read "Running windows PowerShell Scripts" on Microsoft technet, I wanted blog it. It's a long article. I am kinda disillusioned with PSH at this point :(

Some excerpts:

To summarize, here’s how you run from scripts from within Windows PowerShell:
• Make sure you’ve changed your execution policy. By default, PowerShell won’t run scripts at all, no matter how you specify the path.
• To run a script, specify the entire file path, or either: 1) use the .\ notation to run a script in the current directory or 2) put the folder where the script resides in your Windows path.
• If your file path includes blank spaces, enclose the path in double quote marks and preface the path with an ampersand.
And, yes, that all takes some getting used to. However, you will get used to it. (To make life easier for you, we recommend that you keep all your scripts in one folder, such as C:\Scripts, and add that folder to your Windows path.)

We realize that it’s been awhile, but way back at the start of this article we tried running a Windows PowerShell script by double-clicking a .PS1 file. That didn’t go quite the way we had hoped: instead of running the script all we managed to do was open the script file in Notepad. Interestingly enough, that’s the way it’s supposed to work: as a security measure you can’t start a PowerShell script by double-clicking a .PS1 file. So apparently that means that you do have to start PowerShell before you can run a PowerShell script.

In a somewhat roundabout way, that’s technically true. However, that doesn’t mean that you can’t start a PowerShell script from a shortcut or from the Run dialog box; likewise you can run a PowerShell script as a scheduled task.

The secret? Instead of calling the script you need to call the PowerShell executable file, and then pass the script path as an argument to PowerShell.exe. For example, in the Run dialog box you might type a command like powershell.exe –noexit c:\scripts\test.

2007-06-15

Technet Webcast: Windows Hang and Crash Dump Analysis by Mark Russinovich

This is a great presentation from Mark Russinovich on BSODs.

Learn to analyze Microsoft Windows crash dumps, diagnose the cause, pinpoint a solution, and resolve the problem. Intended for system administrators, this webcast explains how system crashes occur and what happens when you reboot a crashed system. We lead you through the crash dump analysis process step by step, introducing the latest tools from Microsoft and handy tricks for isolating the cause of a crash.

Presenter: Mark Russinovich, Chief Software Architect and Cofounder, Winternals Software

Mark Russinovich is chief software architect and cofounder of Winternals Software, a company that specializes in advanced systems software for Microsoft Windows. He is coauthor of Windows Internals, 4th Edition (Microsoft Press, 2004), a Microsoft MVP, and he contributes to the Sysinternals tools at www.sysinternals.com, including Process Explorer, Filemon, and Regmon. Mark has a PhD in computer engineering from Carnegie Mellon University and is a senior contributing editor for Windows IT Pro Magazine.

To avoid possible problems, we suggest you temporarily disable pop-up blocker software before viewing the webcast.

Now that Tech-Ed is over, there are a lot of webcasts available. You can view Other sessions from Tech·Ed 2006 Webcasts: Power to the Pros.


View other sessions from Tech·Ed 2006 Webcasts: Power to the Pros.

2007-06-11

25 Most Popular Blogs June 2007 (Ranked By 5 Traffic Data Sources)

A complete list of the top 25 most popular blogs ranked by a combination of Inbound Links (Yahoo Site Explorer), RSS Subscribers (Feedburner), Alexa Rank and Compete and Quantcast traffic data. The data gives you a real insight into these blogs success which will allow you to judge the relative success of your own blog.



read more | digg story

2007-06-09

Hack Your Router

Umm, well this is 'old news' that I only became aware of thanks to a colleague. There is a LifeHacker article about boosting router signal as well as adding tons of features to it for some make/model but especially Linksys WRT54GL Wireless router

Here is the link to the article.