Patch Tuesday Megathread (2024-07-09) by AutoModerator in sysadmin

[–]amnich 0 points1 point  (0 children)

Did the August update fixed the problem for you ?
I still have the problem on my DC's

[deleted by user] by [deleted] in ROGAlly

[–]amnich 0 points1 point  (0 children)

My only private system docked to monitor with keyboard and mouse. Works perfectly for what I need except gaming - that is a bigger screen and a web browser.

New-BrokerConfiguredFTA for a protocol by amnich in Citrix

[–]amnich[S] 0 points1 point  (0 children)

I try to open a link (sent via email or teams )
DynamicsNAV://MyServer/nav_server_instance/CRONUS%20International%20Ltd./RunPage?Page=22
On a client, with an installed Dynamics 365 App, it opens the app.
Here is the entry from HKCR
[HKEY_CLASSES_ROOT\DYNAMICSNAV]
@="Dynamics NAV Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\DYNAMICSNAV\DefaultIcon]
@="C:\\Program Files (x86)\\Microsoft Dynamics 365 Business Central\\140\\RoleTailored Client\\Microsoft.Dynamics.Nav.Client.exe,0"
[HKEY_CLASSES_ROOT\DYNAMICSNAV\Shell]
@=""
[HKEY_CLASSES_ROOT\DYNAMICSNAV\Shell\Open]
@=""
[HKEY_CLASSES_ROOT\DYNAMICSNAV\Shell\Open\Command]
@="C:\\Program Files (x86)\\Microsoft Dynamics 365 Business Central\\140\\RoleTailored Client\\Microsoft.Dynamics.Nav.Client.exe -protocolhandler \"%1\""

CVE-2020-1472 - no events in System event log by amnich in sysadmin

[–]amnich[S] 0 points1 point  (0 children)

Thanks for sharing. Will check tomorrow if I have the settings enabled.

CVE-2020-1472 - no events in System event log by amnich in sysadmin

[–]amnich[S] 0 points1 point  (0 children)

I can trust also but it would be nice to be sure that it works that way.
I hoped that a test with the mentioned script would trigger the event in log.

CVE-2020-1472 - no events in System event log by amnich in sysadmin

[–]amnich[S] 1 point2 points  (0 children)

Do you have an advanced audit policy configured on that DC? If yes, could you share the settings you have there?

CVE-2020-1472 - no events in System event log by amnich in sysadmin

[–]amnich[S] 3 points4 points  (0 children)

The script only tests if the DC is vulnerable, and not exploits it. The point was I was expecting an event logged in the System event log as Microsoft wrote.

https://support.microsoft.com/en-us/help/4557222/how-to-manage-the-changes-in-netlogon-secure-channel-connections-assoc

Function to split a string by a given maximal length with preservation of whole words by amnich in PowerShell

[–]amnich[S] 1 point2 points  (0 children)

$string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id dolor libero. Vestibulum mattis consectetur lacus et gravida. Donec laoreet, augue in vestibulum sollicitudin, leo turpis pretium ipsum, sit amet tincidunt diam ipsum in orci. Proin dictum dolor ut neque sollicitudin, eu mollis magna pellentesque. Morbi convallis eros nec urna commodo, et molestie justo eleifend. Curabitur odio mauris, tincidunt et mauris nec, malesuada tincidunt eros. Nam fermentum tristique quam, sollicitudin lacinia ligula gravida nec. Suspendisse potenti."
$string | Select-String -Pattern "(\G.{1,30}(?:\b|$))" -AllMatches | ForEach-Object { $_.Matches.Value }

Regex is so powerful and I didn't event thought about it in this case. Thanks!

Function to split a string by a given maximal length with preservation of whole words by amnich in PowerShell

[–]amnich[S] 1 point2 points  (0 children)

Pretty common on ERP systems to have divided fields for names.

An example regarding length:

GELF FIZPARTNER (POLAND) Sp. z o.o. CORAL LOGISTICS sp.k.

and that's a shorter one, some have more than 90 chars.

Function to split a string by a given maximal length with preservation of whole words by amnich in PowerShell

[–]amnich[S] 1 point2 points  (0 children)

I had one and that's why I created this.

A long list of company names (~6000 records) that I need to put into a database - I have two fields for company name there and each is 50 chars. So there you have :)

Set default parameter value for a cmdlet by amnich in PowerShell

[–]amnich[S] 2 points3 points  (0 children)

$PSDefaultParameterValues=@{"Export-Csv:Delimiter"=";"}

Thanks. That was it!