- Dołączył
- 6 Sierpień 2010
- Posty
- 776
- Reakcje/Polubienia
- 0
Re: Windows 10 Final - pytania, porady, odpowiedzi
chociaż podobno, (z komentarzy):
NIE można zainstalować W10 od razu na czysto -wpierw należy zrobić upgrade, a potem na czysto, żeby "klucz W7 lub W8 przeszedł".
Host File:
Co zrobić w razie problemów z aktywacją Windows 10?
Ten problem, z tego co można wyczytać na forach, dotyczy głównie osób, które przesiadają się na „dziesiątkę” przez uaktualnienie wcześniejszych systemów. Tu pomóc powinno uruchomienie wiersza poleceń na prawach administratora i wydanie polecenia slmgr.vbs /ato. Jest to systemowy skrypt, służący do zarządzania procesami aktywacji Windows – więcej przeczytacie o nim na TechNecie.
Zaloguj lub Zarejestruj się aby zobaczyć!
Co zrobić z błędem 0x803F7003?
Ten przyjazny w formie błąd, intuicyjnie zrozumiały dla każdego, oznacza problem z połączeniem z serwerami Microsoftu. Pojawia się najczęściej podczas prób pobierania aplikacji i gier z Windows Store. By go wyeliminować, należy uruchomić wiersz poleceń (nie są potrzebne uprawnienia administratora) i wpisać w nim wsreset.exe. Powinno to spowodować przejście do aplikacji sklepu i wyświetlenie informacji o zresetowaniu pamięci podręcznej.
Po aktualizacji nie działa mi menu Start, aplikacje systemowe na pasku zadań.
Znalazłem rozwiązanie:
1. Press Windows Key + R on your keyboard.
2. Key in PowerShell and hit Enter.
3. Right click on the PowerShell icon on the taskbar and select Run as Administrator.
4. Now paste the following command in the Administrator: Windows PowerShell window and press Enter key:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
5. Wait for PowerShell to execute and complete the command. Ignore the few errors (in red color) that may pop up.
6. When it finishes, try hitting Start and hopefully it’ll start working. If not, this solution won’t apply to you, unfortunately.
Jak odinstalować Windows 10 i wrócić do poprzedniego systemu?
Jeżeli przeprowadziliśmy aktualizację, ale Windows 10 nam się z jakichś powodów nie spodobał, powinniśmy udać się do nowego panelu ustawień. Następnie przechodzimy do zakładki Aktualizacje i zabezpieczenia, a potem z menu po lewej stronie wybieramy pozycję Odzyskiwanie. To właśnie tutaj znajdziemy poszukiwaną opcję – oprócz funkcji resetowania komputera do stanu początkowego i uruchamiania w trybie zaawansowanym, widoczna będzie opcja przywracania wcześniejszego systemu operacyjnego. Jeżeli dokonaliśmy czystej instalacji z obrazu ISO i w jej trakcie sformatowaliśmy znajdujące się na dysku partycje, opcja ta nie będzie dostępna.
![]()
W naszym przypadku wystarczyło wybrać opcję Wróć do systemu Windows 7. System zapyta się o powody naszej decyzji (ankieta nie jest obowiązkowa, niemniej warto poinformować korporację, w czym leży problem), a po potwierdzeniu rozpocznie procedurę przywracania starszej wersji. Oczywiście zalecane jest, aby przed operacją wykonać kopię zapasową wszystkich istotnych plików i ustawień. Teoretycznie proces jest bezpieczny, niemniej nigdy nie wiadomo, czy tak naprawdę nie napotkamy nieprzewidzianych trudności. Oczywiście zupełnie przepadają zmiany w konfiguracji, jakie wykonaliśmy podczas pracy na Windows 10. Poza tym może być także konieczne ponowne zainstalowanie niektórych programów. Samo przywracanie jest natomiast znacznie szybsze niż aktualizacja – podczas naszego testu trwało niecałe pięć minut, po których zobaczyliśmy pulpit Windows 7 i z ulgą odetchnęliśmy.
![]()
Warto pamiętać, że możliwość powrotu jest w pewien sposób ograniczona – mamy na to maksymalnie 30 dni, po tym okresie pliki starszej wersji zostaną automatycznie usunięte, a nam pozostanie ręczna instalacja starszego systemu, lub przywracanie ustawień fabrycznych przy użyciu np. mechanizmów udostępnianych przez producenta sprzętu. Zwróćmy również uwagę na coś jeszcze. Po aktualizacji znajdziemy na dysku spory katalog Windows.old zajmujący nawet kilkanaście gigabajtów. Nie możemy go usuwać, w przeciwnym razie powrót do starszego systemu stanie się niemożliwy.
chociaż podobno, (z komentarzy):
mamy na to maksymalnie 30 dni"- po tygodniu uzytkowania W10 znika ta opcja i konczy sie to sformatowaniem calego dysku. W10 instaluje skrypty na HDD po ktorych ponowna instalacja W7 jest prawie niemozliwa.
Dostęp do dysku zablokowany prosimy skontaktowac sie z Microsoft. Dopiero po 3 krotnym sformatowaniu dysku mozna bez przeszkod zainstalować W7.
Ten system mieli w Waszym PC 24h/dobe zczytujac wszystko co jest na dyskach i wysyla do NSA,CIA,FBI itd.
NIE można zainstalować W10 od razu na czysto -wpierw należy zrobić upgrade, a potem na czysto, żeby "klucz W7 lub W8 przeszedł".
Wersje N systemu Windows 8.1 zawierają większość funkcji systemu Windows 8.1, ale oferują dodatkowe opcje wyboru. Istnieją trzy wersje N systemu Windows 8.1: Windows 8.1 N,Windows 8.1 Pro N i Windows 8.1 Pro Pack N. Wersje N systemu Windows 8.1 umożliwiają samodzielne wybranie odtwarzacza multimediów oraz oprogramowania służącego do zarządzania dyskami CD, DVD i cyfrowymi plikami multimedialnymi oraz do ich odtwarzania. W przypadku wybrania programu Windows Media Player 12 można pobrać go bezpłatnie wraz z powiązanym oprogramowaniem. Wersje N systemu Windows 8.1 są przeznaczone dla klientów mieszkających w krajach Europejskiego Obszaru Gospodarczego i Szwajcarii.
Wersje N systemu Windows 8.1 są dostępne tylko do pobrania lub jako uaktualnienia systemu Windows 7 N.
Windows PowerShell i wklejasz kod:
function get-windowsproductkey([string]$computer)
{
$Reg = [WMIClass] ("\\" + $computer + "\root\default:StdRegProv")
$values = [byte[]]($reg.getbinaryvalue(2147483650,"SOFTWARE\Microsoft\Windows NT\CurrentVersion","DigitalProductId").uvalue)
$lookup = [char[]]("B","C","D","F","G","H","J","K","M","P","Q","R","T","V","W","X","Y","2","3","4","6","7","8","9")
$keyStartIndex = [int]52;
$keyEndIndex = [int]($keyStartIndex + 15);
$decodeLength = [int]29
$decodeStringLength = [int]15
$decodedChars = new-object char[] $decodeLength
$hexPid = new-object System.Collections.ArrayList
for ($i = $keyStartIndex; $i -le $keyEndIndex; $i++){ [void]$hexPid.Add($values[$i]) }
for ( $i = $decodeLength - 1; $i -ge 0; $i--)
{
if (($i + 1) % 6 -eq 0){$decodedChars[$i] = '-'}
else
{
$digitMapIndex = [int]0
for ($j = $decodeStringLength - 1; $j -ge 0; $j--)
{
$byteValue = [int](($digitMapIndex * [int]256) -bor [byte]$hexPid[$j]);
$hexPid[$j] = [byte] ([math]::Floor($byteValue / 24));
$digitMapIndex = $byteValue % 24;
$decodedChars[$i] = $lookup[$digitMapIndex];
}
}
}
$STR = ''
$decodedChars | % { $str+=$_}
$STR
}
get-windowsproductkey .
dajesz enter i masz klucz![]()
How to enable colored titlebars in Windows 10 thanks to this easy trick
Zaloguj lub Zarejestruj się aby zobaczyć!
Fix for the 80240020 error when trying to install Windows 10
Zaloguj
lub
Zarejestruj się
aby zobaczyć!
Czy moja aktualizacja pozostanie darmowa?
Microsoft oficjalnie potwierdził, że aktualizacja, którą otrzymasz, będzie za darmo dla wszystkich tych, którzy skorzystają z niej w ciągu roku od wydania Windows 10. Nie będzie żadnych niespodziewanych opłat, nie będzie za sam system żadnych subskrypcji, czy płatnych abonamentów. Jeśli użytkownik straci instalację Windows 10, do której jest uprawniony na mocy, będzie mógł ją odtworzyć także po 29 lipca 2016 roku. Licencja pozyskana poprzez aktualizację starszych wersji systemu w praktyce niczym nie różni się od licencji wcześniej znanych z Windows. Dostajemy z nią pięć lat wsparcia podstawowego, w trakcie których Microsoft będzie przygotowywał łatki bezpieczeństwa oraz ulepszenia systemowe, a następnie pięć lat wsparcia rozszerzonego, podczas którego system otrzymywać będzie tylko łatki bezpieczeństwa. Jak to się ma do modelu permanentnej aktualizacji Windows-jako-usługi, tego nikt nie potrafi dokładnie wyjaśnić.
Czy można odinstalować Windows 10?
Aktualizacja z działającej instalacji Windows 7 i/lub 8.1 powinna wygenerować plik odzyskiwania systemu, z którym będzie można wrócić do wersji
poprzedniej.
When I upgrade a preinstalled (OEM) or retail version of Windows 7 or Windows 8/8.1 license to Windows 10, does that license remain OEM or become a retail license?
If you upgrade from a OEM or retail version of Windows 7 or Windows 8/8.1 to the free Windows 10 upgrade this summer, the license is consumed into it. Because the free upgrade is derived from the base qualifying license, Windows 10 will carry that licensing too.
If you upgrade from a retail version, it carries the rights of a retail version.
If you upgrade from a OEM version, it carries the rights of a OEM version.
Full version (Retail):
- Includes transfer rights to another computer.
- Doesn't require a previous qualifying version of Windows.
- Expensive
Upgrade version (Retail):
- Includes transfer rights to another computer.
- require a previous qualifying version of Windows.
- Expensive, but cheaper than full version
OEM :
OEM versions of Windows are identical to Full License Retail versions except for the following:
- OEM versions do not offer any free Microsoft direct support from Microsoft support personnel
- OEM licenses are tied to the very first computer you install and activate it on
- OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard
- OEM versions cannot be used to directly upgrade from an older Windows operating system
Way to Disable Keylogger/ Telemetry RTM
REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\ /v AllowTelemetry /t REG_DWORD /d 0 /f
Use this Also for Other Editions
after installing windows 10 and before creating ur account pls open cmd.exe
with Shift + F10
then start the process
use Sc.exe to delete the 2 services
run this:
sc delete dmwappushsvc
sc delete diagtrack
and deny system accessing the file AutoLogger-Diagtrack-Listener.etl with cacls
go to the dir
cd C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger
echo "" > AutoLogger-Diagtrack-Listener.etl
cacls AutoLogger-Diagtrack-Listener.etl /d SYSTEM
thats all i run a test for day all good but its running under the hood / kernel its very hard to ensure
i had no system crash or hiccups from this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RestartExplorer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
ExitExplorer();
System.Threading.Thread.Sleep(1000);
System.Diagnostics.Process.Start("explorer.exe");
}
static void ExitExplorer()
{
IntPtr hWndTray = FindWindow("Shell_TrayWnd", null);
PostMessage(hWndTray, 0x5B4, IntPtr.Zero, IntPtr.Zero);
}
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr FindWindow(string WindowsClass, string WindowTitle);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("user32.dll", SetLastError = true)]
static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
}
}
Zaloguj
lub
Zarejestruj się
aby zobaczyć!
Function Restart_Explorer {
Try {[Restart.Explorer]|out-null} catch {
Add-Type -TypeDefinition @'
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace Restart
{
public class Explorer
{
[STAThread]
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr FindWindow(string WindowsClass, string WindowTitle);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("user32.dll", SetLastError = true)]
static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
public static void Now()
{
ExitExplorer();
System.Threading.Thread.Sleep(2000);
System.Diagnostics.Process.Start("explorer.exe");
}
static void ExitExplorer(){
IntPtr hWndTray = FindWindow("Shell_TrayWnd", null);
PostMessage(hWndTray, 0x5B4, IntPtr.Zero, IntPtr.Zero);
}}}
'@
}
[Restart.Explorer]::Now()
}
Set-Alias RE Restart_Explorer
All credits to HB860 for the initial snip, added error handling to prevent causing a "Type" already exists error.
Notes for readers, use single quotes on your here strings, i think double quotes was parsing differently. Be sure to add public interface to your internals so that powershell can .net reflect them. Also changed the namespace and class, etc so that it would work like this "[Restart.Explorer]::Now()" which is how powershell accesses .net assemblies.
Does it needs a do loop, to not respawn explorer.exe until the first explorer is fully shutdown ?? I set it to two seconds, cause one time it didn't re-spawn a taskbar (but a explorer window) suspect it got called too early.
ExitExplorer();
System.Threading.Thread.Sleep(2000);
System.Diagnostics.Process.Start("explorer.exe");
I'll probably try checking getprocesses tomorrow, no worries.
Zaloguj lub Zarejestruj się aby zobaczyć!
Restart_Explorer_Gracefully_Right_Click_Shell_Extension.7z (1.5 KB, 26 views)
Zaloguj
lub
Zarejestruj się
aby zobaczyć!
Download certificates:
Asimov:
Zaloguj lub Zarejestruj się aby zobaczyć!
Zaloguj lub Zarejestruj się aby zobaczyć!
Telemetry:
Zaloguj lub Zarejestruj się aby zobaczyć!
Zaloguj lub Zarejestruj się aby zobaczyć!
Batch:
I guess this blocks most of the reporting.
Zaloguj lub Zarejestruj się aby zobaczyć!
1. Disable Windows Error Reporting.
2. Clear the Event cache
3. Add sites to the hosts file
4. Disallow Certificates
5. Make it easy to do it all with one press of a button.
Power Shell Script
1. Disable Error Reporting / 2. Clear the Cache
$host.ui.RawUI.WindowTitle = "Disable Error Reporting"
Write-Host Privacy Tweaks
Write-Host
Write-Host Disable Windows Error Reporting
Disable-WindowsErrorReporting
Write-Host Clear the Event Cache
wevtutil el | Foreach-Object {wevtutil cl "$_"}
exit
Batch Script
3. Add to host file
@echo off
call :Add-Hosts-Line-Function 0.0.0.0 someip.address.com
pause
call :Remove-Hosts-Line-Function 0.0.0.0 someip.address.com
pause
call :flushdns
goto :eof
:Add-Hosts-Line-Function
IF %1 EQU "" echo :Add-Hosts-Line-Function missing 1st parameter&pause&exit
IF %2 EQU "" echo :Add-Hosts-Line-Function missing 2nd parameter&pause&exit
:make copy to work with since system won't let you directly edit hosts file
attrib -h -s "%WinDir%\System32\drivers\etc\hosts" >nul
xcopy /chy "%WinDir%\System32\drivers\etc\hosts" "%TMP%" >nul
del /q/f "%WinDir%\System32\drivers\etc\hosts" >nul
for /f "delims=" %%h in ('type "%TMP%\hosts" ^| find /c /i "%2"') do (
set "result=%%h" >nul
)
if "%result%"=="0" (
>>"%TMP%\hosts" echo %1 %2
echo %1 %2 added to hosts file
move /y "%TMP%\hosts" "%WinDir%\System32\drivers\etc\hosts" >nul
attrib +h "%WinDir%\System32\drivers\etc\hosts" >nul
exit /b
) else (
echo %2 already exists in hosts file
del /q/f "%TMP%\hosts" >nul
exit /b
)
::end function
:Remove-Hosts-Line-Function
IF %1 EQU "" echo :Remove-Hosts-Line-Function missing 1st parameter&pause&exit
IF %2 EQU "" echo :Remove-Hosts-Line-Function missing 2nd parameter&pause&exit
:make copy to work with since system won't let you directly edit hosts file
attrib -h -s "%WinDir%\System32\drivers\etc\hosts" >nul
xcopy /chy "%WinDir%\System32\drivers\etc\hosts" "%TMP%" >nul
del /q/f "%WinDir%\System32\drivers\etc\hosts" >nul
for /f "delims=" %%h in ('type "%TMP%\hosts" ^| find /c /i "%2"') do (
set "result=%%h" >nul
)
if "%result%" geq "1" (
for /f "tokens=*" %%a in ('findstr /in ".*" "%TMP%\hosts"') do (
echo %%a>>"%TMP%\l_1.x"
)
for /f "eol=# tokens=1,2 delims=:" %%a in ('findstr /i "%2" "%TMP%\l_1.x"') do (
set stringlines=%%a
)
setlocal enabledelayedexpansion
set /a "beforelines=stringlines-1"
set /a "afterlines=stringlines+1"
for /f "eol=# tokens=2* delims=:" %%a in ('findstr /in ".*" "%TMP%\l_1.x"') do (
if %%a leq !beforelines! echo.%%b>>"%tmp%\l_2.x"
if %%a geq !afterlines! echo.%%b>>"%tmp%\l_2.x"
)
endlocal
move /y "%TMP%\l_2.x" "%WinDir%\System32\drivers\etc\hosts" >nul
attrib +h "%WinDir%\System32\drivers\etc\hosts" >nul
del /q/f "%TMP%\hosts" >nul
del /q/f "%TMP%\*.x" >nul
echo %2 successfully removed from hosts file
exit /b
) else (
echo %2 does not exist in hosts file
del /q/f "%TMP%\hosts" >nul
del /q/f "%TMP%\*.x" >nul
exit /b
)
::end function
:flushdns
call ipconfig /flushdns >nul
exit /b
PowerShell Script
4. Disallow Certificates
$host.ui.RawUI.WindowTitle = "Disallow certificates for Telemetry"
Write-Host Disallow Certificates
Write-Host
$storageDir = $pwd
$webclient = New-Object System.Net.WebClient
$url = "http://www.microsoft.com/pkiops/certs/MicSecSerCA2011_2011-10-18.crt"
$file = "MicSecSerCA2011_2011-10-18.crt"
$webclient.DownloadFile($url,$file)
$url = "http://www.microsoft.com/pki/mscorp/msitwww2.crt"
$file = "msitwww2.crt"
$webclient.DownloadFile($url,$file)
certutil -addstore "Disallowed" "$PWD/0msitwww2.crt"
certutil -addstore "Disallowed" "$PWD/MicSecSerCA2011_2011-10-18.crt"
Still working on grabbing the file with bitsadmin I may just switch this over to powershell.
Host File:
Microsoft Windows [Version 6.4.9841]
(c) 2014 Microsoft Corporation. All rights reserved.
C:\Windows\System32>cd /d "C:\Users\s1ave77\Desktop\###.TELEMETRY.###"
C:\Users\s1ave77\Desktop\###.TELEMETRY.###>powershell -executionpolicy bypass -File privacy.pack.by.Smorgan.ps1
Privacy Tweaks
Disable Windows Error Reporting
True
Clear the Event Cache
Certificate Section
Disallowed "Untrusted Certificates"
Certificate "Microsoft IT SSL SHA2" added to store.
CertUtil: -addstore command completed successfully.
Disallowed "Untrusted Certificates"
Certificate "Microsoft Secure Server CA 2011" added to store.
CertUtil: -addstore command completed successfully.
Hosts Modification
Disable DiagTracking
Set-ItemProperty : Cannot find path
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack\TestHooks' because it does not
exist.
At C:\Users\s1ave77\Desktop\###.TELEMETRY.###\privacy.pack.by.Smorgan.ps1:43 char:1
+ Set-ItemProperty -path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microso ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKEY_LOCAL_MACH...Track\TestHooks:String) [Set-ItemProperty], ItemNotFo
undException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
C:\Users\s1ave77\Desktop\###.TELEMETRY.###>
1.03
Zaloguj lub Zarejestruj się aby zobaczyć!
-Added Test for Hosts.backup
-Corrected registry path with New-ItemProperty
-Corrected Hosts Updater
OK I seem to have all my bits functioning as intended.
Changes from v1:
hosts add/remove lines (null route a couple numeric ip address parents)
cert disallow add/delete
added a return to menu option on quit though it should be noted that if you mod the registry with the enable or disable, a restart will be required.
I've left all the various options as their own menu choice so that people can use this to identify which changes are necessary.
Here's the actual script. The 7z file contains the 2 extra certs from deagles' post:
Zaloguj lub Zarejestruj się aby zobaczyć!
I've error-corrected an error-out portion of my hosts functions so that it won't delete the original hosts file unless it's going to move in a replacement. This will help if people use the functions out of order or something.
Note: This script in particular will likely require heavy editing for future builds of win10tp.
It is to be used as a framework for future efforts.
It's a lot easier to edit an existing script than it is to write a whole new one from scratch.
This is also not something you *NEED* to do to win10tp. It is just an effort to figure out how to control the data transfers going on. We have no idea if this will effectively block the keylogger data from being transferred or even collected. The purpose behind the script is to help diagnose the various methods. It could be as simple as adding the certs to block all the data transfers.. We don't know. Needs more testing...
Zaloguj
lub
Zarejestruj się
aby zobaczyć!
Your powershell snipplet lacks the ending lines for both functions. When adding both parts to Mr Jinjes one it runs correctly:
Zaloguj lub Zarejestruj się aby zobaczyć!
Zaloguj lub Zarejestruj się aby zobaczyć!
Zaloguj
lub
Zarejestruj się
aby zobaczyć!
info : dobreprogramy.pl.google.mdl.inneDisable-telemetry.cmd:
Code:
@echo off
title Disable/Enable Windows Telemetry
color 1f
:Begin UAC check and Auto-Elevate Permissions
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo:
echo Requesting Administrative Privileges...
echo Press YES in UAC Prompt to Continue
echo:
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
:Check the key:
(reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry"|find /i "0x0")>NUL 2>NUL
if %errorlevel% NEQ 0 GOTO :KEYOFF
:KEYON
echo ============================================================
echo Windows Telemetry currently disabled.
echo Would you like to re-enable it? (Y/N)
echo ============================================================
echo.
choice /c yn /n
If %ERRORLEVEL% NEQ 1 GOTO :QUIT
Echo Deleting Telemetry Registry key
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /F>NUL 2>NUL
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
Echo.
Echo Windows Telemetry enabled
Echo.
goto :QUIT
:KEYOFF
echo ============================================================
echo Windows Telemetry is currently enabled.
echo Would you like to disable it? (Y/N)
echo ============================================================
echo.
choice /c yn /n
If %ERRORLEVEL% NEQ 1 GOTO :QUIT
Echo Changing Registry key
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry">NUL 2>NUL
if %errorlevel% equ 1 REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /F>NUL 2>NUL
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /D 0 /T REG_DWORD /F>NUL 2>NUL
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
Echo.
Echo Windows Telemetry disabled
Echo.
goto :QUIT
:QUIT
echo ============================================================
echo Press any key to exit...
echo ============================================================
pause>NUL
goto :EOF
:ERROR
echo ============================================================
echo The script ran into an unexpected error setting reg key.
echo Press any key to exit...
echo ============================================================
pause>NUL
goto :EOF


.