Downloads:
1,005,113
Downloads of v 2.6.25:
6,676
Last Update:
18 Dec 2015
Package Maintainer(s):
Software Author(s):
- Matt Wrock
Tags:
devops chocolatey bootstraper setup windows customizations- Software Specific:
- Software Site
- Software License
- Package Specific:
- Possible Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Boxstarter WinConfig Module
This is not the latest version of Boxstarter WinConfig Module available.
- 1
- 2
- 3
2.6.25 | Updated: 18 Dec 2015
- Software Specific:
- Software Site
- Software License
- Package Specific:
- Possible Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
1,005,113
Downloads of v 2.6.25:
6,676
Maintainer(s):
Software Author(s):
- Matt Wrock
Boxstarter WinConfig Module 2.6.25
This is not the latest version of Boxstarter WinConfig Module available.
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
Deployment Method: Individual Install, Upgrade, & Uninstall
To install Boxstarter WinConfig Module, run the following command from the command line or from PowerShell:
To upgrade Boxstarter WinConfig Module, run the following command from the command line or from PowerShell:
To uninstall Boxstarter WinConfig Module, run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download boxstarter.winconfig --internalize --version=2.6.25 --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade boxstarter.winconfig -y --source="'INTERNAL REPO URL'" --version="'2.6.25'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade boxstarter.winconfig -y --source="'INTERNAL REPO URL'" --version="'2.6.25'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install boxstarter.winconfig
win_chocolatey:
name: boxstarter.winconfig
version: '2.6.25'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'boxstarter.winconfig' do
action :install
source 'INTERNAL REPO URL'
version '2.6.25'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller boxstarter.winconfig
{
Name = "boxstarter.winconfig"
Version = "2.6.25"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'boxstarter.winconfig':
ensure => '2.6.25',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved as a trusted package on 18 Dec 2015.
Functions that Boxstarter uses to customize the windows environment.
Resolve-Path $PSScriptRoot\*.ps1 |
% { . $_.ProviderPath }
Export-ModuleMember Disable-UAC, Enable-UAC, Get-UAC, Disable-InternetExplorerESC, Get-ExplorerOptions, Set-TaskbarSmall, Install-WindowsUpdate, Move-LibraryDirectory, Enable-RemoteDesktop, Set-ExplorerOptions, Get-LibraryNames, Update-ExecutionPolicy, Enable-MicrosoftUpdate, Disable-MicrosoftUpdate, Set-StartScreenOptions, Set-CornerNavigationOptions, Set-WindowsExplorerOptions, Set-TaskbarOptions
function Disable-InternetExplorerESC {
<#
.SYNOPSIS
Turns off IE Enhanced Security Configuration that is on by default on Server OS versions
.LINK
http://boxstarter.org
#>
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}"
if(Test-Path $AdminKey){
Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0
$disabled = $true
}
if(Test-Path $UserKey) {
Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0
$disabled = $true
}
if($disabled) {
Restart-Explorer
Write-Output "IE Enhanced Security Configuration (ESC) has been disabled."
}
}
function Disable-MicrosoftUpdate {
<#
.SYNOPSIS
Turns off Microsoft Update, so additional updates for other Microsoft products, installed on the system, will not be included when running Windows Update.
.LINK
http://boxstarter.org
Enable-MicrosoftUpdate
#>
if(Get-IsMicrosoftUpdateEnabled) {
Write-BoxstarterMessage "Microsoft Update is currently enabled."
Write-BoxstarterMessage "Disabling Microsoft Update..."
# Making modifications to removed an established Service, when being executed from a remote session, needs elevated permissions.
# As a result, a call to invoke a scheduled task to execute the work will be used, otherwise execute normally.
if(Get-IsRemote){
Invoke-FromTask @"
`$serviceManager = New-Object -ComObject Microsoft.Update.ServiceManager -Strict
`$serviceManager.ClientApplicationID = "Boxstarter"
`$serviceManager.RemoveService("7971f918-a847-4430-9279-4a52d1efe18d")
"@
}
else{
$serviceManager = New-Object -ComObject Microsoft.Update.ServiceManager -Strict
$serviceManager.ClientApplicationID = "Boxstarter"
$serviceManager.RemoveService("7971f918-a847-4430-9279-4a52d1efe18d")
}
}
else {
Write-BoxstarterMessage "Microsoft Update is already disabled, no action will be taken."
}
}
function Disable-UAC {
<#
.SYNOPSIS
Turns off Windows User Access Control
.LINK
http://boxstarter.org
Enable-UAC
#>
Write-BoxstarterMessage "Disabling UAC"
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 0
}
function Enable-MicrosoftUpdate {
<#
.SYNOPSIS
Turns on Microsoft Update, so additional updates for other Microsoft products, installed on the system, will be included when running Windows Update.
.LINK
http://boxstarter.org
Disable-MicrsoftUpdate
#>
if(!(Get-IsMicrosoftUpdateEnabled)) {
Write-BoxstarterMessage "Microsoft Update is currently disabled."
Write-BoxstarterMessage "Enabling Microsoft Update..."
$serviceManager = New-Object -ComObject Microsoft.Update.ServiceManager -Strict
$serviceManager.ClientApplicationID = "Boxstarter"
$serviceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")
}
else {
Write-BoxstarterMessage "Microsoft Update is already enabled, no action will be taken."
}
}
function Enable-RemoteDesktop {
<#
.SYNOPSIS
Allows Remote Desktop access to machine and enables Remote Desktop firewall rule
.LINK
http://boxstarter.org
#>
Write-BoxstarterMessage "Enabling Remote Desktop..."
$obj = Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace root\cimv2\terminalservices
if($obj -eq $null) {
Write-BoxstarterMessage "Unable to locate terminalservices namespace. Remote Desktop is not enabled"
return
}
try {
$obj.SetAllowTsConnections(1,1) | out-null
}
catch {
throw "There was a problem enabling remote desktop. Make sure your operating system supports remote desktop and there is no group policy preventing you from enabling it."
}
}
function Enable-UAC {
<#
.SYNOPSIS
Turns on Windows User Access Control
.LINK
http://boxstarter.org
#>
Write-BoxstarterMessage "Enabling UAC"
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 1
}
function Get-LibraryNames {
<#
.SYNOPSIS
Lists all Windows Library folders (My Pictures, personal, downloads, etc)
.DESCRIPTION
Libraries are special folders that map to a specific location on disk. These are usually found somewhere under $env:userprofile. This function can be used to discover the existing libraries and then use Move-LibraryDirectory to move the path of a library if desired.
.LINK
http://boxstarter.org
Move-LibraryDirectory
#>
$shells = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders'
$retVal = @()
(Get-Item $shells).Property | % {
$property = ( Get-ItemProperty -Path $shells -Name $_ )
$retVal += @{ "$_"=$property."$_" }
}
return $retVal
}
<#A Build step copies this function to bootstrapper Directory. Only edit script in Helpers#>
function Get-UAC {
<#
.SYNOPSIS
Checks if User Access Control is turned on
.LINK
http://boxstarter.org
#>
$uac=Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA
return $uac.EnableLUA -eq 1
}
function Install-WindowsUpdate {
<#
.SYNOPSIS
Downloads and installs updates via Windows Update
.DESCRIPTION
This uses the windows update service to search, download and install updates. By default, only critical updates are included and a reboot will be induced if required.
.PARAMETER GetUpdatesFromMS
If this switch is set, the default windows update server, if any, is bypassed and windows update requests go to the public Microsoft Windows update service.
.PARAMETER AcceptEula
If any update requires a Eula acceptance, setting this switch will accept the Eula and allow the update to be installed.
.PARAMETER SuppressReboots
Setting this switch will suppress a reboot in the event that any update requires one.
.PARAMETER Criteria
The criteria used for searching updates. The default criteria is "IsHidden=0 and IsInstalled=0 and Type='Software'" which is effectively just critical updates.
.LINK
http://boxstarter.org
#>
param(
[switch]$getUpdatesFromMS,
[switch]$acceptEula,
[switch]$SuppressReboots,
[string]$criteria="IsHidden=0 and IsInstalled=0 and Type='Software' and BrowseOnly=0"
)
if(Get-IsRemote){
Invoke-FromTask @"
Import-Module $($boxstarter.BaseDir)\boxstarter.WinConfig\Boxstarter.Winconfig.psd1
Install-WindowsUpdate -GetUpdatesFromMS:`$$GetUpdatesFromMS -AcceptEula:`$$AcceptEula -SuppressReboots -Criteria "$Criteria"
"@ -IdleTimeout 0 -TotalTimeout 0
if(Test-PendingReboot){
Invoke-Reboot
}
return
}
try{
$searchSession=Start-TimedSection "Checking for updates..."
$updateSession =new-object -comobject "Microsoft.Update.Session"
$Downloader =$updateSession.CreateUpdateDownloader()
$Installer =$updateSession.CreateUpdateInstaller()
$Searcher =$updatesession.CreateUpdateSearcher()
if($getUpdatesFromMS) {
$Searcher.ServerSelection = 2 #2 is the Const for the Windows Update server
}
$wus=Get-WmiObject -Class Win32_Service -Filter "Name='wuauserv'"
$origStatus=$wus.State
$origStartupType=$wus.StartMode
Write-BoxstarterMessage "Update service is in the $origStatus state and its startup type is $origStartupType" -verbose
if($origStartupType -eq "Auto"){
$origStartupType = "Automatic"
}
if($origStatus -eq "Stopped"){
if($origStartupType -eq "Disabled"){
Set-Service wuauserv -StartupType Automatic
}
Out-BoxstarterLog "Starting windows update service" -verbose
Start-Service -Name wuauserv
}
else {
# Restart in case updates are running in the background
Out-BoxstarterLog "Restarting windows update service" -verbose
Remove-BoxstarterError { Restart-Service -Name wuauserv -Force -WarningAction SilentlyContinue }
}
$Result = $Searcher.Search($criteria)
Stop-TimedSection $searchSession
$totalUpdates = $Result.updates.count
If ($totalUpdates -ne 0)
{
Out-BoxstarterLog "$($Result.updates.count) Updates found"
$currentCount = 0
foreach($update in $result.updates) {
++$currentCount
if(!($update.EulaAccepted)){
if($acceptEula) {
$update.AcceptEula()
}
else {
Out-BoxstarterLog " * $($update.title) has a user agreement that must be accepted. Call Install-WindowsUpdate with the -AcceptEula parameter to accept all user agreements. This update will be ignored."
continue
}
}
$Result= $null
if ($update.isDownloaded -eq "true" -and ($update.InstallationBehavior.CanRequestUserInput -eq $false )) {
Out-BoxstarterLog " * $($update.title) already downloaded"
$result = install-Update $update $currentCount $totalUpdates
}
elseif($update.InstallationBehavior.CanRequestUserInput -eq $true) {
Out-BoxstarterLog " * $($update.title) Requires user input and will not be downloaded"
}
else {
Download-Update $update
$result = Install-Update $update $currentCount $totalUpdates
}
}
if($result -ne $null -and $result.rebootRequired) {
if($SuppressReboots) {
Out-BoxstarterLog "A Restart is Required."
} else {
$Rebooting=$true
Out-BoxstarterLog "Restart Required. Restarting now..."
Stop-TimedSection $installSession
if(test-path function:\Invoke-Reboot) {
return Invoke-Reboot
} else {
Restart-Computer -force
}
}
}
}
else{Out-BoxstarterLog "There is no update applicable to this machine"}
}
catch {
Out-BoxstarterLog "There were problems installing updates: $($_.ToString())"
throw
}
finally {
if($origAUVal){
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU -Name UseWuServer -Value $origAUVal -ErrorAction SilentlyContinue
}
if($origStatus -eq "Stopped")
{
Out-BoxstarterLog "Stopping win update service and setting its startup type to $origStartupType" -verbose
Set-Service wuauserv -StartupType $origStartupType
Remove-BoxstarterError { stop-service wuauserv -WarningAction SilentlyContinue }
}
}
}
function Download-Update($update) {
$downloadSession=Start-TimedSection "Download of $($update.Title)"
$updates= new-Object -com "Microsoft.Update.UpdateColl"
$updates.Add($update) | out-null
$Downloader.Updates = $updates
$Downloader.Download() | Out-Null
Stop-TimedSection $downloadSession
}
function Install-Update($update, $currentCount, $totalUpdates) {
$installSession=Start-TimedSection "Install $currentCount of $totalUpdates updates: $($update.Title)"
$updates= new-Object -com "Microsoft.Update.UpdateColl"
$updates.Add($update) | out-null
$Installer.updates = $Updates
try { $result = $Installer.Install() } catch {
if(!($SuppressReboots) -and (test-path function:\Invoke-Reboot)){
if(Test-PendingReboot){
$global:error.RemoveAt(0)
Invoke-Reboot
}
}
# Check for WU_E_INSTALL_NOT_ALLOWED
if($_.Exception.HResult -eq -2146233087) {
Out-BoxstarterLog "There is either an update in progress or there is a pending reboot blocking the install."
$global:error.RemoveAt(0)
}
else { throw }
}
Stop-TimedSection $installSession
return $result
}
function Move-LibraryDirectory {
<#
.SYNOPSIS
Moves a Windows Library folder (My Pictures, personal, downloads, etc) to the given path
.DESCRIPTION
Libraries are special folders that map to a specific location on disk. These are usually found somewhere under $env:userprofile. This function can be used to redirect the library folder to a new location on disk. If the new location does not already exist, the directory will be created. Any content in the former library directory will be moved to the new location unless the DoNotMoveOldContent switch is used. Use Get-LibraryNames to discover the names of different libraries and their current physical directories.
.PARAMETER libraryName
The name of the library to move
.PARAMETER newPath
The path to move the library to. If the path does not exist, it will be created.
.PARAMETER DoNotMoveOldContent
If this switch is used, any content in the current physical directory that the library points to will not be moved to the new path.
.EXAMPLE
Move-LibraryDirectory "Personal" "$env:UserProfile\skydrive\documents"
This moves the Personal library (aka Documents) to the documents folder off of the default skydrive directory.
.LINK
http://boxstarter.org
Get-LibraryNames
#>
param(
[Parameter(Mandatory=$true)]
[string]$libraryName,
[Parameter(Mandatory=$true)]
[string]$newPath,
[switch]$DoNotMoveOldContent
)
#why name the key downloads when you can name it {374DE290-123F-4565-9164-39C4925E467B}? duh.
if($libraryName.ToLower() -eq "downloads") {$libraryName="{374DE290-123F-4565-9164-39C4925E467B}"}
$shells = (Get-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders')
if(-not ($shells.Property -Contains $libraryName)) {
throw "$libraryName is not a valid Library"
}
$oldPath = (Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' -name "$libraryName")."$libraryName"
if(-not (test-path "$newPath")){
New-Item $newPath -type directory
}
if((resolve-path $oldPath).Path -eq (resolve-path $newPath).Path) {return}
Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' $libraryName $newPath
Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders' $libraryName $newPath
Restart-Explorer
if(!$DoNotMoveOldContent) { Move-Item -Force $oldPath/* $newPath }
}
function Restart-Explorer {
try{
Write-BoxstarterMessage "Restarting the Windows Explorer process..."
$user = Get-CurrentUser
try { $explorer = Get-Process -Name explorer -ErrorAction stop -IncludeUserName }
catch {$global:error.RemoveAt(0)}
if($explorer -ne $null) {
$explorer | ? { $_.UserName -eq "$($user.Domain)\$($user.Name)"} | Stop-Process -Force -ErrorAction Stop | Out-Null
}
Start-Sleep 1
if(!(Get-Process -Name explorer -ErrorAction SilentlyContinue)) {
$global:error.RemoveAt(0)
start-Process -FilePath explorer
}
} catch {$global:error.RemoveAt(0)}
}
function Update-ExecutionPolicy {
<#
.SYNOPSIS
Sets the execution policy for the current account
.DESCRIPTION
The execution policy is set in a separate elevated
PowerShell process. If running in the chocolatey runner,
the current window cannot be used because its execution
policy has been explicitly set.
If on a 64 bit machine, the policy will be set for both
64 and 32 bit shells.
.PARAMETER Policy
The execution policy to set
#>
param(
[ValidateSet('Unrestricted','RemoteSigned','AllSigned','Restricted','Default','Bypass','Undefined')]
[string]$policy
)
write-BoxstarterMessage "Setting PowerShell execution context to $policy"
if(Is64Bit) {
Start-Process "$env:SystemRoot\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -verb runas -wait -argumentList "-noprofile -WindowStyle hidden -noninteractive -ExecutionPolicy unrestricted -Command `"Set-ExecutionPolicy $policy`""
}
Start-Process "powershell.exe" -verb runas -wait -argumentList "-noprofile -noninteractive -ExecutionPolicy unrestricted -WindowStyle hidden -Command `"Set-ExecutionPolicy $policy`""
}
function Is64Bit { [IntPtr]::Size -eq 8 }
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
function Install-Boxstarter($here, $ModuleName, $installArgs = "") {
$boxstarterPath=Join-Path $env:AppData Boxstarter
if(!(test-Path $boxstarterPath)){
mkdir $boxstarterPath
}
$packagePath=Join-Path $boxstarterPath BuildPackages
if(!(test-Path $packagePath)){
mkdir $packagePath
}
foreach($ModulePath in (Get-ChildItem $here | ?{ $_.PSIsContainer })){
$target=Join-Path $boxstarterPath $modulePath.BaseName
if(test-Path $target){
Remove-Item $target -Recurse -Force
}
}
Copy-Item "$here\*" $boxstarterPath -Recurse -Force -Exclude ChocolateyInstall.ps1, Setup.*
PersistBoxStarterPathToEnvironmentVariable "PSModulePath"
PersistBoxStarterPathToEnvironmentVariable "Path"
$binPath = "$here\..\..\..\bin"
$boxModule=Get-Module Boxstarter.Chocolatey
if($boxModule) {
if($boxModule.Path -like "$env:LOCALAPPDATA\Apps\*") {
$clickonce=$true
}
}
if(!$clickonce){
Import-Module "$boxstarterPath\$ModuleName" -DisableNameChecking -Force -ErrorAction SilentlyContinue
}
$successMsg = @"
The $ModuleName Module has been copied to $boxstarterPath and added to your Module path.
You will need to open a new console for the path to be visible.
Use 'Get-Module Boxstarter.* -ListAvailable' to list all Boxstarter Modules.
To list all available Boxstarter Commands, use:
PS:>Import-Module $ModuleName
PS:>Get-Command -Module Boxstarter.*
To find more info visit http://Boxstarter.org or use:
PS:>Import-Module $ModuleName
PS:>Get-Help Boxstarter
"@
Write-Host $successMsg
if($ModuleName -eq "Boxstarter.Chocolatey" -and !$env:appdata.StartsWith($env:windir)) {
$desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))
$startMenu=$("$env:appdata\Microsoft\Windows\Start Menu\Programs\Boxstarter")
if(!(Test-Path $startMenu)){
mkdir $startMenu
}
$target="powershell.exe"
$targetArgs="-ExecutionPolicy bypass -NoExit -Command `"&'$boxstarterPath\BoxstarterShell.ps1'`""
if($installArgs -inotcontains "nodesktopicon") {
$link = Join-Path $desktop "Boxstarter Shell.lnk"
Create-Shortcut $link $target $targetArgs $boxstarterPath
}
$link = Join-Path $startMenu "Boxstarter Shell.lnk"
Create-Shortcut $link $target $targetArgs $boxstarterPath
Set-Content -Path "$binPath\BoxstarterShell.bat" -Force -Value "$target $TargetArgs"
}
}
function Create-Shortcut($location, $target, $targetArgs, $boxstarterPath) {
$wshshell = New-Object -ComObject WScript.Shell
$lnk = $wshshell.CreateShortcut($location)
$lnk.TargetPath = $target
$lnk.Arguments = "$targetArgs"
$lnk.WorkingDirectory = $boxstarterPath
$lnk.IconLocation="$boxstarterPath\BoxLogo.ico"
$lnk.Save()
$tempFile = "$env:temp\TempShortcut.lnk"
$writer = new-object System.IO.FileStream $tempFile, ([System.IO.FileMode]::Create)
$reader = new-object System.IO.FileStream $location, ([System.IO.FileMode]::Open)
while ($reader.Position -lt $reader.Length)
{
$byte = $reader.ReadByte()
if ($reader.Position -eq 22) {
$byte = 34
}
$writer.WriteByte($byte)
}
$reader.Close()
$writer.Close()
Move-Item -Path $tempFile $location -Force
}
function PersistBoxStarterPathToEnvironmentVariable($variableName){
$value = [Environment]::GetEnvironmentVariable($variableName, 'User')
if($value){
$values=($value -split ';' | ?{ !($_.ToLower() -match "\\boxstarter$")}) -join ';'
$values+=";$boxstarterPath"
}
elseif($variableName -eq "PSModulePath") {
$values=[environment]::getfolderpath("mydocuments")
$values +="\WindowsPowerShell\Modules;$boxstarterPath"
}
else {
$values ="$boxstarterPath"
}
if(!$value -or !($values -contains $boxstarterPath)){
$values = $values.Replace(';;',';')
[Environment]::SetEnvironmentVariable($variableName, $values, 'User')
$varValue = Get-Content env:\$variableName
$varValue += ";$boxstarterPath"
$varValue = $varValue.Replace(';;',';')
Set-Content env:\$variableName -value $varValue
}
}
Log in or click on link to see number of positives.
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
Boxstarter WinConfig Module 3.0.3 | 56992 | Monday, October 9, 2023 | Approved | |
Boxstarter WinConfig Module 3.0.2 | 34762 | Monday, June 12, 2023 | Approved | |
Boxstarter WinConfig Module 3.0.1 | 4083 | Tuesday, June 6, 2023 | Approved | |
Boxstarter WinConfig Module 3.0.0 | 91702 | Thursday, July 14, 2022 | Approved | |
Boxstarter WinConfig Module 3.0.0-beta-20220427-21 | 113 | Wednesday, April 27, 2022 | Exempted | |
Boxstarter WinConfig Module 2.13.0 | 153765 | Thursday, October 15, 2020 | Approved | |
Boxstarter WinConfig Module 2.12.0 | 392384 | Tuesday, October 30, 2018 | Approved | |
Boxstarter WinConfig Module 2.11.0 | 65700 | Wednesday, May 16, 2018 | Approved | |
Boxstarter WinConfig Module 2.10.3 | 53851 | Thursday, July 27, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.27 | 2631 | Wednesday, June 21, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.26 | 5472 | Monday, June 19, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.24 | 776 | Sunday, June 18, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.14 | 6967 | Friday, May 5, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.5 | 4855 | Thursday, March 30, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.2 | 1166 | Monday, March 27, 2017 | Approved | |
Boxstarter WinConfig Module 2.9.0 | 589 | Monday, March 27, 2017 | Approved | |
Boxstarter WinConfig Module 2.8.29 | 31487 | Sunday, May 22, 2016 | Approved | |
Boxstarter WinConfig Module 2.8.27 | 445 | Sunday, May 22, 2016 | Approved | |
Boxstarter WinConfig Module 2.8.21 | 1115 | Thursday, April 28, 2016 | Approved | |
Boxstarter WinConfig Module 2.8.18 | 753 | Tuesday, April 26, 2016 | Approved | |
Boxstarter WinConfig Module 2.8.12 | 1158 | Thursday, April 21, 2016 | Approved | |
Boxstarter WinConfig Module 2.8.0 | 1162 | Friday, April 15, 2016 | Approved | |
Boxstarter WinConfig Module 2.7.0 | 2045 | Sunday, April 3, 2016 | Approved | |
Boxstarter WinConfig Module 2.6.41 | 3802 | Sunday, February 28, 2016 | Approved | |
Boxstarter WinConfig Module 2.6.25 | 6676 | Friday, December 18, 2015 | Approved | |
Boxstarter WinConfig Module 2.6.20 | 510 | Thursday, December 17, 2015 | Approved | |
Boxstarter WinConfig Module 2.6.16 | 725 | Tuesday, December 15, 2015 | Approved | |
Boxstarter WinConfig Module 2.6.2 | 693 | Monday, December 14, 2015 | Approved | |
Boxstarter WinConfig Module 2.6.0 | 506 | Sunday, December 13, 2015 | Approved | |
Boxstarter WinConfig Module 2.5.21 | 9526 | Thursday, August 13, 2015 | Approved | |
Boxstarter WinConfig Module 2.5.19 | 2053 | Sunday, July 26, 2015 | Approved | |
Boxstarter WinConfig Module 2.5.10 | 1834 | Friday, July 10, 2015 | Approved | |
Boxstarter WinConfig Module 2.5.3 | 1351 | Wednesday, July 1, 2015 | Approved | |
Boxstarter WinConfig Module 2.5.1 | 556 | Wednesday, July 1, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.209 | 4594 | Sunday, April 26, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.205 | 2692 | Sunday, April 5, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.196 | 1509 | Friday, March 20, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.188 | 1312 | Monday, March 9, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.183 | 830 | Wednesday, March 4, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.180 | 533 | Tuesday, March 3, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.179 | 460 | Tuesday, March 3, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.159 | 2797 | Sunday, January 18, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.157 | 690 | Thursday, January 15, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.152 | 844 | Monday, January 12, 2015 | Approved | |
Boxstarter WinConfig Module 2.4.149 | 1390 | Friday, December 26, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.146 | 524 | Friday, December 26, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.128 | 2025 | Thursday, November 27, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.123 | 3862 | Wednesday, September 24, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.110 | 814 | Wednesday, September 17, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.93 | 767 | Friday, September 12, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.88 | 989 | Wednesday, September 3, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.87 | 516 | Wednesday, September 3, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.80 | 2761 | Monday, August 4, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.76 | 499 | Sunday, August 3, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.70 | 651 | Thursday, July 31, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.67 | 726 | Wednesday, July 30, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.61 | 708 | Monday, July 28, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.57 | 535 | Sunday, July 27, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.54 | 639 | Wednesday, July 23, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.53 | 449 | Wednesday, July 23, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.51 | 461 | Wednesday, July 23, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.48 | 550 | Tuesday, July 22, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.46 | 657 | Saturday, July 19, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.41 | 641 | Sunday, July 13, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.39 | 533 | Sunday, July 13, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.38 | 457 | Saturday, July 12, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.35 | 455 | Saturday, July 12, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.32 | 450 | Friday, July 11, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.29 | 1237 | Friday, July 4, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.26 | 1067 | Monday, June 23, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.15 | 3101 | Sunday, April 20, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.12 | 510 | Saturday, April 19, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.4 | 864 | Saturday, April 5, 2014 | Approved | |
Boxstarter WinConfig Module 2.4.0 | 492 | Friday, April 4, 2014 | Approved | |
Boxstarter WinConfig Module 2.3.24 | 1913 | Saturday, February 1, 2014 | Approved | |
Boxstarter WinConfig Module 2.3.15 | 621 | Monday, January 27, 2014 | Approved | |
Boxstarter WinConfig Module 2.3.13 | 469 | Saturday, January 25, 2014 | Approved | |
Boxstarter WinConfig Module 2.3.8 | 570 | Thursday, January 23, 2014 | Approved | |
Boxstarter WinConfig Module 2.3.0 | 578 | Monday, January 20, 2014 | Approved | |
Boxstarter WinConfig Module 2.2.78 | 676 | Thursday, January 9, 2014 | Approved | |
Boxstarter WinConfig Module 2.2.59 | 854 | Sunday, December 29, 2013 | Approved | |
Boxstarter WinConfig Module 2.2.23 | 854 | Saturday, December 14, 2013 | Approved | |
Boxstarter WinConfig Module 2.2.16 | 514 | Friday, December 13, 2013 | Approved | |
Boxstarter WinConfig Module 2.2.15 | 398 | Friday, December 13, 2013 | Approved | |
Boxstarter WinConfig Module 2.2.12 | 475 | Friday, December 13, 2013 | Approved | |
BoxStarter WinConfig Module 2.2.0 | 473 | Thursday, December 12, 2013 | Approved | |
BoxStarter WinConfig Module 2.1.0 | 607 | Saturday, November 30, 2013 | Approved | |
BoxStarter WinConfig Module 2.0.25 | 475 | Wednesday, November 20, 2013 | Approved | |
BoxStarter WinConfig Module 2.0.11 | 467 | Monday, November 11, 2013 | Approved | |
BoxStarter WinConfig Module 2.0.4 | 504 | Saturday, November 9, 2013 | Approved | |
BoxStarter WinConfig Module 2.0.1 | 526 | Friday, November 8, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.40 | 558 | Tuesday, October 1, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.35 | 566 | Monday, August 12, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.30 | 552 | Sunday, August 11, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.22 | 511 | Thursday, August 8, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.18 | 531 | Tuesday, August 6, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.12 | 490 | Sunday, August 4, 2013 | Approved | |
BoxStarter WinConfig Module 1.1.0 | 526 | Thursday, August 1, 2013 | Approved | |
BoxStarter WinConfig Module 1.0.33 | 586 | Thursday, April 18, 2013 | Approved | |
BoxStarter WinConfig Module 1.0.20 | 523 | Monday, April 15, 2013 | Approved | |
BoxStarter WinConfig Module 1.0.13 | 547 | Monday, March 25, 2013 | Approved | |
BoxStarter WinConfig Module 1.0.3 | 573 | Wednesday, March 13, 2013 | Approved |
- Use internal function to download http gist scripts.
- No longer vendors a legacy version of Chocolatey. Leverages the current beta Chocolatey library API for all Chocolatey interaction.
-
- Boxstarter.Common (≥ 2.6.25)
Ground Rules:
- This discussion is only about Boxstarter WinConfig Module and the Boxstarter WinConfig Module package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or Boxstarter WinConfig Module, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.