poniedziałek, 16 grudnia 2024
stupid office.com as a blank page
I don't know how and why but for sometime I had blank page on edge set to office.com. Without a reason it was set without option to change in settings. At first I thought to download admx package because in local policy I couldn't find settings for Edge. Today I come to my sense and in registry I removed NewTabPageLocation pointing to office.com on computer settings policies Software/Microsoft/Policies...
poniedziałek, 9 grudnia 2024
huge netbios traffic
according to this link from spiceworks maybe some old printer causing huge network traffic on NetBIOS - 137 tcp/udp:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider\Servers*oldservername*
I've got such scenario - near 20k workstations with some missing printers causing huge network - netbios - traffic. Maybe there are resposible for it?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider\Servers*oldservername*
I've got such scenario - near 20k workstations with some missing printers causing huge network - netbios - traffic. Maybe there are resposible for it?
poniedziałek, 4 listopada 2024
exhausted connections? exhausted sockets?
Windows 2019, Windows 2022 by default has got port available from 49152 to 65535 - available 16384 ports. On another server I've got the same issue - no connection to domain controller or to different server, connections reamains intact, I can connect to server remotely - by C$ or by some ports, on server I can't establish new rdp connection with message that there are no available domain controllers, gpupdate is not working, zabbix monitoring is not working, but... after change of available ports by expanding range to 32768-65535 magically everything start works.
netsh intreface ipv4 tcp set dynamicportrange
netsh intreface ipv4 tcp set dynamicportrange
wtorek, 22 października 2024
memory considerations for Active Directory
Location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters
Name: EDB max ver pages (increment over the minimum)
Type: REG_DWORD
Value:
Note The value for the setting is the number of 16KB memory chunks (or 32KB memory chunks on a 64-bit processor) that will be reserved. For example:
9600 = ~150 MB 32-bit, ~600 MB 64-bit
12800 = ~200 MB 32-bit, ~800 MB 64-bit
16000 = ~250 MB 32-bit, ~1000 MB 64-bit
19200 = ~300 MB 32-bit, ~1200 MB 64-bit
When to increase? When allocated buckets are on high values...
Name: EDB max ver pages (increment over the minimum)
Type: REG_DWORD
Value:
Note The value for the setting is the number of 16KB memory chunks (or 32KB memory chunks on a 64-bit processor) that will be reserved. For example:
9600 = ~150 MB 32-bit, ~600 MB 64-bit
12800 = ~200 MB 32-bit, ~800 MB 64-bit
16000 = ~250 MB 32-bit, ~1000 MB 64-bit
19200 = ~300 MB 32-bit, ~1200 MB 64-bit
When to increase? When allocated buckets are on high values...
performance tunning for Active Directory
NTDS\Request Latency - should be as low as possible - at the end is the defined timeout - by default - 120 seconds, but we don't want to be there...
Number of LDAP threads - by default is 4 per cpu core, so in environment with 4 cores is 16 - so if we have current value of 16 and cpu use at 100% so maybe we have bottleneck? CPU queue is another sign of issues.
NTDS\Estimated Queue Delay - shoud be 0 - is higher we have a problem - querries are wainting to process
Number of LDAP threads - by default is 4 per cpu core, so in environment with 4 cores is 16 - so if we have current value of 16 and cpu use at 100% so maybe we have bottleneck? CPU queue is another sign of issues.
NTDS\Estimated Queue Delay - shoud be 0 - is higher we have a problem - querries are wainting to process
wtorek, 6 sierpnia 2024
operatingSystem and operatingSystemVersion in my current environment
It's update since 2019, my current environment: (Windows Servers Line)
We have had Windows NT 4.0 servers but there is no information regarding these times. At first configuration of Windows 2000 Active Directory we had about 250 domain controllers (yes, above two hundred).
Some MacOS
10.0 (20348) Windows Server 2022 Standard 10.0 (17763) Windows Server 2019 Datacenter 10.0 (17763) Windows Server 2019 Standard 10.0 (14393) Windows Server 2016 Datacenter 10.0 (14393) Windows Server 2016 Standard 6.3 (9600) Windows Server 2012 R2 Datacenter 6.3 (9600) Windows Server 2012 R2 Standard 6.2 (9200) Windows Server 2012 Datacenter 6.2 (9200) Windows Server 2012 Enterprise 6.2 (9200) Windows Server 2012 Standard 6.1 (7601) Windows Server 2008 R2 Enterprise Service Pack 1 6.1 (7600) Windows Server 2008 R2 Datacenter 6.1 (7600) Windows Server 2008 R2 Enterprise 6.1 (7600) Windows Server 2008 R2 Standard 6.0 (6003) Windows Server® 2008 Standard Service Pack 2 6.0 (6002) Windows Server 2008 Enterprise Service Pack 2 6.0 (6002) Windows Server 2008 Standard Service Pack 2 6.0 (6002) Windows Server® 2008 Standard Service Pack 2 6.0 (6002) Windows Server® 2008 Standard without Hyper-V Service Pack 2 6.0 (6001) Windows Server® 2008 Enterprise Service Pack 1 6.0 (6001) Windows Server® 2008 Standard Serivce Pack 1 5.2 (3790) Windows Server 2003 Service Pack 2 5.2 (3790) Windows Server 2003 Service Pack 1 5.2 (3790) Windows Server 2003 5.0 (2195) Windows 2000 Server Service Pack 4 5.0 (2195) Windows 2000 Server Service Pack 2 5.0 (2195) Windows 2000 Server Service Pack 1
We have had Windows NT 4.0 servers but there is no information regarding these times. At first configuration of Windows 2000 Active Directory we had about 250 domain controllers (yes, above two hundred).
10.0 (19045) Windows 10 Enterprise LTSC 10.0 (19045) Windows 10 Enterprise 10.0 (19044) Windows 10 Enterprise LTSC 10.0 (19044) Windows 10 IoT Enterprise LTSC 10.0 (19044) Windows 10 Enterprise 10.0 (19044) Windows 10 Enterprise 10.0 (19042) Windows 10 Enterprise 10.0 (19041) Windows 10 Enterprise 10.0 (19041) Windows 10 Pro 10.0 (18363) Windows 10 Enterprise 10.0 (18363) Windows 10 Pro 10.0 (18362) Windows 10 Enterprise 10.0 (18362) Windows 10 Pro 10.0 (17763) Windows 10 Enterprise LTSC 10.0 (17763) Windows 10 Enterprise 10.0 (17763) Windows 10 Pro 10.0 (17134) Windows 10 Enterprise 10.0 (16299) Windows 10 Enterprise 10.0 (16299) Windows 10 Pro 10.0 (15063) Windows 10 Enterprise 10.0 (15063) Windows 10 Pro 10.0 (14393) Windows 10 Enterprise 2016 LTSB 10.0 (14393) Windows 10 Enterprise 10.0 (10586) Windows 10 Enterprise 10.0 (10240) Windows 10 Enterprise 10.0 (9926) Windows 10 Enterprise Technical Preview 6.3 (9600) Windows 8.1 Enterprise 6.3 (9600) Windows 8.1 Pro 6.2 (9200) Windows 8 Enterprise 6.2 (9200) Windows 8 Pro 6.2 (8400) windows 8 Release Preview 6.2 (8250) Windows 8 Consumer Preview 6.2 (8102) Windows Developer Preview 6.2 (6001) Windows Vista™ Ultimate Service Pack 1 6.1 (7601) Windows Embedded Standard Service Pack 1 6.1 (7601) Windows 7 Ultimate Service Pack 1 6.1 (7601) Windows 7 Enterprise Service Pack 1 6.1 (7601) Windows 7 Professional N Service Pack 1 6.1 (7601) Windows Workstation Service Pack 1 6.1 (7600) Windows 7 Ultimate Evaluation 6.1 (7600) Windows 7 Ultimate 6.1 (7600) Windows 7 Enterprise 6.1 (7201) Windows 7 Ultimate 6.1 (7100) Windows 7 Ultimate 6.0 (6002) Windows Vista™ Business Service Pack 2 6.0 (6001) Windows Vista™ Enterprise Service Pack 1 6.0 (6001) Windows Vista™ Business Service Pack 1 6.0 (6000) Windows Vista™ Ultimate 6.0 (6000) Windows Vista™ Enterprise 6.0 (6000) Windows Vista™ Business 6.0 (5600) Windows Vista™ Ultimate 6.0 (5381) Windows Vista™ Ultimate 6.0 (5365) Windows Vista™ Ultimate Service Pack 1 6.0 (5365) Windows Vista™ Ultimate 5.1 (2600) Windows XP Professional Service Pack 3 5.1 (2600) Windows XP Professional Service Pack 2 5.1 (2600) Windows XP Professional Service Pack 1 5.0 (2195) Windows 2000 Professional Service Pack 4 5.0 (2195) Windows 2000 Professional Service Pack 3 5.0 (2195) Windows 2000 Professional Service Pack 2 5.0 (2195) Windows 2000 Professional Service Pack 1 5.0 (2195) Windows 2000 Professional 4.0 Windows NT
Some MacOS
14.5 (79) macOS 13.4 (66) macOS 13.3 macOS 13.2.1 macOS 13.2 macOS 13.1 macOS 13.0 (380) macOS 13.0 macOS 12.6.3 macOS 12.6.2 macOS 12.6 (320) macOS 12.6 (115) macOS 12.6 macOS 12.5.1 macOS 12.4 macOS 12.3.1 macOS 12.3 (258) macOS 12.5 (83) macOS 12.5 macOS 12.4 (79) macOS 12.2.1 macOS 12.2 (62) macOS 12.2 (49) macOS 12.2 macOS 12.1 macOS 12.0.1 macOS 11.7.2 macOS 11.7 (817) macOS 11.6 (165) macOS 11.6 macOS 11.5.2 macOS 11.4 (71) macOS 11.4 macOS 11.3.1 macOS 11.2.3 macOS 11.2.1 macOS 11.2 macOS 11.1 (69) macOS 11.1 macOS 11.0 (29) macOS 10.15.7 Mac OS X 10.15.6 Mac OS X 10.15 (287) Mac OS X 10.15 (266) Mac OS X 10.15 (76) Mac OS X 10.15 (57) Mac OS X 10.15.5 Mac OS X 10.15.4 Mac OS X 10.15.2 Mac OS X 10.15 (2) Mac OS X 10.15.1 Mac OS X 10.14.6 Mac OS X 10.14.5 Mac OS X 10.14.4 Mac OS X 10.14.3 Mac OS X 10.14 (109) Mac OS X 10.14 (95) Mac OS X 10.11.6 Mac OS X 10.8 (60) Mac OS X 10.8 (6) Mac OS X 10.6.8 (Build 10K549) Mac OS X
niedziela, 4 sierpnia 2024
Missing trusted root ca from Microsoft - TPM Root CA 2014
Why I don't have got below root ca certificate - why is not trusted by default? Something wrong with my home configuration?
Microsoft TPM Root Certificate Authority 2014
CN = Microsoft TPM Root Certificate Authority 2014
O = Microsoft Corporation
L = Redmond
S = Washington
C = US
I've got subordinate CN = NCU-STM-KeyId-571f806b47cce79bfa35947ced88b8d1005ae09e but is not trusted - because I haven't got above certificate, cdp:
http://www.microsoft.com/pkiops/crl/Microsoft TPM Root Certificate Authority 2014.crl
Microsoft TPM Root Certificate Authority 2014
CN = Microsoft TPM Root Certificate Authority 2014
O = Microsoft Corporation
L = Redmond
S = Washington
C = US
I've got subordinate CN = NCU-STM-KeyId-571f806b47cce79bfa35947ced88b8d1005ae09e but is not trusted - because I haven't got above certificate, cdp:
http://www.microsoft.com/pkiops/crl/Microsoft TPM Root Certificate Authority 2014.crl
środa, 31 lipca 2024
ldap querries are not paged? Windows Active Directory
case:
java code
forest Active Directory in 2016 version, one parent, two children
java code querrying root domain (parent) for group (universal) in child1 domain
group has got members from child2 domain
uri ldap://parent
only first 1000 members are returned
ldap policy for returning 1500 objects means that 1500 will be returned, paging is not working
possible reason? referrals are not paged so it is prevention against resoure exhaustion of querried domain controller - I've seen it in Technet, but... I can't remember where... maybe on Oracle JNDI?
possible reason? referrals are not paged so it is prevention against resoure exhaustion of querried domain controller - I've seen it in Technet, but... I can't remember where... maybe on Oracle JNDI?
wtorek, 23 lipca 2024
recover/restore security groups in Azure
Restoring/recovering security groups in Azure is always permanent - we can't back with them... so in case of accidental deletion in On-Premise environment we are always in ... - according to this thread.
So if You have aadc - Azure AD Connect or something different to sync on premise with Azure every time when accidental deletion occurs every time deleted group will be lost. Stupid. Sollution for small companies.
So if You have aadc - Azure AD Connect or something different to sync on premise with Azure every time when accidental deletion occurs every time deleted group will be lost. Stupid. Sollution for small companies.
Azure AD Connect - prevent mass deletion of groups
Again we have the same problem with deleted security groups (change in synchronized containers, one of them have groups synchronized - outside of project, but very, very important groups), so how can we counteract groups deletion?
Maybe I can export last runtime log?
Get-ADSyncRunProfileResult [-RunHistoryId] [-ConnectorId ] [-RunProfileId ]
[-RunNumber ] [-NumberRequested ] [-RunStepDetails] [-StepNumber ] [-WhatIf] [-Confirm]
[]
Get-ADSyncRunStepResult [-RunHistoryId] [-StepHistoryId ] [-First] [-StepNumber ] [-WhatIf]
[-Confirm] []
Invoke-ADSyncRunProfile -ConnectorName -RunProfileName [-Resume] []
So I must change default synchronization cycles to my own cycles using Invoke-ADSyncRunProfile with imports for and analysis of deletion - I must stop exports to Azure when deletion of groups appear in syncstep, but can I look for waiting deletion in connector space for Azure?
Is there any interface, API? Lithnet module for PowerShell?
Maybe I can export last runtime log?
Get-ADSyncRunProfileResult [-RunHistoryId
Get-ADSyncRunStepResult [-RunHistoryId
Invoke-ADSyncRunProfile -ConnectorName
So I must change default synchronization cycles to my own cycles using Invoke-ADSyncRunProfile with imports for and analysis of deletion - I must stop exports to Azure when deletion of groups appear in syncstep, but can I look for waiting deletion in connector space for Azure?
Is there any interface, API? Lithnet module for PowerShell?
czwartek, 18 lipca 2024
rdp auto reconnect Windows 10
Entry in default.rdp:
autoreconnect max retries:i:20
by default I've got 5, it's too low for me.
autoreconnect max retries:i:20
by default I've got 5, it's too low for me.
sobota, 29 czerwca 2024
query WINS service from command line
by nblookup.exe - tool from Microsft - this is the only way now - no modules for Powershell or just I'm not aware of it
czwartek, 27 czerwca 2024
ADSync database shrink
We have problem with a huge ADSync database and we are in process of shrinking - we can't do upgrade to new Entra tool, so shrinking loooks like below:
c:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Binn\SQLCMD.exe -S "(localdb)\.\ADSync2019"
(sqlcmd prompt) DBCC shrinkdatabase(ADSync,1);
(sqlcmd prompt) GO
c:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Binn\SQLCMD.exe -S "(localdb)\.\ADSync2019"
(sqlcmd prompt) DBCC shrinkdatabase(ADSync,1);
(sqlcmd prompt) GO
ADSync database statistics
c:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Binn\SQLCMD.exe -S "(localdb)\.\ADSync2019"
(sqlcmd prompt) USE ADSync;
(sqlcmd prompt) EXEC sp_spaceused @updateusage = N'TRUE';
(sqlcmd prompt) GO
(sqlcmd prompt) USE ADSync;
(sqlcmd prompt) EXEC sp_spaceused @updateusage = N'TRUE';
(sqlcmd prompt) GO
wtorek, 25 czerwca 2024
how to find all placeholders in MV of Azure AD Connect?
Import-Module "C:\Program Files\Microsoft Azure Active Directory Connect\Tools\AdSyncTools.psm1"
Export-ADSyncToolsAadDisconnectors
Export-ADSyncToolsAadDisconnectors
piątek, 21 czerwca 2024
0x80040e14 during Azure ADConnect upgrade
During upgrade Azure ADConnect to Entra AD Connect 2.3.8.0 we've received 0x80040e14 error. At first we had an idea that it's connected with permission or communication limitation on firewall, after quick search possible reasons:
missing column
or not enough memory for sql
For us it's near not enough memory reason, but we have still SQL Express, so during upgrade there is no place for finishing upgrade (limit 10GB for database size). We must find if we have any not needed objects to remove them from Azure or to move to full SQL server.
For us it's near not enough memory reason, but we have still SQL Express, so during upgrade there is no place for finishing upgrade (limit 10GB for database size). We must find if we have any not needed objects to remove them from Azure or to move to full SQL server.
piątek, 31 maja 2024
terminal services license types - tslic
A02-5.00-S - Windows 2000 TS temporary or permanent CAL
A02-5.02-S - Windows 2003 TS temporary or permanent CAT
A02-5.00-EX - Windows 2000 TS CAL from the built-in pool
C50-6.02-S - Windows 2012 or Windows 2012r2
C50-6.00-S - Windows 2008 or Windows 2008r2
C50-10.00-S - ?
C50-10.01-S - ?
C50-10.02-S - ?
tsctst utility
msTSLicenseVersion - 655360
msTSLicenseVersion2 - 7
msTSLicenseVersion3 - C50-10.00-S
msTSLicenseVersion4 - (empty/null at my environment)
msTSMangingLS - server with licensing service installed - source of license - like xxxxx-xxxxx-xxxxx-xxxxx
A02-5.02-S - Windows 2003 TS temporary or permanent CAT
A02-5.00-EX - Windows 2000 TS CAL from the built-in pool
C50-6.02-S - Windows 2012 or Windows 2012r2
C50-6.00-S - Windows 2008 or Windows 2008r2
C50-10.00-S - ?
C50-10.01-S - ?
C50-10.02-S - ?
tsctst utility
msTSLicenseVersion - 655360
msTSLicenseVersion2 - 7
msTSLicenseVersion3 - C50-10.00-S
msTSLicenseVersion4 - (empty/null at my environment)
msTSMangingLS - server with licensing service installed - source of license - like xxxxx-xxxxx-xxxxx-xxxxx
środa, 29 maja 2024
default ttl dns records on Windows
The 20 minute TTL is default with self update
The default of 20 minutes - set by DWORD named DefaultRegistrationTTL in HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters (the value should be in seconds). A reboot or ipconfig /registerdns.
The default of 20 minutes - set by DWORD named DefaultRegistrationTTL in HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters (the value should be in seconds). A reboot or ipconfig /registerdns.
Subskrybuj:
Posty (Atom)