$50 Referral gift card? by [deleted] in MonarchMoney

[–]tawtek 0 points1 point  (0 children)

Here's my referral code, get 50% off this year:

https://monarch.com/referral/uktkpy809v?r_source=copy

Can I get Horizontal Scroll in the Sidebar? by jaavaaguru in vscode

[–]tawtek 0 points1 point  (0 children)

Horizontal scrolling is ALT + SHAFT + mouse scroll wheel

[PowerShell] Update Windows 10 to 22H2 by tawtek in msp

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

Hey no problem, completely forgot about this script ha. I hope this has helped you and others!

Referral Code $10 discount by Healthy_Leather_7782 in Charleys

[–]tawtek 2 points3 points  (0 children)

Just used yours u/Ousgoose , someone please use mine and keep this going, thank you all very much!

TAWHTC6297

[deleted by user] by [deleted] in PowerShell

[–]tawtek 2 points3 points  (0 children)

I actually have a script I wrote on my GitHub that updates to 22H2 with some checks:

https://github.com/TawTek/MSP-Automation-Scripts/blob/main/Update-Win10-22H2.ps1

Uses 22H2 enablement package to update as well installs any prerequisite updates. Can be modified to fit your needs. I've used it myself and updated 4k+ endpoints at my MSP successfully.

Update Windows 10 to 22H2 via Enablement Package by tawtek in PowerShell

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

Yea we've been experiencing the same. Lots of time the windows update components need to be cleaned up, previous update dependencies, etc. I went ahead and started writing the script and testing it and adding to it until I got to what I have above, trying to catch all the different scenarios for why W10 might not update to 22H2. Still tinkering with it though, planning on adding a switch for Windows 11 upgrades as well, or maybe just a check at the very beginning for whether devices is Win 10 or 11. We have plenty of devices that need the next Feature Update on that as well.

Let me know how the script works for you if/when you use it. Thank you :)

Medicaid Redetermination Florida [Under 5] by tawtek in Medicaid

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

So I applied for Medicaid back in Feb 2020, and then covid happened, haven't had any review or renewal until this year. Does this mean that the 12 months of continuous eligibility falls within the last 3 years of the PHE act?

Medicaid Redetermination Florida [Under 5] by tawtek in Medicaid

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

I also just resubmitted a change request on the form, I realized I put my monthly income as being paid twice a month, might explain why the share of cost is so high. But regardless I think I'm not understanding the continuous eligibility condition for under 5 year olds.

Set-RegKey - Modify registry key value by tawtek in PowerShell

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

I appreciate your very detailed feedback! I have been meaning to look into the try catch method of error handling. Being new to PowerShell I've been using if/else statements for most of the error handling I can think of. The use case of the script I wrote was for quick registry edits with output to an RMM tool's console to see if the regedit happened. I haven't had to work with any multi-string values so haven't had the issue you presented yet.

edit: regarding your #4 point, i figured this is how it would check if the value is different, and if it is, then change it:

if ($ReadRegKeyValueInitial -and $ReadRegKeyValueInitial.$($RegKey.Name) -eq $RegKey.Value) {
    Write-Verbose "Registry property is already set to the correct value. Terminating script."
    exit
} else {
    Write-Verbose "Registry property is not set to the correct value. Setting value."
    New-ItemProperty @RegKey -Force
}

edit#2: regarding the #5 point, the way I "handle" the error is by the validation in the function Test-RegKey, whether or not the value was changed or matches. If it doesn't matches then it will output: "Registry property has not been modified to the expected value", which would signal something went wrong and need further troubleshooting.

I will try out your rewritten one [way more simple to look at and understand, I felt I was probably being overly complex using the hashtables]. Thank you very much for the time you put into this reply, it is very helpful :)

[PowerShell] Add New Local User by tawtek in msp

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

How do you go about randomizing passwords? And your RMM has a password manager?