Skip to content

Commit

Permalink
(chocolateyGH-399) Update new function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Broadwith committed Jan 28, 2020
1 parent 9f81dc6 commit 6a9d13f
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion Boxstarter.WinConfig/Boxstarter.WinConfig.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Resolve-Path $PSScriptRoot\*.ps1 |
% { . $_.ProviderPath }

Export-ModuleMember Disable-UAC, Enable-UAC, Get-UAC, Disable-InternetExplorerESC, Disable-GameBarTips, 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, Disable-BingSearch, Set-BoxstarterPageFile
Export-ModuleMember Disable-UAC, Enable-UAC, Get-UAC, Disable-InternetExplorerESC, Disable-GameBarTips, 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-BoxstarterTaskbarOptions, Disable-BingSearch, Set-BoxstarterPageFile
2 changes: 1 addition & 1 deletion Boxstarter.WinConfig/Boxstarter.WinConfig.pssproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<Content Include="Disable-MicrosoftUpdate.ps1" />
<Content Include="Enable-MicrosoftUpdate.ps1" />
<Content Include="Set-StartScreenOptions.ps1" />
<Content Include="Set-TaskbarOptions.ps1" />
<Content Include="Set-BoxstarterTaskbarOptions.ps1" />
<Content Include="Set-WindowsExplorerOptions.ps1" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
4 changes: 2 additions & 2 deletions Boxstarter.WinConfig/Set-BoxstarterTaskbarOptions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ Changes the behavior of the taskbar when using multiple displays. Valid inputs a
Changes the taskbar icon combination style for non-primary displays. Valid inputs are Always, Full, and Never.
.EXAMPLE
Set-TaskbarOptions -Lock -AutoHide -AlwaysShowIconsOff -MultiMonitorOff
Set-BoxstarterTaskbarOptions -Lock -AutoHide -AlwaysShowIconsOff -MultiMonitorOff
Locks the taskbar, enabled auto-hiding of the taskbar, turns off showing icons
in the notification area and turns off showing the taskbar on multiple monitors.
.EXAMPLE
Set-TaskbarOptions -Unlock -AlwaysShowIconsOn -Size Large -MultiMonitorOn -MultiMonitorCombine Always
Set-BoxstarterTaskbarOptions -Unlock -AlwaysShowIconsOn -Size Large -MultiMonitorOn -MultiMonitorCombine Always
Unlocks the taskbar and always shows large notification icons. Sets
multi-monitor support and always combine icons on non-primary monitors.
Expand Down
6 changes: 3 additions & 3 deletions Boxstarter.WinConfig/Set-TaskbarSmall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ function Set-TaskbarSmall {
.SYNOPSIS
Makes the windows task bar skinny
#>
Write-Warning "This command is deprecated, use Set-TaskbarOptions instead."
Write-Warning "Your call to this function will now be routed to the Set-TaskbarOptions function."
Write-Warning "This command is deprecated, use Set-BoxstarterTaskbarOptions instead."
Write-Warning "Your call to this function will now be routed to the Set-BoxstarterTaskbarOptions function."

Set-TaskbarOptions -Size Small
Set-BoxstarterTaskbarOptions -Size Small
}
182 changes: 91 additions & 91 deletions Web/WinConfig.cshtml
Original file line number Diff line number Diff line change
@@ -1,91 +1,91 @@
@{
Layout = "~/_ContentLayout.cshtml";
}

@section headerBody {
<h1>Boxstarter WinConfig Features</h1>
<p class="lead">Boxstarter provides several commands for customizing the Windows experience</p>
}
<p>Below are the commands that Boxstarter makes available to all packages run from within Boxstarter:</p>
<h3>Disable-InternetExplorerESC</h3>
<p>Turns off Internet Explorer Enhanced Security Configuration that is on by default on Server OS versions.</p>

<h3>Disable-GameBarTips</h3>
<p>Turns off the GameBar Tips of Windows 10 that are shown when a game - or what Windows 10 thinks is a game - is launched.</p>

<h3>Disable-MicrosoftUpdate</h3>
<p>Turns off the Windows Update option to include updates for other Microsoft products installed on the system.</p>

<h3>Disable-UAC</h3>
<p>Disables UAC. Note that Windows 8 and 8.1 can not launch Windows Store applications with UAC disabled.</p>

<h3>Disable-BingSearch</h3>
<p>Disables the Bing Internet Search when searching from the search field in the Taskbar or Start Menu.</p>

<h3>Enable-RemoteDesktop</h3>
<p>Allows Remote Desktop access to machine and enables Remote Desktop firewall rule.</p>

<h3>Enable-MicrosoftUpdate</h3>
<p>Turns on the Windows Update option to include updates for other Microsoft products installed on the system.</p>

<h3>Enable-UAC</h3>
<p>Enables UAC.</p>

<h3>Install-WindowsUpdate</h3>
<p>Finds, downloads and installs all Windows Updates. By default, only critical updates will be searched. However the command takes a <code>-Criteria</code> argument allowing one to pass a custom Windows Update query.</p>
<p>For details about the <code>Install-WindowsUpdate</code> command, run:</p>
<pre>Help Install-WindowsUpdate -Full</pre>

<h3>Move-LibraryDirectory</h3>
<p>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.</p>

<pre>
Move-LibraryDirectory "Personal" "$env:UserProfile\skydrive\documents"
</pre>
<p>This moves the Personal library (aka Documents) to the documents folder off of the default SkyDrive directory.</p>

<h3>Set-StartScreenOptions</h3>
<p>Sets options for the Start Screen in Windows 8/8.1</p>
<pre>
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-StartScreenOptions -DisableBootToDesktop -DisableDesktopBackgroundOnStart -DisableShowStartOnActiveScreen -DisableShowAppsViewOnStartScreen -DisableSearchEverywhereInAppsView -DisableListDesktopAppsFirst
</pre>

<h3>Set-CornerNavigationOptions</h3>
<p>Sets options for the Windows Corner Navigation in Windows 8/8.1</p>
<pre>
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
</pre>

<h3>Set-WindowsExplorerOptions</h3>
<p>Sets options on the Windows Explorer shell</p>
<pre>
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -EnableShowRibbon
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableShowFileExtensions -DisableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -DisableExpandToOpenFolder -DisableShowRibbon
</pre>

<h3>Set-TaskbarOptions</h3>
<p>Sets options on the Windows Taskbar</p>
<p>AlwaysShowIconsOn/AlwaysShowIconsOff allows turning on or off always show all icons in the notification area</p>
<pre>
Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn -MultiMonitorOn -MultiMonitorMode All -MultiMonitorCombine Always
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-TaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Never -AlwaysShowIconsOff -MultiMonitorOff
</pre>

<h3>Update-ExecutionPolicy</h3>
<p>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.</p>

<p>If on a 64 bit machine, the policy will be set for both 64 and 32 bit shells.</p>
@{
Layout = "~/_ContentLayout.cshtml";
}

@section headerBody {
<h1>Boxstarter WinConfig Features</h1>
<p class="lead">Boxstarter provides several commands for customizing the Windows experience</p>
}
<p>Below are the commands that Boxstarter makes available to all packages run from within Boxstarter:</p>
<h3>Disable-InternetExplorerESC</h3>
<p>Turns off Internet Explorer Enhanced Security Configuration that is on by default on Server OS versions.</p>

<h3>Disable-GameBarTips</h3>
<p>Turns off the GameBar Tips of Windows 10 that are shown when a game - or what Windows 10 thinks is a game - is launched.</p>

<h3>Disable-MicrosoftUpdate</h3>
<p>Turns off the Windows Update option to include updates for other Microsoft products installed on the system.</p>

<h3>Disable-UAC</h3>
<p>Disables UAC. Note that Windows 8 and 8.1 can not launch Windows Store applications with UAC disabled.</p>

<h3>Disable-BingSearch</h3>
<p>Disables the Bing Internet Search when searching from the search field in the Taskbar or Start Menu.</p>

<h3>Enable-RemoteDesktop</h3>
<p>Allows Remote Desktop access to machine and enables Remote Desktop firewall rule.</p>

<h3>Enable-MicrosoftUpdate</h3>
<p>Turns on the Windows Update option to include updates for other Microsoft products installed on the system.</p>

<h3>Enable-UAC</h3>
<p>Enables UAC.</p>

<h3>Install-WindowsUpdate</h3>
<p>Finds, downloads and installs all Windows Updates. By default, only critical updates will be searched. However the command takes a <code>-Criteria</code> argument allowing one to pass a custom Windows Update query.</p>
<p>For details about the <code>Install-WindowsUpdate</code> command, run:</p>
<pre>Help Install-WindowsUpdate -Full</pre>

<h3>Move-LibraryDirectory</h3>
<p>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.</p>

<pre>
Move-LibraryDirectory "Personal" "$env:UserProfile\skydrive\documents"
</pre>
<p>This moves the Personal library (aka Documents) to the documents folder off of the default SkyDrive directory.</p>

<h3>Set-StartScreenOptions</h3>
<p>Sets options for the Start Screen in Windows 8/8.1</p>
<pre>
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-StartScreenOptions -DisableBootToDesktop -DisableDesktopBackgroundOnStart -DisableShowStartOnActiveScreen -DisableShowAppsViewOnStartScreen -DisableSearchEverywhereInAppsView -DisableListDesktopAppsFirst
</pre>

<h3>Set-CornerNavigationOptions</h3>
<p>Sets options for the Windows Corner Navigation in Windows 8/8.1</p>
<pre>
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
</pre>

<h3>Set-WindowsExplorerOptions</h3>
<p>Sets options on the Windows Explorer shell</p>
<pre>
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -EnableShowRibbon
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableShowFileExtensions -DisableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -DisableExpandToOpenFolder -DisableShowRibbon
</pre>

<h3>Set-BoxstarterTaskbarOptions</h3>
<p>Sets options on the Windows Taskbar (formerly called Set-TaskbarOptions)</p>
<p>AlwaysShowIconsOn/AlwaysShowIconsOff allows turning on or off always show all icons in the notification area</p>
<pre>
Set-BoxstarterTaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn -MultiMonitorOn -MultiMonitorMode All -MultiMonitorCombine Always
</pre>
<p>It is also possible to do the converse actions, if required.</p>
<pre>
Set-BoxstarterTaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Never -AlwaysShowIconsOff -MultiMonitorOff
</pre>

<h3>Update-ExecutionPolicy</h3>
<p>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.</p>

<p>If on a 64 bit machine, the policy will be set for both 64 and 32 bit shells.</p>

0 comments on commit 6a9d13f

Please sign in to comment.