Skip to content

Vabolos/Powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

88 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–₯️ PowerShell

Most of these scripts will be adjusted/rewritten and used in the PowerModule application I am currently working on.

πŸ“œ Script Collection

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.

πŸ“‚ Repository Structure

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).

πŸ”§ Requirements

  • PowerShell scripts: Require PowerShell 5.1 or higher. πŸ› οΈ
  • CMD scripts: Run on any standard Command Prompt on Windows. πŸ–₯️

πŸ“œ Available Scripts

πŸ’» PowerShell

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.

πŸ–₯️ CMD

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!

πŸš€ How to Use

πŸ’» PowerShell

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

πŸ–₯️ CMD

To run a CMD script, open Command Prompt and use the following command:

scriptname.bat

πŸ› οΈ Contributing

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 πŸ”„

🧰 Troubleshooting

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! 😊

About

πŸ“œ Just a repo for things and .ps1 (powershell) scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published