Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - PowerShell for the home user

Reply
 
Old 4 Weeks Ago   #1 (permalink)
Larry__Weiss


 
 

PowerShell for the home user

I'm trying to put together a presentation oriented around PowerShell as it
relates to the home user.

I know this goes against the grain of what PowerShell is primarily designed for,
but I do know a lot of home users who use the cmd.exe based command line, and
would feel motivated in learning PowerShell as a better command line than
cmd.exe provides. I'm one myself.

I did some Google searches and can't find anything with that audience in mind.

Scripts like this one to list all installed applications would seem to be of
interest to everyone, not just admins.

Get-WMIObject Win32_product | sort-object InstallDate | format-table
InstallDate, name -autosize

(I just wonder why that one takes so long to execute).

- Larry

My System SpecsSystem Spec
Old 4 Weeks Ago   #2 (permalink)
Martin Zugec


 
 

Re: PowerShell for the home user

Hi Larry,

based on my experiences, home users are not really good audience for
scripting

Most time when I saw home users running script was in case where they
found some scripts on internet ("if you have problems with icon cache
corruption, just run attached file and it should be fixed").

Maybe you should focus on AutoIt examples - this is as far as I
remember most common scripting language among users. Also, you could
have a look at troubleshooting platform in Windows 7 - end users are
the ones that will use it pretty often, so having article about
extensions would be really useful and you could end up with categories
like World of Warcraft

Regarding Win32_Product, it's slow by nature You can even see it
from WIndows GUI, where it is queried using separate thread and
results are loaded one by one.

Martin
My System SpecsSystem Spec
Old 4 Weeks Ago   #3 (permalink)
Larry__Weiss


 
 

Re: PowerShell for the home user

Here's another script that a home user would find handy to get a list of
processes and their main window titles

get-process | where {$_.MainWindowTitle} | Select ID,Name,MainWindowTitle
,StartTime,@{Name="Age";Expression={(get-date) - $_.StartTime }}

It is from the newsletter
http://hosted.verticalresponse.com/1...20/7d25da414b/

I need to think more about how PowerShell can be used to manage Windows
applications, and associated file system.

- Larry


Larry__Weiss wrote:
Quote:

> I'm trying to put together a presentation oriented around PowerShell as
> it relates to the home user.
> Scripts like this one to list all installed applications would seem to
> be of interest to everyone, not just admins.
> Get-WMIObject Win32_product | sort-object InstallDate | format-table
> InstallDate, name -autosize
>
My System SpecsSystem Spec
Old 4 Weeks Ago   #4 (permalink)
Thomas Lee


 
 

Re: PowerShell for the home user

In message <etxYpNBXKHA.504@newsgroup>, Larry__Weiss
<lfw@newsgroup> writes
Quote:

>I'm trying to put together a presentation oriented around PowerShell as
>it relates to the home user.
>
>I know this goes against the grain of what PowerShell is primarily
>designed for, but I do know a lot of home users who use the cmd.exe
>based command line, and would feel motivated in learning PowerShell as
>a better command line than cmd.exe provides. I'm one myself.
There is a clear spectrum of people that you can call home users. My
father in law is in his 80's and if he wanted/needed to, he could learn
PSH in a couple of days.

I am quite sure you are right that some of the computer literate
population could well be motivated to learn PowerShell. But I'd broaden
the scope just a bit. I am sure there are what MS call Information
Workers that might share that motivation.
Quote:

>I did some Google searches and can't find anything with that audience in mind.
True. Most of the coverage by MVPs and the Product Team, and the other
PowerShell addicts out there have been enterprise admin and dev focused.

Now that I have a bit of time on my hands, I have been considering
finishing up on a blog posts set that I started years ago but never
finished. It's "The Ten Things You have to Know About PowerShell" and
aimed at the beginner.

But there is some background knowledge that is required before
leveraging PowerShell in any meaningful way.
Quote:

>Scripts like this one to list all installed applications would seem to
>be of interest to everyone, not just admins.
>
> Get-WMIObject Win32_product | sort-object InstallDate | format-table
> InstallDate, name -autosize
>
>(I just wonder why that one takes so long to execute).
In order to actually understand that script, the target learner would
need to know what a Win32_product is. And preferably what WMI is. Some
background in Windows, etc is really needed before PowerShell would make
much sense.

But assuming they have that background, then they need what I call the
holy trinity: cmdlets, objects, and the pipeline. They'd first need to
understand what the Get-WMIObject cmdlet is, and what the parameter
means. Then they have to understand that this cmdlet produces objects
which PowerShell sends, via the pipeline, two more cmdlets which they
also would need to understand.

I think you can do a lot to teach these concepts using animation - I
just wish I was a bit better with PowerPoint.

Oh - and I agree - getting win32_product is slow.

Thomas


--
Thomas Lee
doctordns@newsgroup
My System SpecsSystem Spec
Old 4 Weeks Ago   #5 (permalink)
Larry__Weiss


 
 

Re: PowerShell for the home user

Thomas Lee wrote:
Quote:

> Larry__Weiss <lfw@newsgroup> writes
Quote:

>> I'm trying to put together a presentation oriented around PowerShell
>> as it relates to the home user.
>> I know this goes against the grain of what PowerShell is primarily
>> designed for, but I do know a lot of home users who use the cmd.exe
>> based command line, and would feel motivated in learning PowerShell as
>> a better command line than cmd.exe provides. I'm one myself.
>
> There is a clear spectrum of people that you can call home users. My
> father in law is in his 80's and if he wanted/needed to, he could learn
> PSH in a couple of days.
>
> I am quite sure you are right that some of the computer literate
> population could well be motivated to learn PowerShell. But I'd broaden
> the scope just a bit. I am sure there are what MS call Information
> Workers that might share that motivation.
>
Quote:

>> I did some Google searches and can't find anything with that audience
>> in mind.
>
> True. Most of the coverage by MVPs and the Product Team, and the other
> PowerShell addicts out there have been enterprise admin and dev focused.
>
> Now that I have a bit of time on my hands, I have been considering
> finishing up on a blog posts set that I started years ago but never
> finished. It's "The Ten Things You have to Know About PowerShell" and
> aimed at the beginner.
>
> But there is some background knowledge that is required before
> leveraging PowerShell in any meaningful way.
>
Quote:

>> Scripts like this one to list all installed applications would seem to
>> be of interest to everyone, not just admins.
>>
>> Get-WMIObject Win32_product | sort-object InstallDate | format-table
>> InstallDate, name -autosize
>>
>> (I just wonder why that one takes so long to execute).
>
> In order to actually understand that script, the target learner would
> need to know what a Win32_product is. And preferably what WMI is. Some
> background in Windows, etc is really needed before PowerShell would make
> much sense.
>
> But assuming they have that background, then they need what I call the
> holy trinity: cmdlets, objects, and the pipeline. They'd first need to
> understand what the Get-WMIObject cmdlet is, and what the parameter
> means. Then they have to understand that this cmdlet produces objects
> which PowerShell sends, via the pipeline, two more cmdlets which they
> also would need to understand.
>
> I think you can do a lot to teach these concepts using animation - I
> just wish I was a bit better with PowerPoint.
>
> Oh - and I agree - getting win32_product is slow.
>
> Thomas
>
Please remember to let us know when new installments of your blog series are
available.

I enjoyed your reactions to my idea to bring PowerShell to a wider audience.
I like the way this might work out. That Microsoft will keep enthusiasm for
PowerShell because of the enormous customer acceptance because of the
huge advances in productivity among corporate customers, and that since
PowerShell is built-in for Win 7, everyone else will have it on hand to gain
access to the inside-story of Windows API's.

- Larry
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Set FTP User Isolation, is it possible with powershell? PowerShell
Vista Home Premium: New user account failing to load user profile Vista account administration
Re: Run powershell as a different user? PowerShell
powershell user demographics PowerShell
finding the logged on user (user name) with powershell using WMI? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46