====== Скачать Windows ISO ====== На примере Windows 10/11 Enterprise. Нужно скачать соответствующий Media Creation Tool, затем cd "C:\temp" .\MediaCreationTool22H2.exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode ru-RU /MediaEdition Enterprise .\MediaCreationToolW11.exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode ru-RU /MediaEdition Enterprise Затем при запросе ввести ключ, например, [[https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys#generic-volume-license-keys-gvlk|Generic Volume License Keys]] (GVLK). ====== UUP ====== https://uupdump.net Сборка под Линуксом # prerequisites sudo apt install aria2 wimtools cabextract chntpw genisoimage -y https://uup.ee/?lang=ru-ru\\ https://tb.rg-adguard.net/public.php ====== Активация ====== https://github.com/massgravel/Microsoft-Activation-Scripts https://massgrave.dev/index.html ====== Сброс локальных паролей в домене ====== The "[[https://www.microsoft.com/en-us/download/details.aspx?id=46899|Local Administrator Password Solution]]" (LAPS) provides management of local account passwords of domain joined computers. Passwords are stored in Active Directory (AD) and protected by ACL, so only eligible users can read it or request its reset. ====== Скрипт в EXE ====== [[https://github.com/MScholtes/PS2EXE|PS2EXE]], [[https://github.com/MScholtes/TechNet-Gallery/tree/master/PS2EXE-GUI|PS2EXE-GUI]] ====== Невозможно установить Windows на этот диск ====== [[https://deploysys.co.uk/2016/07/22/server-2012-with-raid-drive-we-couldnt-install-windows-in-the-location-you-choose-0x80300001/|Server 2012 with RAID drive we couldn’t install windows in the location you choose 0x80300001]] {{:os:win:pasted:20190821-150545.png?600}} Solution: when you get this error, you need to remove the driver CD and put back the windows install DVD. Then re-select your partition. This error message is completely stupid and useless. В случае с установкой через ILO - размонтировать носитель с дровами на RAID, подоткнуть заново образ с виндой, обновить список разделов. ====== Слишком много файлов открыто для совместного доступа ====== Too many files opened for sharing. Симптомы - в общую папку нельзя ничего записать. Решение - выключить кэширование в свойствах общего ресурса, затем выключить автономные файлы на клиентской машине (требуется перезагрузка). [[https://social.technet.microsoft.com/Forums/windows/en-US/5e190629-bdd7-494d-b6e9-2a1e4ce3c188/win7-sp1-file-share-on-2008-server-unable-to-create-the-folder-quotnew-folderquot-too-many?forum=w7itprogeneral|Win7 SP1 File Share on 2008 server - Unable to create the folder "New Folder" Too many files opened for sharing]] ====== Ошибка NETLOGON код 3210 ====== Компы иногда вываливаются из домена, в логах написано: Произошла ошибка при проверке имени этого компьютера на контроллере \\dc2.domain.ru, являющимся контроллером домена Windows для домена DOMAIN, и в результате этот компьютер может отвергать попытки входа в систему. Неспособность проверить имя может быть вызвана наличием в этой сети другого компьютера с таким же именем или тем, что не опознан пароль для этой учетной записи компьютера. Если это сообщение повторяется, обратитесь к сетевому администратору. Решение: if(!(Test-ComputerSecureChannel)) {Test-ComputerSecureChannel -Repair} https://devblogs.microsoft.com/scripting/use-powershell-to-reset-the-secure-channel-on-a-desktop/ ====== Убрать раскладку РУС-US при подключении RDP ====== Добавить параметр DWORD ''IgnoreRemoteKeyboardLayout'' со значением 1 в ''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout''. New-ItemProperty -Name IgnoreRemoteKeyboardLayout -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout" -Value 1 -PropertyType DWORD ====== Вы действительно хотите открыть этот файл? Предупреждение системы безопасности ====== {{:os:win:pasted:20200716-122624.png?300}} Несколько способов отключить: - Свойства IE -> Безопасность -> Местная интрасеть -> Сайты -> Дополнительно -> добавить локальную сеть, типа 192.168.1.*. - "Windows + S" and enter internet options. Select Internet Options. Security tab and click on Custom Level button. Locate Launching applications and unsafe files and select Enable. OK. - regedit: HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations, new String value "LowRiskFileTypes", value data ".avi;.bat;.cmd;.exe;.htm;.html;.lnk;.mpg;.mpeg;.mov;.mp3;.mp4;.mkv;.msi;.m3u;.rar;.reg;.txt;.vbs;.wav;.zip;.7z". Reboot. - gpedit.msc: User Configuration -> Administrative Templates -> Windows Components -> Attachment Manager -> **Do not preserve zone information in file attachments** - enable. **Inclusion list for low file types** - paste the extensions above. и т. д: https://windowsreport.com/open-file-security-warning/ ====== Установить Microsoft Store заново ====== Run Powershell as administrator Get-AppXPackage *WindowsStore* -AllUsers |% {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} Reboot https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_store/fix-andor-reinstall-windows-store/535578bf-4c83-4c55-bd61-f023aad63a39 ====== Менеджер дисковых разделов ====== [[https://www.partitionwizard.com/free-partition-manager.html|MiniTool Partition Wizard Free]] ====== Мультизагрузочная флешка ====== https://www.ventoy.net/en/index.html ====== Вернуть пункт создания текстового документа в контекстное меню ====== ++++ Restore_New_Text_Document_context_menu_item.reg | Windows Registry Editor Version 5.00 ; Created by: Shawn Brink ; Created on: September 28th 2015 ; Updated on: August 28th 2019 ; Tutorial: https://www.tenforums.com/tutorials/24412-add-remove-default-new-context-menu-items-windows-10-a.html ; Text Document [-HKEY_CLASSES_ROOT\.txt\ShellNew] [HKEY_CLASSES_ROOT\.txt\ShellNew] "ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\ 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\ 00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\ 2d,00,34,00,37,00,30,00,00,00 "NullFile"="" [-HKEY_CLASSES_ROOT\.txt] [HKEY_CLASSES_ROOT\.txt] @="txtfile" "Content Type"="text/plain" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.txt\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" [HKEY_CLASSES_ROOT\.txt\ShellNew] "ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\ 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\ 00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\ 2d,00,34,00,37,00,30,00,00,00 "NullFile"="" [-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt] [HKEY_CLASSES_ROOT\SystemFileAssociations\.txt] "PerceivedType"="document" [-HKEY_CLASSES_ROOT\txtfile] [HKEY_CLASSES_ROOT\txtfile] @="Text Document" "EditFlags"=dword:00210000 "FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\ 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\ 32,00,5c,00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,\ 00,2c,00,2d,00,34,00,36,00,39,00,00,00 [HKEY_CLASSES_ROOT\txtfile\DefaultIcon] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,\ 61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\ 00,30,00,32,00,00,00 [HKEY_CLASSES_ROOT\txtfile\shell\open\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\ 00 [HKEY_CLASSES_ROOT\txtfile\shell\print\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\ 00,25,00,31,00,00,00 [HKEY_CLASSES_ROOT\txtfile\shell\printto\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,00,\ 74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,70,00,74,\ 00,20,00,22,00,25,00,31,00,22,00,20,00,22,00,25,00,32,00,22,00,20,00,22,00,\ 25,00,33,00,22,00,20,00,22,00,25,00,34,00,22,00,00,00 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt] [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithList] [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithProgids] "txtfile"=hex(0): [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\UserChoice] "Hash"="hyXk/CpboWw=" "ProgId"="txtfile" [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.txt] [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.txt\UserChoice] "Hash"="FvJcqeZpmOE=" "ProgId"="txtfile" ++++ ====== PDF-принтер ====== https://download.pdfforge.org/download/pdfcreator ====== Локальная учётка при установке Windows ====== With the recent 22H2 update, Microsoft is now forcing customers to use a Microsoft account. - Start the Window 11 setup. - When you see the Let's connect you to a network screen with the grayed-out Next button, press ''Shift + F10''. This launches a command prompt. Now run the following command at the command prompt: oobe\BypassNRO - After you execute this command, your system will restart. Alternatively, you can run the following commands instead:reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f shutdown /r /t 0 - After your system restarts, you need to select your region and keyboard layout once again. But this time, on the Let's connect you to a network screen, you will see a new I don't have internet option. https://4sysops.com/archives/install-windows-10-11-22h2-without-microsoft-account/ ====== Windows 2003 - Основной системный файл (файл ядра системы), используемый для запуска компьютера, не является файлом Microsoft Windows ====== При установке SP2 ошибка "Основной системный файл (файл ядра системы), используемый для запуска компьютера, не является файлом Microsoft Windows". Решение - в ''msconfig'' удалить из строки запуска параметр ''/kernel'' (или выбрать другой пункт загрузки без этого параметра) и перезагрузиться. Пункт с ''/kernel'' появляется после disk2vhd. ====== Сенсорный экран как второй дисплей ====== По умолчанию в Windows, если сенсорный экран не основной монитор, то касания по нему проецируются не на него, а на основной монитор.\\ Так как не всегда удобно делать сенсорный экран основным, нужно зайти в Панель управления -> Параметры планшетного компьютера -> Нажать кнопку "Установить" в блоке настройки (Control Panel -> Tablet PC Settings -> Setup). Затем выбрать правильный экран. https://answers.microsoft.com/en-us/windows/forum/all/solved-working-touch-screen-as-secondary-monitors/bd8c4aad-b16f-467d-921c-7a37a8a76e93 ====== Вы вошли в систему с временным профилем ====== HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList Удалить все кусты .bak. gci hklm:"\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" | ? Name -match ".bak" |Remove-Item -Confirm:$false ====== WMI - неправильное пространство имён ====== Ошибки при запуске команд ''Get-NetConnection''\\ The term 'Get-NetTCPConnection' is not recognized as the name of a cmdlet, function, script file, or operable program.\\ Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\\ или ''gwmi -Namespace 'ROOT/StandardCimv2' -ClassName MSFT_NetTCPConnection''\\ %%gwmi : Неправильное пространство имен "ROOT/StandardCimv2"%% Решение: выполнить в Powershell от админа Set-Service Winmgmt -StartupType Disabled Stop-Service Winmgmt -Force WinMgmt.exe /salvagerepository $env:windir\System32\wbem WinMgmt.exe /resetrepository $env:windir\System32\wbem Set-Service Winmgmt -StartupType Automatic Start-Service Winmgmt https://superuser.com/questions/1152280/get-net-powershell-cmdlets-failing-with-invalid-class ====== Не загружаются иконки для URL-ярлыков, созданных через GPO ====== Файлы .ico не хотят загружаться из сетевого ресурса, нужно переделать путь на локальный.\\ Для этого .ico-файлы копируются на локальный комп (Конф. пользователя -> Настройка -> Конф. Windows -> Файлы), например, Исходные файлы \\example.com\NETLOGON\icons\portal.ico Конечный файл %AppDataDir%\portal.ico Дальше в настройках ярлыков указывать уже локальный файл. ====== CMTrace (удобный просмотр логов) ====== Скачать exe с https://www.microsoft.com/en-us/evalcenter/download-microsoft-endpoint-configuration-manager\\ открыть его в 7-zip, извлечь CMTrace.exe из SMSSETUP\TOOLS. https://www.reddit.com/r/Intune/comments/w948bn/where_to_download_cmtrace_now_that_microsoft_has/