This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
windows_10 [2019/07/14 14:25] ww |
windows_10 [2022/03/16 09:38] (current) |
||
|---|---|---|---|
| Line 170: | Line 170: | ||
| [[https:// | [[https:// | ||
| - | **Odinstalace již nainstalovaných user apps** | ||
| - | * Spustit jako poslední krok před '' | + | ---- |
| - | <code powershell> | + | ===== Deaktivace Defenderu (platné k Win10 2004) ===== |
| - | # *************************************************************************** | + | |
| - | # | + | |
| - | # File: RemoveUserApps.ps1 | + | |
| - | # | + | |
| - | # Version: | + | |
| - | # | + | |
| - | # Author: | + | |
| - | # | + | |
| - | # Purpose: | + | |
| - | # device, to avoid sysprep failures. | + | |
| - | # | + | |
| - | # Usage: | + | |
| - | # and should be placed right before the sysprep step. | + | |
| - | # | + | |
| - | # For this script to run, script execution must be enabled, e.g. | + | |
| - | # " | + | |
| - | # task sequence step if needed, see http:// | + | |
| - | # for more information. | + | |
| - | # | + | |
| - | # ------------- DISCLAIMER ------------------------------------------------- | + | |
| - | # This script code is provided as is with no guarantee or waranty concerning | + | |
| - | # the usability or impact on systems and may be used, distributed, | + | |
| - | # modified in any way provided the parties agree and acknowledge the | + | |
| - | # Microsoft or Microsoft Partners have neither accountabilty or | + | |
| - | # responsibility for results produced by use of this script. | + | |
| - | # | + | |
| - | # Microsoft will not provide any support through any means. | + | |
| - | # ------------- DISCLAIMER ------------------------------------------------- | + | |
| - | # | + | |
| - | # *************************************************************************** | + | |
| - | # --------------------------------------------------------------------------- | + | **Nejdříve nutno vypnout Tamper Protection.** |
| - | # Get-LogDir: | + | |
| - | # --------------------------------------------------------------------------- | + | |
| - | function Get-LogDir | + | <code winbatch> |
| - | { | + | rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!! |
| - | try | + | |
| - | { | + | |
| - | $ts = New-Object -ComObject Microsoft.SMS.TSEnvironment -ErrorAction Stop | + | |
| - | if ($ts.Value(" | + | |
| - | { | + | |
| - | $logDir = $ts.Value(" | + | |
| - | } | + | |
| - | else | + | |
| - | { | + | |
| - | $logDir = $ts.Value(" | + | |
| - | } | + | |
| - | } | + | |
| - | catch | + | |
| - | { | + | |
| - | $logDir = $env:TEMP | + | |
| - | } | + | |
| - | return $logDir | + | |
| - | } | + | |
| + | rem Disable Tamper Protection First !!!!! | ||
| + | rem https:// | ||
| + | reg add " | ||
| - | # --------------------------------------------------------------------------- | + | rem https:// |
| - | # Main logic | + | rem https:// |
| - | # --------------------------------------------------------------------------- | + | |
| - | $logDir = Get-LogDir | + | rem Exclusion in WD can be easily set with an elevated cmd, so that makes it super easy to damage any pc. |
| - | Start-Transcript " | + | rem WMIC /NAMESPACE:\\root\Microsoft\Windows\Defender PATH MSFT_MpPreference call Add ExclusionPath="xxxxxx |
| - | # Get the list of provisioned packages | + | rem To disable System Guard Runtime Monitor Broker |
| - | $provisioned = Get-AppxProvisionedPackage -online | + | rem reg add " |
| - | # Check each installed app | + | rem To disable Windows Defender Security Center include this |
| - | $count = 0 | + | rem reg add " |
| - | for ($i=1; $i -ile 2; $i++) { | + | rem 1 - Disable Real-time protection |
| - | # Check each app (two loops just in case there are dependencies that can't be removed until the | + | reg delete " |
| - | # main app is removed) | + | reg add " |
| - | Get-AppxPackage | ? {$_.SignatureKind -ne ' | + | reg add " |
| - | | + | reg add " |
| - | $found = $provisioned | ? {$_.DisplayName -eq $current.Name | + | reg add " |
| - | if ($found.Count | + | reg add " |
| - | { | + | reg add " |
| - | Write-Host "$($current.Name) version $($current.Version) is not provisioned, | + | reg add " |
| - | | + | reg add " |
| - | | + | reg add " |
| - | } | + | reg add " |
| - | } | + | reg add " |
| - | } | + | reg add " |
| - | Write-Host | + | reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SpyNet" |
| - | Stop-Transcript | + | rem 0 - Disable Logging |
| - | </code> | + | reg add " |
| + | reg add " | ||
| - | ---- | + | rem Disable WD Tasks |
| + | schtasks /Change /TN " | ||
| + | schtasks /Change /TN " | ||
| + | schtasks /Change /TN " | ||
| + | schtasks /Change /TN " | ||
| + | schtasks /Change /TN " | ||
| - | ===== Metro Apps #2 ===== | + | rem Disable WD systray icon |
| + | reg delete " | ||
| + | reg delete " | ||
| - | Provisioned | + | rem Remove WD context menu |
| - | <code powershell> | + | reg delete |
| - | $a = Get-AppXProvisionedPackage -Online | Select PackageName | Select-String -notmatch | + | reg delete |
| + | reg delete | ||
| - | $b = $a.Line.Replace("@{PackageName=","" | + | rem Disable WD services |
| + | reg add "HKLM\System\CurrentControlSet\Services\WdBoot" | ||
| + | reg add "HKLM\System\CurrentControlSet\Services\WdFilter" | ||
| + | reg add " | ||
| + | reg add " | ||
| + | reg add " | ||
| - | foreach($pkg in $b) | + | rem Run twice to disable WD services !!!!! |
| - | { | + | |
| - | | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | Už nainstalované | + | |
| - | <code powershell> | + | |
| - | $d = Get-AppxPackage -AllUsers | Select PackageFullName | Select-String -notmatch " | + | |
| - | + | ||
| - | $e = $d.Line.Replace(" | + | |
| - | foreach($pkg in $e) | + | pause |
| - | { | + | |
| - | | + | |
| - | } | + | |
| </ | </ | ||
| Line 304: | Line 256: | ||
| * Přidat Úplné řízení. | * Přidat Úplné řízení. | ||
| * Upravit Attributes, změnit hodnotu 20040000 na 700100120. | * Upravit Attributes, změnit hodnotu 20040000 na 700100120. | ||
| + | |||
| + | Vytažení zástupce na Poslední složky do Průzkumníka: | ||
| + | Start > Spustit > shell::: | ||
| + | A pak vytáhnout myší složku do " | ||
| ---- | ---- | ||