User Tools

Site Tools

Action disabled: source

wiki:software:code:winscript:start

Windows Scripting

Microsoft's operating systems have been scriptable since pretty much the beginning of the PC revolution. MS-DOS and older versions of Windows use a simple batch scripting language, whereas modern Windows (and supported older versions) can make use of PowerShell, which enables extremely powerful scripting and automation in Windows.

I use PowerShell for a lot of stuff. It can load any .NET assembly, which makes it highly extensible, and of course, Microsoft's documentation is generally very good. PowerShell is great if you have a lot of raw text you need to process using regular expressions and the like - the .NET regex engine has some unique features you won't find on other platforms (including Perl).

Articles in this section

    • Guest post: Checking user permissions on a Windows networkplugin-autotooltip__default plugin-autotooltip_bigGuest post: Checking user permissions on a Windows network

      Recently I needed to find out which folders a certain person was able to access on our Windows network. Apparently, this was extremely easy in Novell. Since it isn’t 1995 anymore, I tried to find a way to do this on the Internet. I couldn’t, so I set about making my own.
  • PowerShellplugin-autotooltip__default plugin-autotooltip_bigPowerShell

    PowerShell is Microsoft's interactive scripting engine, allowing you to create powerful scripts for many purposes. PowerShell can easily import and use any .NET library or type, making it very powerful for automation and sophisticated processing of dirty inputs, such as badly-formatted text.