Skip to content

Instantly share code, notes, and snippets.

@paulvill76
Forked from Slusho/dc-prep.ps1
Created September 30, 2018 08:55
Show Gist options
  • Save paulvill76/f64eb1207a6aaf35714f0c82c98f03f8 to your computer and use it in GitHub Desktop.
Save paulvill76/f64eb1207a6aaf35714f0c82c98f03f8 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
@paulvill76
Copy link
Author

dc-prep.ps1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment