Most of these scripts will be adjusted/rewritten and used in the PowerModule application I am currently working on.
Welcome to the Script Collection repository! This repo contains a variety of useful PowerShell and CMD scripts for different use cases, from automation to system administration.
The repository is organized as follows:
βββ Root directory\
β βββ .cmd
β βββ .testing
β βββ automation project
β βββ DC
β | βββ Temp
β | βββ testing
β | | βββ BackupFolders
β | | βββ DC
β | | | βββ .extra
β | | βββ Lock Sensor
β | | βββ Obsolete Apps
β | βββ ...
| βββ ...
βββ README.md
βββ ...
βββ ...
βββ ...
Each folder contains scripts categorized by their respective types (PowerShell or CMD).
- PowerShell scripts: Require PowerShell 5.1 or higher. π οΈ
- CMD scripts: Run on any standard Command Prompt on Windows. π₯οΈ
There are many PowerShell scripts available in this repository, each with different functionality and options. I have tried to keep everything as organized as possible, but will continue to clean up while working on everything.
Most of the .cmd/batch files in this repository are used to call PowerShell scripts to then execute them. They are also very useful, and more will be added to the repository soon!
To run a PowerShell script, open PowerShell and use the following command:
.\scriptname.ps1
You may need to adjust the execution policy to allow script execution. Use the following command if necessary:
Set-ExecutionPolicy RemoteSigned
To run a CMD script, open Command Prompt and use the following command:
scriptname.bat
Feel free to contribute by adding your own scripts or improving existing ones. To contribute, follow these steps:
- Fork the repository π΄
- Create a new branch (
git checkout -b feature/your-feature
) πΏ - Commit your changes (
git commit -m 'Add some feature'
) π¬ - Push to the branch (
git push origin feature/your-feature
) π€ - Open a pull request π
If you run into any issues while using the scripts, here are a few common problems and solutions:
- Execution Policy Errors (PowerShell): Ensure your execution policy allows running scripts by using
Set-ExecutionPolicy
. π§ - File Permissions: Make sure you have the required permissions to run the scripts, especially if running them on a work or shared system. π
- Syntax Errors: Check for typos or missing characters in the script before running it. π
Enjoy using the scripts and happy scripting! π