Skip to content

Commit

Permalink
feat: final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 9, 2024
1 parent 1205d6c commit e5fda4a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/playbook/Configuration/custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ actions:
- !writeStatus: {status: 'Preparing hives'}
- !powerShell:
command: |
net user defaultuser0 /delete *>$null
$profileList = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' -Name 'ProfilesDirectory', 'Default' -EA 0
$usersPath = if ([string]::IsNullOrEmpty($profileList.ProfilesDirectory)) { """$env:SystemDrive\Users""" } else { $profileList.ProfilesDirectory }
$defaultPath = if ([string]::IsNullOrEmpty($profileList.Default)) { """$usersPath\Default""" } else { $profileList.Default }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
title: Disable Network Navigation Pane in Explorer
description: Disables the network navigation pane/item in the Explorer sidebar for QoL by default, as it is mostly unused
actions:
- !registryValue:
path: 'HKCU\SOFTWARE\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}'
value: 'System.IsPinnedToNameSpaceTree'
data: '0'
type: REG_DWORD
# Use this instead once AME fixes hives issue
# - !registryValue:
# path: 'HKCU\SOFTWARE\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}'
# value: 'System.IsPinnedToNameSpaceTree'
# data: '0'
# type: REG_DWORD
- !cmd:
command: 'reg import "AtlasDesktop\3. General Configuration\File Sharing\Network Navigation Pane\Disable Network Navigation Pane (default).reg"'
exeDir: true
wait: true
runas: currentUserElevated
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ title: Restore Old Context Menu
description: Restores the old context menu in Windows 11
builds: [ '>=22000' ]
actions:
- !registryValue:
path: 'HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32'
value: ''
data: ''
type: REG_SZ
# Use this instead once AME fixes hives issue
# - !registryValue:
# path: 'HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32'
# value: ''
# data: ''
# type: REG_SZ
- !cmd:
command: 'reg import "AtlasDesktop\4. Interface Tweaks\Context Menus\Windows 11\Old Context Menu (default).reg"'
exeDir: true
wait: true
runas: currentUserElevated
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ foreach ($interface in $interfaces) {
sc.exe config NetBT start=disabled | Out-Null

# Set network profile to 'Public Network'
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Public
$profiles = Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles" -Recurse | Where-Object { $_.GetValue("Category") -ne $null }
foreach ($profile in $profiles) {
Set-ItemProperty -Path $profile.PSPath -Name "Category" -Value 0 | Out-Null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ sc.exe config NetBT start=system | Out-Null
choice /c:yn /n /m "Would you like to change your network profile to 'Private'? [Y/N] "
if ($LASTEXITCODE -eq 1) {
# Set network profile to 'Private Network'
$profiles = Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles" -Recurse | Where-Object { $_.GetValue("Category") -ne $null }
foreach ($profile in $profiles) {
Set-ItemProperty -Path $profile.PSPath -Name "Category" -Value 1 | Out-Null
}
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

# Disable network discovery firewall rules
Get-NetFirewallRule | Where-Object {
Expand Down

0 comments on commit e5fda4a

Please sign in to comment.