Last Update: 13/5 2023
All my public scripts are hosted on GitHub and available at https://github.com/michaelmsonne/public
Finding PowerShell scripts and other stuff to help automate common processes can be hard work. As part of the time I got in IT, I had write/collected a lot of PowerShell scripts and so on over the years, and some – not all is public as some was som internal stuff.
All posts regarding scripts here is here, can you find posts about to here: https://blog.sonnes.cloud/topics/code-repository/
The code is intended to demonstrate how things work or how to accomplish tasks. Some time ago, I started to put the scripts in the GitHub repository. Feel free to download and use the scripts with the caveats that:
- These are not production-ready scripts. You’ll need to do some work to prepare them for use in your environment. For instance, the scripts come with scant if any error handling – sine have IT in the Hole script. We also don’t tend to write code in functions in all scripts because we’re trying to show how to get work done without attempting to educate everyone to be professional programmers.
- Always distrust PowerShell code downloaded from the internet. Never run anything in production until you’ve tested the code.
- I write the code when are investigating a topic etc. Sometimes I go back and revisit code if we need to, such as someone prompting me with a question. I do not always use the latest and greatest technique in scripts to perform certain tasks, such as the fastest way to find individual groups.
Now that you understand the rules of the game, here are details of some of the scripts in the repository (feel free to improve the code).
You can find the GitHub Repository here: https://github.com/michaelmsonne/public
The following is the disclaimer that applies to all scripts, functions etc. This disclaimer supersedes any disclaimer included in any script, function, etc.
You running this script/function means you will not blame the author(s) if this breaks your stuff. This script/function is provided AS IS without warranty of any kind. Author(s) disclaim all implied warranties including, without limitation, any implied warranties of merchant-ability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the scripts remains with you. In no event shall author(s) be held liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the script or documentation. Neither this script/function, nor any part of it other than those parts that are explicitly copied from others, may be republished without author(s) express written permission. Author(s) retain the right to alter this disclaimer at any time.
All the scripts provided in this blog are based on my personal views/usage scenarios. There is no guarantee or warranty that these will work your environment without any issues.
You need to test them yourself in your test lab before trying in production. The author of this blog is not responsible if the usage of scripts given in this blog causes any damage to your environment or malfunctions.
For more details, check out my Disclaimer page.