From 6a9d13ff8669d8123401a82cc92eb6aabb609174 Mon Sep 17 00:00:00 2001 From: Paul Broadwith Date: Tue, 28 Jan 2020 17:40:36 +0000 Subject: [PATCH] (GH-399) Update new function name --- .../Boxstarter.WinConfig.psm1 | 2 +- .../Boxstarter.WinConfig.pssproj | 2 +- .../Set-BoxstarterTaskbarOptions.ps1 | 4 +- Boxstarter.WinConfig/Set-TaskbarSmall.ps1 | 6 +- Web/WinConfig.cshtml | 182 +++++++++--------- 5 files changed, 98 insertions(+), 98 deletions(-) diff --git a/Boxstarter.WinConfig/Boxstarter.WinConfig.psm1 b/Boxstarter.WinConfig/Boxstarter.WinConfig.psm1 index 77d3004b..84d9e652 100644 --- a/Boxstarter.WinConfig/Boxstarter.WinConfig.psm1 +++ b/Boxstarter.WinConfig/Boxstarter.WinConfig.psm1 @@ -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 diff --git a/Boxstarter.WinConfig/Boxstarter.WinConfig.pssproj b/Boxstarter.WinConfig/Boxstarter.WinConfig.pssproj index 69ba2a4d..90a4ded7 100644 --- a/Boxstarter.WinConfig/Boxstarter.WinConfig.pssproj +++ b/Boxstarter.WinConfig/Boxstarter.WinConfig.pssproj @@ -49,7 +49,7 @@ - + diff --git a/Boxstarter.WinConfig/Set-BoxstarterTaskbarOptions.ps1 b/Boxstarter.WinConfig/Set-BoxstarterTaskbarOptions.ps1 index 19319b33..1a26f338 100644 --- a/Boxstarter.WinConfig/Set-BoxstarterTaskbarOptions.ps1 +++ b/Boxstarter.WinConfig/Set-BoxstarterTaskbarOptions.ps1 @@ -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. diff --git a/Boxstarter.WinConfig/Set-TaskbarSmall.ps1 b/Boxstarter.WinConfig/Set-TaskbarSmall.ps1 index 746e2543..3bdba3a1 100644 --- a/Boxstarter.WinConfig/Set-TaskbarSmall.ps1 +++ b/Boxstarter.WinConfig/Set-TaskbarSmall.ps1 @@ -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 } diff --git a/Web/WinConfig.cshtml b/Web/WinConfig.cshtml index a6acfe67..bb0a6a78 100644 --- a/Web/WinConfig.cshtml +++ b/Web/WinConfig.cshtml @@ -1,91 +1,91 @@ -@{ - Layout = "~/_ContentLayout.cshtml"; -} - -@section headerBody { -

Boxstarter WinConfig Features

-

Boxstarter provides several commands for customizing the Windows experience

-} -

Below are the commands that Boxstarter makes available to all packages run from within Boxstarter:

-

Disable-InternetExplorerESC

-

Turns off Internet Explorer Enhanced Security Configuration that is on by default on Server OS versions.

- -

Disable-GameBarTips

-

Turns off the GameBar Tips of Windows 10 that are shown when a game - or what Windows 10 thinks is a game - is launched.

- -

Disable-MicrosoftUpdate

-

Turns off the Windows Update option to include updates for other Microsoft products installed on the system.

- -

Disable-UAC

-

Disables UAC. Note that Windows 8 and 8.1 can not launch Windows Store applications with UAC disabled.

- -

Disable-BingSearch

-

Disables the Bing Internet Search when searching from the search field in the Taskbar or Start Menu.

- -

Enable-RemoteDesktop

-

Allows Remote Desktop access to machine and enables Remote Desktop firewall rule.

- -

Enable-MicrosoftUpdate

-

Turns on the Windows Update option to include updates for other Microsoft products installed on the system.

- -

Enable-UAC

-

Enables UAC.

- -

Install-WindowsUpdate

-

Finds, downloads and installs all Windows Updates. By default, only critical updates will be searched. However the command takes a -Criteria argument allowing one to pass a custom Windows Update query.

-

For details about the Install-WindowsUpdate command, run:

-
Help Install-WindowsUpdate -Full
- -

Move-LibraryDirectory

-

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.

- -
-Move-LibraryDirectory "Personal" "$env:UserProfile\skydrive\documents"
-
-

This moves the Personal library (aka Documents) to the documents folder off of the default SkyDrive directory.

- -

Set-StartScreenOptions

-

Sets options for the Start Screen in Windows 8/8.1

-
-Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
-
-

It is also possible to do the converse actions, if required.

-
-Set-StartScreenOptions -DisableBootToDesktop -DisableDesktopBackgroundOnStart -DisableShowStartOnActiveScreen -DisableShowAppsViewOnStartScreen -DisableSearchEverywhereInAppsView -DisableListDesktopAppsFirst
-
- -

Set-CornerNavigationOptions

-

Sets options for the Windows Corner Navigation in Windows 8/8.1

-
-Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
-
-

It is also possible to do the converse actions, if required.

-
-Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
-
- -

Set-WindowsExplorerOptions

-

Sets options on the Windows Explorer shell

-
-Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -EnableShowRibbon
-
-

It is also possible to do the converse actions, if required.

-
-Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableShowFileExtensions -DisableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -DisableExpandToOpenFolder -DisableShowRibbon
-
- -

Set-TaskbarOptions

-

Sets options on the Windows Taskbar

-

AlwaysShowIconsOn/AlwaysShowIconsOff allows turning on or off always show all icons in the notification area

-
-Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn -MultiMonitorOn -MultiMonitorMode All -MultiMonitorCombine Always
-
-

It is also possible to do the converse actions, if required.

-
-    Set-TaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Never -AlwaysShowIconsOff -MultiMonitorOff
-
- -

Update-ExecutionPolicy

-

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.

+@{ + Layout = "~/_ContentLayout.cshtml"; +} + +@section headerBody { +

Boxstarter WinConfig Features

+

Boxstarter provides several commands for customizing the Windows experience

+} +

Below are the commands that Boxstarter makes available to all packages run from within Boxstarter:

+

Disable-InternetExplorerESC

+

Turns off Internet Explorer Enhanced Security Configuration that is on by default on Server OS versions.

+ +

Disable-GameBarTips

+

Turns off the GameBar Tips of Windows 10 that are shown when a game - or what Windows 10 thinks is a game - is launched.

+ +

Disable-MicrosoftUpdate

+

Turns off the Windows Update option to include updates for other Microsoft products installed on the system.

+ +

Disable-UAC

+

Disables UAC. Note that Windows 8 and 8.1 can not launch Windows Store applications with UAC disabled.

+ +

Disable-BingSearch

+

Disables the Bing Internet Search when searching from the search field in the Taskbar or Start Menu.

+ +

Enable-RemoteDesktop

+

Allows Remote Desktop access to machine and enables Remote Desktop firewall rule.

+ +

Enable-MicrosoftUpdate

+

Turns on the Windows Update option to include updates for other Microsoft products installed on the system.

+ +

Enable-UAC

+

Enables UAC.

+ +

Install-WindowsUpdate

+

Finds, downloads and installs all Windows Updates. By default, only critical updates will be searched. However the command takes a -Criteria argument allowing one to pass a custom Windows Update query.

+

For details about the Install-WindowsUpdate command, run:

+
Help Install-WindowsUpdate -Full
+ +

Move-LibraryDirectory

+

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.

+ +
+Move-LibraryDirectory "Personal" "$env:UserProfile\skydrive\documents"
+
+

This moves the Personal library (aka Documents) to the documents folder off of the default SkyDrive directory.

+ +

Set-StartScreenOptions

+

Sets options for the Start Screen in Windows 8/8.1

+
+Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
+
+

It is also possible to do the converse actions, if required.

+
+Set-StartScreenOptions -DisableBootToDesktop -DisableDesktopBackgroundOnStart -DisableShowStartOnActiveScreen -DisableShowAppsViewOnStartScreen -DisableSearchEverywhereInAppsView -DisableListDesktopAppsFirst
+
+ +

Set-CornerNavigationOptions

+

Sets options for the Windows Corner Navigation in Windows 8/8.1

+
+Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
+
+

It is also possible to do the converse actions, if required.

+
+Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
+
+ +

Set-WindowsExplorerOptions

+

Sets options on the Windows Explorer shell

+
+Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -EnableShowRibbon
+
+

It is also possible to do the converse actions, if required.

+
+Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableShowFileExtensions -DisableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -DisableExpandToOpenFolder -DisableShowRibbon
+
+ +

Set-BoxstarterTaskbarOptions

+

Sets options on the Windows Taskbar (formerly called Set-TaskbarOptions)

+

AlwaysShowIconsOn/AlwaysShowIconsOff allows turning on or off always show all icons in the notification area

+
+Set-BoxstarterTaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn -MultiMonitorOn -MultiMonitorMode All -MultiMonitorCombine Always
+
+

It is also possible to do the converse actions, if required.

+
+    Set-BoxstarterTaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Never -AlwaysShowIconsOff -MultiMonitorOff
+
+ +

Update-ExecutionPolicy

+

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.