PowerShell is Microsoft’s recommended Windows scripting language. Although the DOS based command language used in batch (.bat) files will continue to be supported PowerShell is the recommended replacement.
Pages on PowerShell
-
Run Tabcmd from Batch file and PowerShell Script Compares .bat file scripts to PowerShell scripts.
In this section
Default PowerShell Security
Some versions & installations of PowerShell have default security configurations which may prevent running PowerShell scripts. (There is more Windows security on PowerShell scripts than .bat files!)
There are ways to reconfigure PowerShell security that removes most restrictions. Ask your IT security people for the PowerShell security policy.
Documentation is a work-in-progress.
-
new--Logging Jobs with Start-Transcript -
new--If ... Else in PowerShell -
new--Deleting Old Files After Days -
new--Run .bat File From PowerShell .ps1 Script -
new--Replace Text in String -
new--Install the SQL Server PowerShell Module from PowerShell Gallery -
new--Execution Policy in PowerShell -
new--Unblock PowerShell Command -
new--Find & Search Inside Files -
new--Find & Replace in Files with PowerShell
Layout tests
Left
Right
Left
Middle
Right