A repo where I can put all my System Admin Tools that I have built over the years.
Open a powershell as administrator and run the following command:
Install-Module -Repository PSGallery -Name SysAdminToolsIf you want to update to the latest version, run this command:
Update-Module SysAdminToolsIf you get and error like the following "The 'Command' command was found in the module 'SysAdminTools', but the module could not be loaded." then you will need to set your Execution Policy to remote signed by running the command below. Please note that execution policy is not a security feature, so changing it will not make your system more or less secure. Execution Policy is used to prevent you from accidentally running scripts that goes aganist the policy, but it does not prevent those scripts being ran in bypass mode. You can read more about Execution Policy on its about page here
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force