-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathau_setup.ps1
17 lines (15 loc) · 790 Bytes
/
au_setup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# WMF 3/4 only
if ($PSVersionTable.PSVersion -lt $(New-Object System.Version("5.0.0.0"))) {
choco install dotnet4.5.1 -y
choco upgrade powershell-packagemanagement --ignore-dependencies -y
}
$refreshenv = Get-Command refreshenv -ea SilentlyContinue
if ($refreshenv -ne $null -and $refreshenv.CommandType -ne 'Application') {
refreshenv # You need the Chocolatey profile installed for this to work properly (Choco v0.9.10.0+).
} else {
Write-Warning "We detected that you do not have the Chocolatey PowerShell profile installed, which is necessary for 'refreshenv' to work in PowerShell."
}
Install-PackageProvider -Name NuGet -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module au -Scope AllUsers
Get-Module au -ListAvailable | select Name, Version