Solved

Scripting Winbatch or Windows Powershell - w/ Windows Deployment Services & Vista

Posted on 2006-12-01
1
1,679 Views
Last Modified: 2008-02-01
I have recently started doing some minor scripting in Winbatch. This was the previous method they used to automate installation of software, so basically I continued doing what they did and used what they used. Basically what they did was run RIS to install the OS, then calls the EXE created by winbatch to run scripts to install software.

But is there any good reason I should be thinking of switching to Powershell or some other scripting language?
I saw these links on the Vista webpage and it was boasting how powerful it is.. but is it really any different? It's still relatively new, right? Anyone had a chance to use Powershell and see just how it is? We're in the process of learning about Vista and possibly switching from RIS to WDS sometime later (bc according to them RIS is harder to implement and WDS would possibly fix these problems).. so I wanted to know if it made sense to also the switch scripting languages? There was a comment I found somewhere online where they refered winbatch as "old"... should I be looking at something more current?  I'm new to all this so any info is appreciated. Thanks!

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx
http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
0
Comment
Question by:ThinkPaper
1 Comment
 
LVL 4

Accepted Solution

by:
Shankadude earned 250 total points
ID: 18067213
PowerShell is relatively new indeed. It is placed as the new command shell for sysadmin to perform system admin tasks from the commandline. PowerShell will be the tool for the future I think. It isn't installed by default (yet) so you have to install it by hand before you can do any scripting/installation with it. The graphical interface for Exchange 2007 is built on top of PowerShell as will a lot of other (new) products.

I think the question should be: Why do I need it?
The unattended process in the RIS installation provides a lot of stuff for automating software installation and configuration like the commands.txt file, the RunOnceEx key etc.

If you do have to automate something the installation process cannot then I would recommand the 'standard' batch files or vbscript. I recommend these because they are builtin and don't need any extra tool to create.

Extra info:
RunOnceEx: http://support.microsoft.com/kb/232509
Unattend: http://unattended.msfn.org/,
http://www.microsoft.com/technet/prodtechnol/windows2000pro/deploy/depopt/superris.mspx
vbscript: http://www.microsoft.com/technet/scriptcenter/guide/sas_vbs_overview.mspx

The latter article is about Windows 2000 Pro, but most of it also works for Windows 2000 Server, Windows Server 2003 and XP.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now