madbomb122 / win10script Goto Github PK
View Code? Open in Web Editor NEWWin 10 Powershell Script to tweak and change windows settings
License: MIT License
Win 10 Powershell Script to tweak and change windows settings
License: MIT License
Disabling Telemetry = Enabling
Enabling Telemetry = Disabling
Line 1683 in f368023
Is there something wrong with this part of the script?
The toggles between Cortana enabling or disabling are change some another registries(Ink & Pen) but not affecting Cortana
If($Cortana -eq 0) {
If($ShowSkipped -eq 1){ DisplayOut 'Skipping Cortana...' -C 15 }
} ElseIf($Cortana -eq 1) {
DisplayOut 'Enabling Cortana...' -C 11
$Path = 'HKCU:\SOFTWARE\Microsoft\InputPersonalization'
Remove-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Personalization\Settings' -Name 'AcceptedPrivacyPolicy'
Remove-ItemProperty -Path "$Path\TrainedDataStore" -Name 'HarvestContacts'
Set-ItemProperty -Path $Path -Name 'RestrictImplicitTextCollection' -Type DWord -Value 0
Set-ItemProperty -Path $Path -Name 'RestrictImplicitInkCollection' -Type DWord -Value 0
} ElseIf($Cortana -eq 2) {
DisplayOut 'Disabling Cortana...' -C 12
$Path = CheckSetPath 'HKCU:\SOFTWARE\Microsoft\Personalization\Settings'
Set-ItemProperty -Path $Path -Name 'AcceptedPrivacyPolicy' -Type DWord -Value 0
$Path = CheckSetPath 'HKCU:\SOFTWARE\Microsoft\InputPersonalization'
Set-ItemProperty -Path $Path -Name 'RestrictImplicitTextCollection' -Type DWord -Value 1
Set-ItemProperty -Path $Path -Name 'RestrictImplicitInkCollection' -Type DWord -Value 1
$Path = CheckSetPath "$Path\TrainedDataStore"
Set-ItemProperty -Path $Path -Name 'HarvestContacts' -Type DWord -Value 0
}
I've found some Cortana HKCU registries that the script doesnt change:
"CortanaEnabled"
"CanCortanaBeEnabled"
"DeviceHistoryEnabled"
"CortanaConsent"
"CortanaInAmbientMode"
"BingSearchEnabled"
"VoiceActivationEnableAboveLockscreen"
"HistoryViewEnabled"
Describe the bug
On a fresh Windows 10 install I selected "Show/Add" for all of the folders under "This PC". After I click run, before it reboots, I can see the icons when I open File Explorer. But after reboot the icons disappear again.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Icons should show when in File Explorer
Desktop (please complete the following information):
Additional context
D:\some\spaced folder\
_Win10-Script-Run.bat
Win10-Menu.ps1
is launched.
A PS console windows is open and closed immediately.
If you want me to put an App that can be 'Hide/Unhide/Uninstall' using my script please do the following
Give me the result of the following in powershell
$pkgname='NAME OF APP HERE'
(Get-AppxPackage "*$pkgname*").Name
and the name of what the app is called.
Example:
$pkgname='Netflix'
(Get-AppxPackage "*$pkgname*").Name
will return 4DF9E0F8.Netflix
so for the above example you reply with
4DF9E0F8.Netflix
Netflix
Please ONLY put apps that are installed on new install/computers and are NOT OEM apps (like dell, hp, etc)
Tested: v.3.5.0
Offending line:
Set-ItemProperty -LiteralPath 'HKCR:\*\shellex\ContextMenuHandlers\Sharing' -Name '(Default)' -Type String -Value ''
but the last one works fine:
Set-ItemProperty -Path 'HKCR:\*\shellex\ContextMenuHandlers\ModernSharing' -Name '(Default)' -Type String -Value ''
Windows 10 Pro 1803
Thanks for your awesome work!
With the last spring update, Windows add a new feature called Timeline.
It is possible to add enable/disable this feature from Win10Script?
Following this link by Microsoft, it can be done by the key register
EnableActivityFeed
in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
.
Thanks :)
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Thanks for this project, there are a couple of options I would like to additionally be able to configure.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to have control over the following windows options:
Enable the screensaver.
Set the screensaver wait time.
Prompt and set local account password
Prompt login with password after resume from screensaver
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Ideally this would help in locking down the PC.
Hi, just wanted to drop a quick note. I'm far from an expert powershell guru, but I did run across something that the script was not doing properly.
When selecting the option to show the task manager, it gets stuck in an endless loop while waiting for a value to show up that just won't ever.
Lines 2060 and 2065 (Script version 3.2.8 end with piping the output of the variable assignment to Out-Null. So the variable ends up with a null value.
Removing the pipe to null solves the problem.
Before:
$TaskManKey = Get-ItemProperty -Path $Path -Name "Preferences" | Out-Null
If(!($TaskManKey)) {
$taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru
While(!($TaskManKey)) {
Start-Sleep -m 250
$TaskManKey = Get-ItemProperty -Path $Path -Name "Preferences" | Out-Null
}
After:
$TaskManKey = Get-ItemProperty -Path $Path -Name "Preferences"
If(!($TaskManKey)) {
$taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru
While(!($TaskManKey)) {
Start-Sleep -m 250
$TaskManKey = Get-ItemProperty -Path $Path -Name "Preferences"
}
Like I said, I'm still at an intermediate level with Powershell, so if my thoughts are wrong, please let me know. Otherwise, I hope I helped.
-- David
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.