Nij.UK Posted November 24, 2006 Posted November 24, 2006 HI All I was wondering if anyone knew of any good tutorials where i could try to get the hang of VBS, but more focused on doing network stuff like, login scripts etc... Im new to VBS stuff, so i need to start from basics.. Cheers
bishopsgarthstockton Posted November 24, 2006 Posted November 24, 2006 try this site....its not bad http://www.w3schools.com/vbscript/vbscript_examples.asp
Nij.UK Posted November 24, 2006 Author Posted November 24, 2006 just had a quick look at that.... I think it will be a good place to start..... but does anyone know of site which are aimed at using VBS in a network environment..... eg. logon logoff scripts.... etc... .
webman Posted November 24, 2006 Posted November 24, 2006 The term you need to search for is WSH, Windows Script[ing] Host and vbscript
mac_shinobi Posted November 24, 2006 Posted November 24, 2006 yeah http://www.computerperformance.co.uk has examples for networking vbscripts and it walks you through it as well as pointing out key points etc. Enjoy
ChrisH Posted November 24, 2006 Posted November 24, 2006 The term you need to search for is WSH, Windows Script[ing] Host and vbscript Also WMI and ADSI Mark Minasis Forums have some good examples as well. At the risk of Ric making another comment about my books I am going to say I learnt most of mine out of the official Microsoft Press scripting guide. Best MS book I have bought
browolf Posted November 24, 2006 Posted November 24, 2006 the help file for vbscript is really really really good and has loads of examples in to the point where you can cut and paste code. http://www.microsoft.com/downloads/details.aspx?familyid=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
webman Posted November 24, 2006 Posted November 24, 2006 Yep, forgot those ones ChrisH! :oops: On the server: Start > Run, "adsiedit.msc" will help you a lot if you are doing Active Directory stuff.
PiqueABoo Posted November 24, 2006 Posted November 24, 2006 Pah.. it's Powershell (dotNet) scripting this week isn't it?
ChrisH Posted November 24, 2006 Posted November 24, 2006 Pah.. it's Powershell (dotNet) scripting this week isn't it? Funny how all the examples on technet are using WMI though. I have yet to see a poweshell script that impressed me yet. Its only good for a slight shorthand in some cases , oh and sorting results better :?
ajbritton Posted November 24, 2006 Posted November 24, 2006 I saw an excellent example in a magazine which, in a single command, scanned an Exchange organization for disconnected mailboxes and reconnected them to the appropriate user accounts. That would take quite a few lines of VB script code!
ajbritton Posted November 24, 2006 Posted November 24, 2006 There are some awful things in Powershell like instead of piping to 'more', you have to pipe to 'out-host -paging'. This can be aliased to 'oh -paging', but it's still a lot of extra typing, especially when you are learning your way around.
ajbritton Posted November 24, 2006 Posted November 24, 2006 If you're learning VBScript, don't miss The Scripting Guy!
PiqueABoo Posted November 24, 2006 Posted November 24, 2006 Funny how all the examples on technet are using WMI though Mmm.. I've been oblivious until now and only recently skimmed through the examples in the guide which certainly are dripping with WMI. A lot of it looks like a lure for nix shell-scripters. Dunno about you but I can live without the $'s and all that PGP in one line stuff. PS: I've use jscript and for various reasons would point new scripters to that, but you don't get the same peer support i.e. everyone else and the dog uses VBS.
mac_shinobi Posted November 25, 2006 Posted November 25, 2006 If you're learning VBScript, don't miss The Scripting Guy! I agree with the scripting guy, that is very good for examples
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now