Skip to content

Instantly share code, notes, and snippets.

@Slusho
Last active September 30, 2018 08:55
Show Gist options
  • Save Slusho/c254abf2abc94eeec3f71a165e53562d to your computer and use it in GitHub Desktop.
Save Slusho/c254abf2abc94eeec3f71a165e53562d to your computer and use it in GitHub Desktop.
prep domain controller
<# Notes:
Goal - Prepare the local machine by installing needed PowerShell Gallery modules.
Disclaimer - This example code is provided without copyright and AS IS. It is free for you to use and modify.
Credit to Greg Shields
#>
Get-PackageSource -Name PSGallery | Set-PackageSource -Trusted -Force -ForceBootstrap
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module xActiveDirectory -Force
Install-Module xComputerManagement -Force
Install-Module xNetworking -Force
Install-Module xDnsServer -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment