kwanbis Posted September 9, 2007 Share Posted September 9, 2007 I'm trying to learn some scripting to automate things, like copying files, creating forlders, copying files, creating/updating users, etc. I have searched and MS has 5 technologies: VBScript, JScript, Windows Script Host, WMI, ADSI.Which one should i learn first?Any recommendations? Thanks. Link to comment Share on other sites More sharing options...
geezery Posted September 9, 2007 Share Posted September 9, 2007 (edited) Two of those are actually scripting languages VBScript and JScript. I suggest you using vbscript. There is a good forum also where you can get help and find nice examples. http://www.visualbasicscript.com Edited September 9, 2007 by geezery Link to comment Share on other sites More sharing options...
kwanbis Posted September 9, 2007 Author Share Posted September 9, 2007 Two of those are actually scripting languages VBScript and JScript. I suggest you using vbscript. There is a good forum also where you can get help and find nice examples. http://www.visualbasicscript.comSo, what are WMI and ADSI, libraries/apis? and WSH? Link to comment Share on other sites More sharing options...
jtopjian Posted September 11, 2007 Share Posted September 11, 2007 You're correct -- WMI and ADSI are basically libraries and apis. WMI can retrieve (and sometimes set) information on individual computers. For example, you could use WMI to retrieve Event entries or get the BIOS serial number. ADSI works with Active Directory.WMI and ADSI are not restricted to one language. You can interface with both using VBScript and PowerShell.WSH is a "scripting environment" that all the MS-based scripting languages run on:http://www.microsoft.com/technet/scriptcen...w.mspx?mfr=true Link to comment Share on other sites More sharing options...
fizban2 Posted September 11, 2007 Share Posted September 11, 2007 Vbscript and powershell would be two big things to focus on, you can call WMI and ADSI from within both of those, another one would be Kix but i am not familiar enough with that one to give any more info on it. Powershell is the futue though if you want to learn one and don't have any prior xp in scripting go with that one Powershell TFM great book for learning about powershell and all it has to offer Link to comment Share on other sites More sharing options...
IcemanND Posted September 11, 2007 Share Posted September 11, 2007 another good place to look at existing script is the Microsoft scriptcenterhttp://www.microsoft.com/technet/scriptcenter/default.mspx Link to comment Share on other sites More sharing options...
InTheWayBoy Posted September 12, 2007 Share Posted September 12, 2007 As alternatives to the M$ tools (Not knocking them either) you can use KiX or AutoIt, both have some fantastic features. In the end I find you have to use a mixture, some are better than others. KiX has a built-in AD-aware function that parses a users' group membership which makes it ideal for login scripts (Map drives based on group membership). And AutoIt has some amazing GUI manipulation functions that can be your only fix sometimes. And then bat/cmd to stitch it all together. Link to comment Share on other sites More sharing options...
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