Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Windows scripting for a complete novice?

Thread Tools
 
Search this Thread
 
Old 16 December 2011, 11:33 AM
  #1  
An0n0m0us
Scooby Regular
Thread Starter
 
An0n0m0us's Avatar
 
Join Date: Jun 2005
Location: UK
Posts: 3,597
Received 29 Likes on 16 Posts
Question Windows scripting for a complete novice?

I'm a wintel engineer but have never scripted a single thing, always do everything gui based with only the very rare occasion using cmd line stuff such as diskpart etc.

There are one or two members in the team who are excellent at scripting but way over the top in explaining what they have done making it seem a foreign language so can't ask them for help.

I really need to start learning this area as it is becoming more of a requirment for wintel work (i'm project only as BAU stuff is done by an off shore team).

Can anyone recomend a book/website for someone who really has absolutely no idea about scripting so needs to start right from the beginning? Things like scripting to pull stuff out of AD even do my head in so that may be a good place to start and practice on - I have my own test environment at home.

I really need to be able to start on the most basic of basic explanations as I almost have a mental blockage with scripting.
Old 16 December 2011, 11:50 AM
  #2  
jonc
Scooby Regular
 
jonc's Avatar
 
Join Date: Apr 2002
Posts: 7,635
Likes: 0
Received 18 Likes on 13 Posts
Default

What are you scripting with? DOS batch files, VBScript, PowerShell? You can try
http://technet.microsoft.com/en-us/l.../bb902776.aspx

Also Google is your friend!
Old 16 December 2011, 12:17 PM
  #3  
An0n0m0us
Scooby Regular
Thread Starter
 
An0n0m0us's Avatar
 
Join Date: Jun 2005
Location: UK
Posts: 3,597
Received 29 Likes on 16 Posts
Default

Thanks, I know I can Google (and already am) but I was after recommendations! From the 3 you've listed I would imagine just starting in DOS and then vb and powershell. Pulling info from AD is something I need to be able to do but the switches/commands seem extensive!
Old 16 December 2011, 02:10 PM
  #4  
jonc
Scooby Regular
 
jonc's Avatar
 
Join Date: Apr 2002
Posts: 7,635
Likes: 0
Received 18 Likes on 13 Posts
Default

If your scripting requires you to do things in AD, then forget DOS. I manly script using VBScript and is a very good tool for AD management. There is an excellent Microsoft blog by "HeyScriptingGuy" though Microsoft are now pushing hard on Powershell scripts, though you can still search for the old VBScripts from this blog. (http://technet.microsoft.com/en-us/scriptcenter/ and http://msdn.microsoft.com/en-us/library/t0aew7h6.aspx)

There was a .CHM file which contained a huge amount of sample vbscripts and help and I used this heavily when I first started using VBScript. Try googling "Hey_Scripting_Guy.chm" to find a download for it. I can email it to you if you can't find it.

I found that rather than reading reams and reams of reference material, I learnt more quickly by applying scripts and tweaking it for my work. I use VBSEdit (www.vbsedit.com) and it contains very good built in samples and help files.
Old 16 December 2011, 02:23 PM
  #5  
An0n0m0us
Scooby Regular
Thread Starter
 
An0n0m0us's Avatar
 
Join Date: Jun 2005
Location: UK
Posts: 3,597
Received 29 Likes on 16 Posts
Default

That's great, thanks for your help. I'll start reading up and seeing what ones I can run on my test environment. Things like creating lists of user accounts is something I needed to do previously but instead of scripting I created them all manually
Old 16 December 2011, 08:30 PM
  #6  
tarmac terror
Scooby Regular
iTrader: (2)
 
tarmac terror's Avatar
 
Join Date: May 2005
Location: Northern Ireland
Posts: 2,498
Received 0 Likes on 0 Posts
Default

I find myself returning to this site as a first port of call any time I get stuck or forget the syntax of a command. It rarely lets me down.


http://www.ss64.com
Old 17 December 2011, 08:04 PM
  #7  
hodgy0_2
Scooby Regular
 
hodgy0_2's Avatar
 
Join Date: Jul 2008
Location: K
Posts: 15,633
Received 21 Likes on 18 Posts
Default

if you manage wintell servers, you just need to concentrate on powershell
Old 18 December 2011, 05:10 PM
  #8  
An0n0m0us
Scooby Regular
Thread Starter
 
An0n0m0us's Avatar
 
Join Date: Jun 2005
Location: UK
Posts: 3,597
Received 29 Likes on 16 Posts
Default

Thanks Hodgy. We still work in the dark ages with mainly w2k3 and the occasional w2k8 sp2 but no r2s as of yet.
Old 19 December 2011, 06:23 AM
  #9  
Saint AAI
Scooby Regular
 
Saint AAI's Avatar
 
Join Date: Mar 2005
Posts: 964
Likes: 0
Received 0 Likes on 0 Posts
Default

I do a little scripting at work sometimes and use Strawberry Perl, is VBScript better or is it more personal preference?
Old 20 December 2011, 01:02 PM
  #10  
hodgy0_2
Scooby Regular
 
hodgy0_2's Avatar
 
Join Date: Jul 2008
Location: K
Posts: 15,633
Received 21 Likes on 18 Posts
Default

you can still use powershell with 2003

it is just that native support (in the OS) is not included

http://www.techrepublic.com/article/...rshell/6160138
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
FuZzBoM
Wheels, Tyres & Brakes
16
04 October 2015 09:49 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Windows scripting for a complete novice?



All times are GMT +1. The time now is 10:44 PM.