![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 itfrom WIndows GUI, where it is queried using separate thread and results are loaded one by one. Martin |
My System Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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. 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. 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). 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 Specs![]() |
| | #5 (permalink) |
| | 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 > 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 Specs![]() |
![]() |
| 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 | |||