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 > VB Script

Vista - VBScript or Powershell ?

Reply
 
Old 10-12-2008   #1 (permalink)
gimme_this_gimme_that


 
 

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 SpecsSystem Spec
Old 10-12-2008   #2 (permalink)
Al Dunbar


 
 

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?
Short answer: no.

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?
That depends. Neither of these scripting languages/environments has any
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 SpecsSystem Spec
Old 10-13-2008   #3 (permalink)
Joe Fawcett


 
 

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
In my opinion PowerShell is much more powerful but is quite a steep 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.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

My System SpecsSystem Spec
Old 10-13-2008   #4 (permalink)
Paul Randall


 
 

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
Perhaps you could try ActiveX PowerShell (ActiveXPosh), a free tool from
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 SpecsSystem Spec
Old 10-13-2008   #5 (permalink)
Al Dunbar


 
 

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
> In my opinion PowerShell is much more powerful but is quite a steep
> 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 I implied, it depends on what vbscript is being used for.

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 SpecsSystem Spec
Old 10-14-2008   #6 (permalink)
Paul Weterings


 
 

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
You'll find in the future that a lot of the server based MS applications
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 SpecsSystem Spec
Old 10-17-2008   #7 (permalink)
Alexander Riedel


 
 

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
One thing we learn from interacting with admins everyday
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 SpecsSystem Spec
Reply

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


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