<p>I want to know what are the options to do some scripting jobs in windows platform.
I need functionality like file manipulations, registry editing etc. Can files be edited using scripting tools?
What other functionality does windows scripting tools offer?
Can everything that can be done using the Windows GUI be done using a scripting language?</p>

[{'answer_id': 32093, 'author': 'David Sykes', 'author_id': 3154, 'author_profile': 'https://Stackoverflow.com/users/3154', 'pm_score': 4, 'selected': True, 'text': '<p>I think <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" rel="nofollow noreferrer">Windows PowerShell</a> from Microsoft is the current favourite for this sort of thing.</p>\n'}, {'answer_id': 32097, 'author': 'Mark Ingram', 'author_id': 986, 'author_profile': 'https://Stackoverflow.com/users/986', 'pm_score': 1, 'selected': False, 'text': '<p>It might be worth looking at the prerelease of version 2.0. A lot of stuff has changed:</p>\n\n<p><a href="http://blogs.msdn.com/powershell/archive/2007/11/06/what-s-new-in-ctp-of-powershell-2-0.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/powershell/archive/2007/11/06/what-s-new-in-ctp-of-powershell-2-0.aspx</a></p>\n'}, {'answer_id': 32098, 'author': 'aku', 'author_id': 1196, 'author_profile': 'https://Stackoverflow.com/users/1196', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.mvps.org/scripting/languages/" rel="nofollow noreferrer">Windows Scripting Languages</a> </p>\n\n<p>Also take a look at <a href="http://en.wikipedia.org/wiki/Windows_PowerShell" rel="nofollow noreferrer">PowerShell</a></p>\n'}, {'answer_id': 32099, 'author': 'Gishu', 'author_id': 1695, 'author_profile': 'https://Stackoverflow.com/users/1695', 'pm_score': 0, 'selected': False, 'text': '<p>CScript ? I remember seeing something like that.</p>\n'}, {'answer_id': 32102, 'author': 'cschol', 'author_id': 2386, 'author_profile': 'https://Stackoverflow.com/users/2386', 'pm_score': 1, 'selected': False, 'text': '<p>How about installing a windows version of <a href="http://www.activestate.com/Products/activepython/index.mhtml" rel="nofollow noreferrer">Python</a>, <a href="http://www.activestate.com/Products/activeperl/index.mhtml" rel="nofollow noreferrer">Perl</a> or your favorite language? These should offer all the functionality you need. </p>\n'}, {'answer_id': 32105, 'author': 'Kibbee', 'author_id': 1862, 'author_profile': 'https://Stackoverflow.com/users/1862', 'pm_score': 0, 'selected': False, 'text': "<p>Powershell is nice, but it's an extra thing you have to install.  Not standard in almost any windows installation.  So, if it's just for your own use, then powershell should be fine. If you need the scripts to run on the computers of the general population, for instance, as part of a piece of software you are producing, it may not be the best option.  </p>\n\n<p>If you are ok with an extra thing you have to install, you might want to check out cygwin.  This allows you to have a full Linux bash command line and all the associated tools at your disposal.</p>\n\n<p>If you need something included in a default windows install.  There's the windows command line (cmd.exe).  Which has some functionality, but is very deficient compared to what's available in Linux.  The other, probably worse problem, is that there isn't much out there in the way of documentation.</p>\n\n<p>You might also be interested in VB Script (flame away).  VB Script should work on almost any recent standard windows install, and is a lot more functional than the command line.</p>\n"}, {'answer_id': 32106, 'author': 'cjanssen', 'author_id': 2950, 'author_profile': 'https://Stackoverflow.com/users/2950', 'pm_score': 0, 'selected': False, 'text': '<p>I have cygwin installed, so I can run bash shell scripts for my automatization needs.  Besides, when I need stuff running moreless natively on Windows, I use a combination of batch + jscript (runs on cmdline if you have Visual Studio.Net installed, just call "cscript XXX.js").</p>\n'}, {'answer_id': 32124, 'author': 'sparkes', 'author_id': 269, 'author_profile': 'https://Stackoverflow.com/users/269', 'pm_score': -1, 'selected': False, 'text': '<p>Yesterday I could have repaired this for you  ;)</p>\n\n<blockquote>\n  <p>What all are the tools/languages for\n  windows shell scripting?</p>\n</blockquote>\n\n<p>Would read better as</p>\n\n<blockquote>\n  <p>What tools and languages are available\n  for windows shell scripting?</p>\n</blockquote>\n'}, {'answer_id': 32127, 'author': 'James Ogden', 'author_id': 3198, 'author_profile': 'https://Stackoverflow.com/users/3198', 'pm_score': 1, 'selected': False, 'text': "<p>Batch files are the most portable, but doing complicated things can get hard (very hard).</p>\n\n<p>Powershell is incredibly - um - powerful, but the installed domain at the moment is only slightly more than those people who like using powershell and servers they administer.  If you control the machines you're scripting on and can mandate that powershell is installed, powershell is the way to go.  Otherwise, batch files are the best way.</p>\n\n<p>Powershell lets you do anything which can be done, but some things will be harder than others :)</p>\n\n<p>(Seriously, if you want to control a windows GUI app from a script, you're going to have a lot of pain unless the app supports scripting itself, or you want to start posting messages to dialog controls and screen scraping the dialog to check for success.)</p>\n"}, {'answer_id': 32146, 'author': 'Josh Miller', 'author_id': 2818, 'author_profile': 'https://Stackoverflow.com/users/2818', 'pm_score': 0, 'selected': False, 'text': '<p>Scripting is a blast.</p>\n\n<p>Personally I like to write some evil little batch files.  You can find a command line program to do just about anything.  I prefer Batch files mostly because they are portable from one machine to another with at most a zip with a few unix tools (SSED, GREP, GAWK). there is a commandline REG.Exe that can even do Registry changes and reads.  You can parse output from commands with a "FOR /f" loop.</p>\n\n<p>PowerShell does have more... err.. <strong>Power</strong> (2nd post I wrote that in, but I can\'t help it.)</p>\n\n<p>If you want to look at windows automation check out <a href="http://www.autohotkey.com/" rel="nofollow noreferrer">AutoHotKey</a>.</p>\n\n<p>What are you trying to automate?  That may help us narrow down what would be helpfull.</p>\n\n<ul>\n<li>Josh</li>\n</ul>\n\n<p>EDIT: for the record I typed that at the same time as @jameso If someone at work hadn\'t asked me a question, I may have posted before him.  I did get a bit of a shiver at the similarity of the post though....</p>\n'}, {'answer_id': 1770839, 'author': 'Kaniabi', 'author_id': 212997, 'author_profile': 'https://Stackoverflow.com/users/212997', 'pm_score': 1, 'selected': False, 'text': '<p>I would recommend "Take Command" (<a href="http://www.jpsoft.com" rel="nofollow noreferrer">JPSoft</a>), which is more like "cmd.exe" than the PowerShell. We use here at ESSS for years.</p>\n'}, {'answer_id': 55769598, 'author': 'Zhiyuan-Amos', 'author_id': 8828382, 'author_profile': 'https://Stackoverflow.com/users/8828382', 'pm_score': 0, 'selected': False, 'text': '<p>Powershell can do what you need.</p>\n\n<blockquote>\n  <p>file manipulations</p>\n</blockquote>\n\n<p>This <a href="https://stackoverflow.com/a/17144445/8828382">SO post</a> answers how you can replace a string in your text file. Pasting it here for easy reference:</p>\n\n<p><code>(Get-Content c:\\temp\\test.txt).replace(\'[MYID]\', \'MyValue\') | Set-Content c:\\temp\\test.txt</code></p>\n\n<p>There are other things that you can do, such as copying files and folders. You can find out more on the <a href="https://learn.microsoft.com/en-us/powershell/scripting/samples/working-with-files-and-folders?view=powershell-6" rel="nofollow noreferrer">Windows Powershell Documentation</a></p>\n\n<blockquote>\n  <p>registry editing</p>\n</blockquote>\n\n<p>This can be easily done using Powershell. Here\'s a sample code from <a href="https://devblogs.microsoft.com/scripting/weekend-scripter-use-powershell-to-easily-modify-registry-property-values/" rel="nofollow noreferrer">Microsoft Dev Blogs</a>: </p>\n\n<p><code>Set-ItemProperty -Path HKCU:\\Software\\hsg -Name newproperty -Value anewvalue</code></p>\n'}]
['https://Stackoverflow.com/questions/32087', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/184/']