Uncategorized

RDS 2019 – default printer changes after reconnect

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider

REG_DWORD: RemovePrintersAtLogoff

VALUE: 0

This will basically prevent the printers being removed each time the users log off/disconnect which will subsequently prevent the corruptions.

Reset Windows Update components manually

net stop bits
net stop wuauserv
net stop cryptsvc

Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”

%Systemroot%\SoftwareDistribution\DataStore
%Systemroot%\SoftwareDistribution\Download
%Systemroot%\System32\catroot2

sc.exe sdset bits D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)

cd /d %windir%\system32

regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll

netsh winsock reset

net start bits
net start wuauserv
net start cryptsvc

Openvas installation log

apt-get upgrade
sudo apt install openvas
gvm-setup
systemctl enable gvmd.service
systemctl enable redis-server
systemctl enable gsad
systemctl enable ospd-openvas
cd /lib/systemd/system
nano gsad.service
##replace 127.0.0.1 to 0.0.0.0
reboot
sudo runuser -u _gvm — gvmd –user=admin –new-password=newstrongpassword
sudo runuser -u _gvm — greenbone-nvt-sync

Установка сертификата для Remote Desktop Gateway

Перед установкой, убедитесь, что:

  • адрес сервера указан в DNS
  • на сервере установлена роль Remote Desktop Gateway

Запустите скрипт

wacs.exe --target manual --host rds.example.com --certificatestore My --installation iis,script --installationsiteid 1 --script "Scripts\ImportRDGateway.ps1" --scriptparameters "{CertThumbprint}"

где rds.example.com — адрес вашего сервера.

Refresh computer group membership without rebooting

For Windows 2008 and higher:

psexec -s -i -d cmd.exe

C:\Windows\system32>whoami
nt authority\system

-- List the session 0 tickets (0x3e7 is the machine session 0)
klist -lh 0 -li 0x3e7  

-- Purge the session 0 tickets  
klist -lh 0 -li 0x3e7 purge  

Should display:  

Current LogonId is 0:0x3e7  
        Deleting all tickets:  
        Ticket(s) purged! 

Активация продуктов Microsoft собственным KMS сервером


Windows

slmgr.vbs -ipk %OS KMS Serial%
slmgr.vbs -skms %kms.url%
slmgr.vbs -ato

Office
cd /d “C:\Program Files (x86)\Microsoft Office\Office16”
cscript ospp.vbs /sethst:%kms.url%
cscript ospp.vbs /act

Get-CimInstance SoftwareLicensingProduct -Filter "Name like 'Windows%'" | where { $_.PartialProductKey } | select Description, LicenseStatus

Возможные значения параметра LicenseStatus:

  • 0 — Unlicensed
  • 1 — Licensed
  • 2 — OOBGrace
  • 3 – OOTGrace – конфигурация компьютера изменена, и он не может активироваться автоматически, или прошло более 180 дней
  • 4 — NonGenuineGrace
  • 5 – Notification – срок ознакомительного использования Windows окончен
  • 6 – ExtendedGrace (срок использования ознакомительной версии Windows можно продлить несколько раз с помощью команды slmgr /rearm или конвертировать в полноценную)

Например, чтобы установить ключ продукта для выпуска Windows Server 2022 Datacenter, выполните следующую команду и нажмите клавишу Enter:

Копировать

slmgr /ipk WX4NM-KYWYW-QJJR4-XV3QB-6VM33

Универсальные ключи многократной установки (GVLK)

В таблицах ниже вы найдете ключи GVLK для каждой версии и выпуска Windows. LTSC означает Long-Term Servicing Channel, а LTSB — Long-Term Servicing Branch.

Windows Server (версии LTSC)

Windows Server 2022

Версия операционной системы Ключ продукта клиента KMS

Windows Server 2022 Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33

Windows Server 2022 Standard VDYBN-27WPP-V4HQT-9VMD4-VMK7H

Windows Server 2019

Версия операционной системы Ключ продукта клиента KMS

Windows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFG

Windows Server 2019 Standard N69G4-B89J2-4G8F4-WWYCC-J464C

Windows Server 2019 Essentials WVDHN-86M7X-466P6-VHXV7-YY726

Windows Server 2016

Версия операционной системы Ключ продукта клиента KMS

Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG

Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY

Windows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63B

Windows Server (версии Semi-Annual Channel)

Windows Server, версии 20H2, 2004, 1909, 1903 и 1809

Версия операционной системы Ключ продукта клиента KMS

Windows Server Datacenter 6NMRW-2C8FM-D24W7-TQWMY-CWH2D

Windows Server Standard N2KJX-J94YW-TQVFB-DG9YT-724CC

Windows 11 и Windows 10 (версии Semi-Annual Channel)

См. в разделе Справочные материалы по жизненному циклу Windows сведения о поддерживаемых версиях и конечных датах обслуживания.

Версия операционной системы Ключ продукта клиента KMS

Windows 11 Pro

Windows 10 Pro W269N-WFGWX-YVC9B-4J6C9-T83GX

Windows 11 Pro N

Windows 10 Pro N MH37W-N47XK-V7XM9-C7227-GCQG9

Windows 11 Pro для рабочих станций

Windows 10 Pro для рабочих станций NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J

Windows 11 Pro для рабочих станций N

Windows 10 Pro для рабочих станций N 9FNHH-K3HBT-3W4TD-6383H-6XYWF

Windows 11 Pro для образовательных учреждений

Windows 10 Pro для образовательных учреждений 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y

Windows 11 Pro для образовательных учреждений N

Windows 10 Pro для образовательных учреждений N YVWGF-BXNMC-HTQYQ-CPQ99-66QFC

Windows 11 для образовательных учреждений

Windows 10 для образовательных учреждений NW6C2-QMPVW-D7KKK-3GKT6-VCFB2

Windows 11 для образовательных учреждений N

Windows 10 для образовательных учреждений N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ

Windows 11 Корпоративная

Windows 10 Корпоративная NPPR9-FWDCX-D2C8J-H872K-2YT43

Windows 11 Корпоративная N

Windows 10 Корпоративная N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4

Windows 11 Корпоративная G

Windows 10 Корпоративная G YYVX9-NTFWV-6MDM3-9PT4T-4M68B

Windows 11 Корпоративная G N

Windows 10 Корпоративная G N 44RPN-FTY23-9VTTB-MP9BX-T84FV

Windows 10 (версии LTSC и LTSB)

Windows 10 LTSC 2021 и 2019

Версия операционной системы Ключ продукта клиента KMS

Windows 10 Корпоративная LTSC 2021

Windows 10 Корпоративная LTSC 2019 M7XTQ-FN8P6-TTKYV-9D4CC-J462D

Windows 10 Корпоративная N LTSC 2021

Windows 10 Корпоративная N LTSC 2019 92NFX-8DJQP-P6BBQ-THF9C-7CG2H

Windows 10 LTSB 2016

Версия операционной системы Ключ продукта клиента KMS

Windows 10 Корпоративная LTSB 2016 DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ

Windows 10 Корпоративная N LTSB 2016 QFFDN-GRT3P-VKWWX-X7T3R-8B639

Windows 10 LTSB 2015

Версия операционной системы Ключ продукта клиента KMS

Windows 10 Корпоративная 2015 с долгосрочным обслуживанием WNMTR-4C88C-JK8YV-HQ7T2-76DF9

Windows 10 Корпоративная 2015 с долгосрочным обслуживанием N 2F77B-TNFGY-69QQF-B8YKP-D69TJ

Предшествующие версии Windows Server

Windows Server версии 1803

Версия операционной системы Ключ продукта клиента KMS

Windows Server Datacenter 2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG

Windows Server Standard PTXN8-JFHJM-4WC78-MPCBR-9W4KR

Windows Server версии 1709

Версия операционной системы Ключ продукта клиента KMS

Windows Server Datacenter 6Y6KB-N82V8-D8CQV-23MJW-BWTG6

Windows Server Standard DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4

Windows Server 2012 R2

Версия операционной системы Ключ продукта клиента KMS

Windows Server 2012 R2 Standard D2N9P-3P6X9-2R39C-7RTCD-MDVJX

Windows Server 2012 R2 Datacenter W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9

Windows Server 2012 R2 Essentials KNC87-3J2TX-XB4WP-VCPJV-M4FWM

Windows Server 2012

Версия операционной системы Ключ продукта клиента KMS

Windows Server 2012 BN3D2-R7TKB-3YPBD-8DRP2-27GG4

Windows Server 2012 N 8N2M2-HWPGY-7PGT9-HGDD8-GVGGY

Windows Server 2012 для одного языка 2WN2H-YGCQR-KFX6K-CD6TF-84YXQ

Windows Server 2012 для конкретной страны 4K36P-JN4VD-GDC6V-KDT89-DYFKP

Windows Server 2012 Standard XC9B7-NBPP2-83J2H-RHMBY-92BT4

Windows Server 2012 MultiPoint Standard HM7DN-YVMH3-46JC3-XYTG7-CYQJJ

Windows Server 2012 MultiPoint Premium XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G

Windows Server 2012 Datacenter 48HP8-DN98B-MYWDG-T2DCC-8W83P

Windows Server 2008 R2

Версия операционной системы Ключ продукта клиента KMS

Windows Server 2008 R2 Web 6TPJF-RBVHG-WBW2R-86QPH-6RTM4

Windows Server 2008 R2 HPC Edition TT8MH-CG224-D3D7Q-498W2-9QCTX

Windows Server 2008 R2 Standard YC6KT-GKW9T-YTKYR-T4X34-R7VHC

Windows Server 2008 R2 Enterprise 489J6-VHDMP-X63PK-3K798-CPX3Y

Windows Server 2008 R2 Datacenter 74YFP-3QFB3-KQT8W-PMXWJ-7M648

Windows Server 2008 R2 for Itanium-based Systems GT63C-RJFQ3-4GMB6-BRFB9-CB83V

Windows Server 2008

Версия операционной системы Ключ продукта клиента KMS

Windows Web Server 2008 WYR28-R7TFJ-3X2YQ-YCY4H-M249D

Windows Server 2008 Standard TM24T-X9RMF-VWXK6-X8JC9-BFGM2

Windows Server 2008 Standard без Hyper-V W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ

Windows Server 2008 Enterprise YQGMW-MPWTJ-34KDK-48M3W-X4Q6V

Windows Server 2008 Enterprise без Hyper-V 39BXF-X8Q23-P2WWT-38T2F-G3FPG

Windows Server 2008 HPC RCTX3-KWVHP-BR6TB-RB6DM-6X7HP

Windows Server 2008 Datacenter 7M67G-PC374-GR742-YH8V4-TCBY3

Windows Server 2008 Datacenter без Hyper-V 22XQ2-VRXRG-P8D42-K34TD-G3QQC

Windows Server 2008 для систем на базе процессоров Itanium 4DWFP-JF3DJ-B7DTH-78FJB-PDRHK

Предшествующие версии Windows

Windows 8.1

Версия операционной системы Ключ продукта клиента KMS

Windows 8.1 Профессиональная GCRJD-8NW9H-F2CDX-CCM8D-9D6T9

Windows 8.1 Pro N HMCNV-VVBFX-7HMBH-CTY9B-B4FXY

Windows 8.1 Корпоративная MHF9N-XY6XB-WVXMC-BTDCT-MKKG7

Windows 8.1 Корпоративная N TT4HM-HN7YT-62K67-RGRQJ-JFFXW

Windows 8

Версия операционной системы Ключ продукта клиента KMS

Windows 8 Профессиональная NG4HW-VH26C-733KW-K6F98-J8CK4

Windows 8 Pro N XCVCF-2NXM9-723PB-MHCB7-2RYQQ

Windows 8 Корпоративная 32JNW-9KQ84-P47T8-D8GGY-CWCK7

Windows 8 Корпоративная N JMNMF-RHW7P-DMY6X-RF3DR-X2BQT

Windows 7

Версия операционной системы Ключ продукта клиента KMS

Windows 7 Профессиональная FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4

Windows 7 Профессиональная N MRPKT-YTG23-K7D7T-X2JMM-QY7MG

Windows 7 Профессиональная E W82YF-2Q76Y-63HXB-FGJG9-GF7QX

Windows 7 Корпоративная 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH

Windows 7 Корпоративная N YDRBP-3D83W-TY26F-D46B2-XCKRJ

Windows 7 Корпоративная E C29WB-22CC8-VJ326-GHFJW-H9DH4

Windows Vista

Версия операционной системы Ключ продукта клиента KMS

Windows Vista Business YFKBB-PQJJV-G996G-VWGXY-2V3X8

Windows Vista Business N HMBQG-8H2RH-C77VX-27R82-VMQBT

Windows Vista Enterprise VKK3X-68KWM-X2YGT-QR4M6-4BWMV

Windows Vista Enterprise N VTC42-BM838-43QHV-84HX6-XJXKV

cd /d %ProgramFiles%\Microsoft Office\Office16
for /f %x in ('dir /b ..\root\Licenses16\ProPlus2021VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"
cscript ospp.vbs /setprt:1688
cscript ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH
cscript ospp.vbs /sethst:%kms.url%
cscript ospp.vbs /act

Modern TLS

Figure 1: Security Protocol Support by OS Version

Windows OSSSLv2SSLv3TLS 1.0TLS 1.1TLS 1.2
Windows VistaEnabledEnabledDefaultNot SupportedNot Supported
Windows Server 2008EnabledEnabledDefaultDisabled*Disabled*
Windows 7 (WS2008 R2)EnabledEnabledDefaultDisabled*Disabled*
Windows 8 (WS2012)DisabledEnabledEnabledEnabledDefault
Windows 8.1 (WS2012 R2)DisabledEnabledEnabledEnabledDefault
Windows 10DisabledEnabledEnabledEnabledDefault
Windows Server 2016Not SupportedDisabledEnabledEnabledDefault

*TLS 1.1/1.2 can be enabled on Windows Server 2008 via this optional Windows Update package.

Powershell script: https://cloud.abisys.ru/index.php/s/JEWCZPznasYaWDe

Проблема синхронизации Outlook по IMAP

ESET Antivirus/File Server Security с включенной функцией Firewall(Фаервол) вызывает проблемы при синхронизации с почтовым ящиком по протоколу IMAP.
Внесение адреса IMAP сервера в исключения фаервола решает проблему.

pfSense very low upload speed

posted Apr 13, 2022, 2:33 PM by Denis Tsitulsky
I found a solution to this problem and now I’m running 2.6.0 at full speed with my BT 900/100 connection. Disable RSC: https://docs.microsoft.com/en-us/windows-server/networking/technologies/hpn/rsc-in-the-vswitch

Configure RSC in the vSwitch
By default, on external vSwitches, RSC is enabled.

View the current settings:

PowerShell

Copy
Get-VMSwitch -Name vSwitchName | Select-Object RSC
Enable or Disable RSC in the vSwitch

Important

Important: RSC in the vSwitch can be enabled and disabled on the fly without impact to existing connections.

Disable RSC in the vSwitch

PowerShell

Copy
Set-VMSwitch -Name vSwitchName -EnableSoftwareRsc $false
Re-enable RSC in the vSwitch

PowerShell

Copy
Set-VMSwitch -Name vSwitchName -EnableSoftwareRsc $True
For more information, see Set-VMSwitch.

Иногда требуется Включить и затем выключить RSC чтобы изменения вступили в силу.