This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
forked from Atlas-OS/Atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
1,627 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/playbook/Executables/AlatasDesktop/2. Drivers/Dont install drivers fr.url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[InternetShortcut] | ||
URL=https://docs.atlasos.net/getting-started/post-installation/drivers |
Binary file added
BIN
+516 Bytes
...ybook/Executables/AlatasDesktop/3. Configuration/Background Apps/Background apps (no).reg
Binary file not shown.
Binary file added
BIN
+568 Bytes
...k/Executables/AlatasDesktop/3. Configuration/Background Apps/No background apps (yes).reg
Binary file not shown.
47 changes: 47 additions & 0 deletions
47
src/playbook/Executables/AlatasDesktop/3. Configuration/Bluetooth/No Bluetooth.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@echo off | ||
|
||
if "%~1" == "/silent" goto main | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call %windir%\AlatasModules\Scripts\RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
:main | ||
:: Disable Bluetooth drivers and services | ||
for %%a in ( | ||
"BluetoothUserService" | ||
"BTAGService" | ||
"BthA2dp" | ||
"BthAvctpSvc" | ||
"BthEnum" | ||
"BthHFEnum" | ||
"BthLEEnum" | ||
"BthMini" | ||
"BTHMODEM" | ||
"BTHPORT" | ||
"bthserv" | ||
"BTHUSB" | ||
"HidBth" | ||
"Microsoft_Bluetooth_AvrcpTransport" | ||
"RFCOMM" | ||
) do ( | ||
call %windir%\AlatasModules\Scripts\setSvc.cmd %%~a 4 | ||
) | ||
|
||
:: Seems to not exist sometimes | ||
call setSvc.cmd BthPan 4 > nul 2>&1 | ||
|
||
:: Disable Bluetooth devices | ||
call %windir%\AlatasModules\Scripts\toggleDev.cmd -Silent '*Bluetooth*' | ||
|
||
attrib +h "%APPDATA%\Microsoft\Windows\SendTo\Bluetooth File Transfer.LNK" | ||
|
||
:: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-connectivity | ||
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Connectivity\AllowBluetooth" /v "value" /t REG_DWORD /d "0" /f > nul | ||
|
||
if "%~1" == "/silent" exit | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
44 changes: 44 additions & 0 deletions
44
src/playbook/Executables/AlatasDesktop/3. Configuration/Bluetooth/Yes Bluetooth.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@echo off | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
:: Enable Bluetooth drivers and services | ||
for %%a in ( | ||
"BluetoothUserService" | ||
"BTAGService" | ||
"BthA2dp" | ||
"BthAvctpSvc" | ||
"BthEnum" | ||
"BthHFEnum" | ||
"BthLEEnum" | ||
"BthMini" | ||
"BTHMODEM" | ||
"BTHPORT" | ||
"bthserv" | ||
"BTHUSB" | ||
"HidBth" | ||
"Microsoft_Bluetooth_AvrcpTransport" | ||
"RFCOMM" | ||
) do ( | ||
call setSvc.cmd %%~a 3 | ||
) | ||
|
||
:: Seems to not exist sometimes | ||
call setSvc.cmd BthPan 3 > nul 2>&1 | ||
|
||
:: Enable Bluetooth devices | ||
call toggleDev.cmd -Silent -Enable '*Bluetooth*' | ||
|
||
:: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-connectivity | ||
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Connectivity\AllowBluetooth" /v "value" /t REG_DWORD /d "2" /f > nul | ||
|
||
choice /c:yn /n /m "Would you like to enable the 'Bluetooth File Transfer' Send To context menu entry? [Y/N] " | ||
if %errorlevel% == 1 attrib -h "%APPDATA%\Microsoft\Windows\SendTo\Bluetooth File Transfer.LNK" | ||
if %errorlevel% == 2 attrib +h "%APPDATA%\Microsoft\Windows\SendTo\Bluetooth File Transfer.LNK" | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
20 changes: 20 additions & 0 deletions
20
...asDesktop/3. Configuration/Diagnostics & Troubleshooting/Tf is Troubleshooting_ (yes).cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
for %%a in ( | ||
"WdiServiceHost" | ||
"WdiSystemHost" | ||
) do ( | ||
call setSvc.cmd %%~a 4 | ||
) | ||
|
||
choice /c:yn /n /m "Would you like to disable Diagnostic Policy Service (DPS)? Note: It breaks Data Usage page in Settings [Y/N] " | ||
if %errorlevel% == 1 call setSvc.cmd DPS 4 | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
14 changes: 14 additions & 0 deletions
14
.../AlatasDesktop/3. Configuration/Diagnostics & Troubleshooting/Yes for Troubleshooting.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
call setSvc.cmd DPS 2 | ||
call setSvc.cmd WdiServiceHost 3 | ||
call setSvc.cmd WdiSystemHost 3 | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
23 changes: 23 additions & 0 deletions
23
...s/AlatasDesktop/3. Configuration/Driver Updates/Enjoy windows update taking resources.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Update] | ||
"ExcludeWUDriversInQualityUpdate"=- | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Update] | ||
"ExcludeWUDriversInQualityUpdate"=- | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings] | ||
"ExcludeWUDriversInQualityUpdate"=- | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | ||
"ExcludeWUDriversInQualityUpdate"=- | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Update\ExcludeWUDriversInQualityUpdate] | ||
"value"=dword:00000000 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata] | ||
"PreventDeviceMetadataFromNetwork"=- | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching] | ||
"SearchOrderConfig"=dword:00000001 | ||
"DontSearchWindowsUpdate"=- |
23 changes: 23 additions & 0 deletions
23
...les/AlatasDesktop/3. Configuration/Driver Updates/Fuck windows update and its drivers.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Update] | ||
"ExcludeWUDriversInQualityUpdate"=dword:00000001 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Update] | ||
"ExcludeWUDriversInQualityUpdate"=dword:00000001 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings] | ||
"ExcludeWUDriversInQualityUpdate"=dword:00000001 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | ||
"ExcludeWUDriversInQualityUpdate"=dword:00000001 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Update\ExcludeWUDriversInQualityUpdate] | ||
"value"=dword:00000001 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata] | ||
"PreventDeviceMetadataFromNetwork"=dword:00000001 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching] | ||
"SearchOrderConfig"=dword:00000000 | ||
"DontSearchWindowsUpdate"=dword:00000001 |
5 changes: 5 additions & 0 deletions
5
...sktop/3. Configuration/Game Mode/GAMER MODE AYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar] | ||
"AllowAutoGameMode"=- | ||
"AutoGameModeEnabled"=- |
5 changes: 5 additions & 0 deletions
5
src/playbook/Executables/AlatasDesktop/3. Configuration/Game Mode/No gamer mode _( (yes).reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar] | ||
"AllowAutoGameMode"=dword:00000000 | ||
"AutoGameModeEnabled"=dword:00000000 |
4 changes: 4 additions & 0 deletions
4
src/playbook/Executables/AlatasDesktop/3. Configuration/HAGS/No HAGS (yes).reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers] | ||
"HwSchMode"=- |
4 changes: 4 additions & 0 deletions
4
src/playbook/Executables/AlatasDesktop/3. Configuration/HAGS/Yes HAGS.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers] | ||
"HwSchMode"=dword:00000002 |
25 changes: 25 additions & 0 deletions
25
...xecutables/AlatasDesktop/3. Configuration/Lanman Workstation (SMB)/Lanman happy (yes).cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
|
||
if "%~1" == "/silent" goto main | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
:main | ||
call setSvc.cmd KSecPkg 0 | ||
call setSvc.cmd LanmanServer 2 | ||
call setSvc.cmd LanmanWorkstation 2 | ||
call setSvc.cmd mrxsmb 3 | ||
call setSvc.cmd mrxsmb20 3 | ||
call setSvc.cmd rdbss 1 | ||
call setSvc.cmd srv2 3 | ||
|
||
DISM /Online /Enable-Feature /FeatureName:"SmbDirect" /NoRestart | ||
|
||
if "%~1" == "/silent" exit /b | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
20 changes: 20 additions & 0 deletions
20
...aybook/Executables/AlatasDesktop/3. Configuration/Lanman Workstation (SMB)/Lanman sad.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
call setSvc.cmd KSecPkg 4 | ||
call setSvc.cmd LanmanServer 4 | ||
call setSvc.cmd LanmanWorkstation 4 | ||
call setSvc.cmd mrxsmb 4 | ||
call setSvc.cmd mrxsmb20 4 | ||
call setSvc.cmd rdbss 3 | ||
call setSvc.cmd srv2 4 | ||
|
||
DISM /Online /Disable-Feature /FeatureName:"SmbDirect" /NoRestart | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
19 changes: 19 additions & 0 deletions
19
...Executables/AlatasDesktop/3. Configuration/Network Discovery/Cant see shit on network.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@echo off | ||
|
||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
|
||
:: Unpin 'Network' from Explorer sidebar | ||
reg add "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f | ||
reg add "HKCR\WOW6432Node\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f | ||
|
||
call setSvc.cmd fdPHost 4 | ||
call setSvc.cmd FDResPub 4 | ||
call setSvc.cmd lmhosts 4 | ||
call setSvc.cmd SSDPSRV 4 | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
48 changes: 48 additions & 0 deletions
48
...es/AlatasDesktop/3. Configuration/Network Discovery/File Sharing/No sharing (default).cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<# : batch portion | ||
@echo off | ||
if "%*" == "" ( | ||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
) | ||
|
||
set args= & set "args1=%*" | ||
if defined args1 set "args=%args1:"='%" | ||
powershell -nop "& ([Scriptblock]::Create((Get-Content '%~f0' -Raw))) %args%" | ||
exit /b %errorlevel% | ||
: end batch / begin PowerShell #> | ||
|
||
$networkDiscoveryConfigPath = "$env:windir\AlatasDesktop\3. Configuration\Network Discovery" | ||
|
||
# Disable network items | ||
Disable-NetAdapterBinding -Name "*" -ComponentID ms_msclient, ms_server, ms_lltdio, ms_rspndr | Out-Null | ||
|
||
# Disable NetBios over TCP/IP | ||
$interfaces = Get-ChildItem "HKLM:\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces" -Recurse | Where-Object { $_.GetValue("NetbiosOptions") -ne $null } | ||
foreach ($interface in $interfaces) { | ||
Set-ItemProperty -Path $interface.PSPath -Name "NetbiosOptions" -Value 2 | Out-Null | ||
} | ||
|
||
# Disable Net Bios service | ||
cmd /c "call setSvc.cmd NetBT 4" | ||
|
||
# Set network profile to 'Public 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 0 | Out-Null | ||
} | ||
|
||
# Disable network discovery firewall rules | ||
Get-NetFirewallRule | Where-Object { | ||
($_.DisplayGroup -eq "File and Printer Sharing" -or $_.DisplayGroup -eq "Network Discovery") -and | ||
$_.Profile -like "*Private*" | ||
} | Disable-NetFirewallRule | ||
|
||
if ($LASTEXITCODE -eq 1) {reg import "$networkDiscoveryConfigPath\Network Navigation Pane\Disable Network Navigation Pane (default).reg" | Out-Null} | ||
|
||
Clear-Host | ||
Write-Host "Completed!" -ForegroundColor Green | ||
Write-Host "Press any key to exit... " -NoNewLine | ||
$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') | Out-Null | ||
exit |
59 changes: 59 additions & 0 deletions
59
...atasDesktop/3. Configuration/Network Discovery/File Sharing/Sharing is caring, right_.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<# : batch portion | ||
@echo off | ||
if "%*" == "" ( | ||
whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( | ||
call RunAsTI.cmd "%~f0" %* | ||
exit /b | ||
) | ||
) | ||
|
||
set args= & set "args1=%*" | ||
if defined args1 set "args=%args1:"='%" | ||
powershell -nop "& ([Scriptblock]::Create((Get-Content '%~f0' -Raw))) %args%" | ||
exit /b %errorlevel% | ||
: end batch / begin PowerShell #> | ||
|
||
$networkDiscoveryConfigPath = "$env:windir\AlatasDesktop\3. Configuration\Network Discovery" | ||
|
||
# Enable network items | ||
Enable-NetAdapterBinding -Name "*" -ComponentID ms_msclient, ms_server, ms_lltdio, ms_rspndr | Out-Null | ||
|
||
# Enable Network Discovery services and its dependencies | ||
Start-Process -FilePath "$networkDiscoveryConfigPath\Enable Network Discovery Services (default)" -ArgumentList "/silent" -WindowStyle Hidden | ||
|
||
# Enable NetBios over TCP/IP | ||
$interfaces = Get-ChildItem "HKLM:\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces" -Recurse | Where-Object { $_.GetValue("NetbiosOptions") -ne $null } | ||
foreach ($interface in $interfaces) { | ||
Set-ItemProperty -Path $interface.PSPath -Name "NetbiosOptions" -Value 2 | Out-Null | ||
} | ||
|
||
# Enable Net Bios service | ||
cmd /c "call setSvc.cmd NetBT 1" | ||
|
||
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 | ||
} | ||
|
||
# Enable network discovery firewall rules | ||
Get-NetFirewallRule | Where-Object { | ||
($_.DisplayGroup -eq "File and Printer Sharing" -or $_.DisplayGroup -eq "Network Discovery") -and | ||
$_.Profile -like "*Private*" | ||
} | Enable-NetFirewallRule | ||
|
||
# Set up network connected devices automatically | ||
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\NcdAutoSetup\Private" -Force -EA SilentlyContinue | Out-Null | ||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\NcdAutoSetup\Private" -Name "AutoSetup" -Value 1 | Out-Null | ||
} | ||
|
||
choice /c:yn /n /m "Would you like to add the Network Navigation Pane to the Explorer sidebar? [Y/N] " | ||
if ($LASTEXITCODE -eq 1) {reg import "$networkDiscoveryConfigPath\Network Navigation Pane\User Network Navigation Pane choice.reg" | Out-Null} | ||
|
||
Clear-Host | ||
Write-Host "Completed!" -ForegroundColor Green | ||
Write-Host "Press any key to exit... " -NoNewLine | ||
$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') | Out-Null | ||
exit |
4 changes: 4 additions & 0 deletions
4
...figuration/Network Discovery/Network Navigation Pane/No Network Navigation Pane (yes).reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}] | ||
"System.IsPinnedToNameSpaceTree"=dword:00000000 |
Oops, something went wrong.