« Teaching Windows about Files Without Extensions | Home | Desktop Hunters »

Individual Entry With Comments


July 2, 2009

PowerShell Gem #1

Filed under Computers, Programming, Software

PowerShell is a replacement for the Windows command prompt (a.k.a. CMD).

I ran into this feature today: accessing network shares.

With CMD, you map a drive letter to a network share in order to access it. Trying to access the share directly (via the UNC name) does not work.

For example, here's what happens if I try to list the contents of a share called \\ivory\users\public directly (fails) and then via a mapped drive S: using CMD...

image

PowerShell supports UNC! No more mapping drive letters!

Check out the same task via PowerShell...

image

 

Technorati Tags: ,,,

About

This page contains a single entry from the blog posted on July 2, 2009 12:15 AM.

The previous post in this blog was Teaching Windows about Files Without Extensions.

The next post in this blog is Desktop Hunters.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34