Thursday, August 22, 2024

Pulling local admin accounts on a windows system WITH POWERSHELL

 There’s a couple ways to get them, I’m sure you’ve been around the internet looking.

The Powershell scripts I use:

Get-LocalGroupMember -Group ‘Administrators’ | Where-Object ObjectClass -ne ‘Group’ | Select-Object Name -ExpandProperty Name

This will give you all the locally/directly provisioned admin accounts. Note this is only user accounts, not groups. I didn’t care about groups in this instance.

Sometimes you can get a Powershell error “Get-LocalGroupMember” something about a cmdlet not being there, or something about array comparison.

Well, there’s a script for that too, using CIMinstance

Get-CimInstance Win32_GroupUser | Where {$_.GroupComponent -like ‘*admini*’} | Where {$_.PartComponent -like ‘Win32_UserAccount*’} | Select-Object -ExpandProperty PartComponent | Select-Object -ExpandProperty Name


And there you go, pulling directly provisioned user accounts from the local admin group. This should work for any other group too. And you can if than else the results to look for specific accounts. I like to throw the script into a variable and then run the if than else against the variable.

I wrote this all on my phone, so I’m sure this is riddled with typos, but it should at least get you (me) going.

Wednesday, May 1, 2024

Samsung refrigerator not making ice

How I got my stupid fridge to work again.

Normally, I press/hold the blue button till it chimes.






Well that didn’t work this time. Darn. I read that the filter might be the issue. I'm using some cheap amazon ones, but I just swapped it not long ago. Either way, I swapped that and did the blue button reset.



Still nothing. I had an old fridge that the lines would freeze and I would have to hit them with a hair dryer for an hour, thawing out everything in the freezer. But as far as I could tell, this fridge had a better design. Another dead end.

Being a fan of the IT Crowd, I listened to Roy Trenneman and turned it off and back on again. Just the Ice Maker. I had to hold the Door Alarm button to unlock the Ice maker toggle.

That didn’t work.

At this point, I basically accepted defeat and I turned off the Ice Maker. After probably a day, maybe two, I had enough courage to try fixing it again and turned it back on. A day later it was full of ice!

So, as per usual, I have no idea what step actually fixed it.

Could have been the long turn off, could have been a combination of the filter and resets. For all I know, the fridge fairy came and fixed it!

Either way, its working again, so I'm not going to question it.

Pulling local admin accounts on a windows system WITH POWERSHELL

 There’s a couple ways to get them, I’m sure you’ve been around the internet looking. The Powershell scripts I use: Get-LocalGroupMember -Gr...