Skip to content

Commit e380aa8

Browse files
committed
2 parents ba6463f + b7242d0 commit e380aa8

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Diff for: .github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [stevencohn]

Diff for: Initialize-Machine.ps1

+12-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,13 @@ Begin
137137
Set-ItemProperty $0 -Name 'PeopleBand' -Type DWord -Value 0
138138

139139
$0 = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
140-
# taskbar small buttons
141-
Set-ItemProperty $0 -Name 'TaskbarSmallIcons' -Value 1 -Type DWord
140+
141+
if (-not $Win11)
142+
{
143+
# taskbar small buttons
144+
Set-ItemProperty $0 -Name 'TaskbarSmallIcons' -Value 1 -Type DWord
145+
}
146+
142147
# disable item checkboxes
143148
Set-ItemProperty $0 -Name 'AutoCheckSelect' -Value 0 -Type DWord
144149
# replace cmd prompt with PowerShell
@@ -275,6 +280,11 @@ Begin
275280
{
276281
Set-ItemProperty $0 -Name 'PnPCapabilities' -Type String -Value '24'
277282
}
283+
284+
# enabled Device Manager >> HID >> Power Management tab
285+
# used to disable power management of Bluetooth Low Energy devices, like Airpods
286+
$0 = 'HKLM:\SYSTEM\CurrentControlSet\Control\Power'
287+
Set-ItemProperty $0 -Name 'CsEnabled' -Type DWord -Value 0
278288
}
279289

280290

Diff for: Modules/Scripts/Get-Network.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ Process
246246
return Get-Addresses
247247
}
248248

249+
$script:verbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent
250+
249251
$info = Get-Information
250252
if ($info -and $info.Items -and $info.Items.Count -gt 0)
251253
{

0 commit comments

Comments
 (0)