Solved

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

Posted on 2006-12-01
1
1,653 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

19 Experts available now in Live!

Get 1:1 Help Now