![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | VBScript or Powershell ? Are VBScript and Powershell mostly the same in terms of what they can do? If I'm using VBScript now should I switch? Thanks |
My System Specs![]() |
| | #2 (permalink) |
| | Re: VBScript or Powershell ? <gimme_this_gimme_that@xxxxxx> wrote in message news:38e047de-42cc-4487-ab7b-1a3faecd5d55@xxxxxx Quote: > Are VBScript and Powershell mostly the same in terms of what they can > do? Long answer: yes. In one respect they are exactly the same: they provide a scripting interface to various aspects of Windows. In another respect they are completely different, both in philosophy and appearance. Quote: > If I'm using VBScript now should I switch? intrinsic value other than what they bring to the various problem spaces they are applied to. What are you using vbscript for now? Is it meeting all of your current and future needs? If you would change your question from an either/or to "If I'm using VBScript now should I learn powershell?", now *that* would be an easier question to answer. And the answer would be "Yes". /Al |
My System Specs![]() |
| | #3 (permalink) |
| | Re: VBScript or PowerShell ? <gimme_this_gimme_that@xxxxxx> wrote in message news:38e047de-42cc-4487-ab7b-1a3faecd5d55@xxxxxx Quote: > Are VBScript and Powershell mostly the same in terms of what they can > do? > > If I'm using VBScript now should I switch? > > Thanks curve if you don't have much experience with the .NET base classes. VBScript can cope with most tasks, assisted by a slew of COM components, but moving data between different classes is much easier in PowerShell. It also depends how the scripts will be run. If you are using them from your own machine to help with repetitive tasks then PowerShell is fine. If you are looking to use these scripts on other machines, run by others or as login scripts or similar, then it's more difficult as you cannot just run a PowerShell script without some preparatory work. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name |
My System Specs![]() |
| | #4 (permalink) |
| | Re: VBScript or Powershell ? <gimme_this_gimme_that@xxxxxx> wrote in message news:38e047de-42cc-4487-ab7b-1a3faecd5d55@xxxxxx Quote: > Are VBScript and Powershell mostly the same in terms of what they can > do? > > If I'm using VBScript now should I switch? > > Thanks Sapien Technologies which supposedly is: A COM component that can be used from VBScript, JScript, KiXtart, or any other COM-compatible language. Allows you to create a direct Powershell host and use cmdlets and scripts from within your favorite scripting language. Multiple output options make integration flexible. Samples included. Hopefully someone who has actually installed and played with this tool will comment on its usefulness. -Paul Randall |
My System Specs![]() |
| | #5 (permalink) |
| | Re: VBScript or PowerShell ? "Joe Fawcett" <joefawcett@xxxxxx> wrote in message news:uuv7zlQLJHA.5232@xxxxxx Quote: > > > <gimme_this_gimme_that@xxxxxx> wrote in message > news:38e047de-42cc-4487-ab7b-1a3faecd5d55@xxxxxx Quote: >> Are VBScript and Powershell mostly the same in terms of what they can >> do? >> >> If I'm using VBScript now should I switch? >> >> Thanks > learning curve if you don't have much experience with the .NET base > classes. > VBScript can cope with most tasks, assisted by a slew of COM components, > but moving data between different classes is much easier in PowerShell. > It also depends how the scripts will be run. If you are using them from > your own machine to help with repetitive tasks then PowerShell is fine. > If you are looking to use these scripts on other machines, run by others > or as login scripts or similar, then it's more difficult as you cannot > just run a PowerShell script without some preparatory work. As for the steep learning curve, that of vbscript can be steep as well, depending on where you are coming from. I would strongly recommend Bruce Payette's book, "Powershell in Action". /Al |
My System Specs![]() |
| | #6 (permalink) |
| | Re: VBScript or Powershell ? gimme_this_gimme_that@xxxxxx wrote: Quote: > Are VBScript and Powershell mostly the same in terms of what they can > do? > > If I'm using VBScript now should I switch? > > Thanks will be able (some won't even work without) powershell. It will allow apps to work together much like in the good old days on the Amiga Arexx did... (I know, that probably won't mean much to you.. some people will sigh when reading this though) Unfortunately; Powershell is nor supported on W2K8 core, and that's where you'll find future development of VBScript. Hope this helps. -- / ) Regards, / /_________ _|__|__) Paul Weterings / (O_) http://www.servercare.nl __/ (O_) ____(O_) |
My System Specs![]() |
| | #7 (permalink) |
| | Re: VBScript or Powershell ? On Oct 12, 12:43*pm, "gimme_this_gimme_t...@xxxxxx" <gimme_this_gimme_t...@xxxxxx> wrote: Quote: > Are VBScript and Powershell mostly the same in terms of what they can > do? > > If I'm using VBScript now should I switch? > > Thanks is that you will need to know and use both. No language ever gets replaced by anything new and you have a huge repository of working VBScript samples on the web to work with and to make your life easier. PowerShell is important for new versions of products, like Exchange server, VBScript still is your best choice for login scripts. Use our free ActiveXPosh component to start utilizing powershell cmdlets where appropriate. Many of them will make your life much easier and allow you to stay in the comfort of the language you know. It will also allow you to prevent a lot of initial frustration with a new language. One last thing to consider is that PowerShell is not yet part of the Windows Core OS and may not be available on all machines you need to touch. Just my 2 cents. Alexander Riedel SAPIEN Technologies, Inc. www.primalscript.com |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Nothing - VBScript / Powershell | PowerShell | |||
| Equivalent of powershell to vbscript command | PowerShell | |||
| Return Powershell Error to VBscript | PowerShell | |||
| VBScript vs. PowerShell error handling | PowerShell | |||
| Powershell does not terminate when started VBSCRIPT | PowerShell | |||