Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 0619472

Browse files
committed
Replace "Modern UI" with more precise "UWP" in tweak descriptions, closes #327
1 parent c4e9f09 commit 0619472

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Win10.psm1

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -402,33 +402,33 @@ Function EnableBiometrics {
402402
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Biometrics" -Name "Enabled" -ErrorAction SilentlyContinue
403403
}
404404

405-
# Disable access to camera from ModernUI applications
405+
# Disable access to camera from UWP apps
406406
Function DisableCamera {
407-
Write-Output "Disabling access to camera from ModernUI applications..."
407+
Write-Output "Disabling access to camera from UWP apps..."
408408
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Camera")) {
409409
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Camera" -Force | Out-Null
410410
}
411411
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Camera" -Name "AllowCamera" -Type DWord -Value 0
412412
}
413413

414-
# Enable access to camera in ModernUI applications
414+
# Enable access to camera in UWP apps
415415
Function EnableCamera {
416-
Write-Output "Enabling access to camera from ModernUI applications..."
416+
Write-Output "Enabling access to camera from UWP apps..."
417417
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Camera" -Name "AllowCamera" -ErrorAction SilentlyContinue
418418
}
419419

420-
# Disable access to microphone in ModernUI applications
420+
# Disable access to microphone in UWP apps
421421
Function DisableMicrophone {
422-
Write-Output "Disabling access to microphone in ModernUI applications..."
422+
Write-Output "Disabling access to microphone in UWP apps..."
423423
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy")) {
424424
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Force | Out-Null
425425
}
426426
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessMicrophone" -Type DWord -Value 2
427427
}
428428

429-
# Enable access to microphone in ModernUI applications
429+
# Enable access to microphone in UWP apps
430430
Function EnableMicrophone {
431-
Write-Output "Enabling access to microphone from ModernUI applications..."
431+
Write-Output "Enabling access to microphone from UWP apps..."
432432
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessMicrophone" -ErrorAction SilentlyContinue
433433
}
434434

@@ -1385,16 +1385,16 @@ Function EnableIndexing {
13851385
Start-Service "WSearch" -WarningAction SilentlyContinue
13861386
}
13871387

1388-
# Disable Modern UI swap file
1389-
# This disables creation and use of swapfile.sys and frees 256 MB of disk space. Swapfile.sys is used only by Modern UI apps. The tweak has no effect on the real swap in pagefile.sys.
1388+
# Disable UWP apps swap file
1389+
# This disables creation and use of swapfile.sys and frees 256 MB of disk space. Swapfile.sys is used only by UWP apps. The tweak has no effect on the real swap in pagefile.sys.
13901390
Function DisableSwapFile {
1391-
Write-Output "Disabling Modern UI swap file..."
1391+
Write-Output "Disabling UWP apps swap file..."
13921392
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SwapfileControl" -Type Dword -Value 0
13931393
}
13941394

1395-
# Enable Modern UI swap file
1395+
# Enable UWP apps swap file
13961396
Function EnableSwapFile {
1397-
Write-Output "Enabling Modern UI swap file..."
1397+
Write-Output "Enabling UWP apps swap file..."
13981398
Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SwapfileControl" -ErrorAction SilentlyContinue
13991399
}
14001400

0 commit comments

Comments
 (0)