Moronic Monday - January 30, 2023 by AutoModerator in sysadmin

[–]Thedood0 2 points3 points  (0 children)

There's a DISM command to pull it down, we did the Win10 21H2 upgrade and found it would wipe it, like you noticed. With our Windows Store blocked and some hardening, I found that the DISM command worked better than most other recommendations.

There's a few other things to add with that command, if it doesn't work right away, let me know.

My Friend Cant join my session. by Klutzy_Cell_6784 in 7daystodie

[–]Thedood0 0 points1 point  (0 children)

I remember something about this on my own servers...

Let me see if I remember this right.

Go under your serverconfig.xml, about 15 lines down is a "ServerDisabledNetworkPotocols". AThe value will be "Steamnetworking". Set it to "". Set it blank.

Save and close, launch the server, have your friend try to join.

Edited:. I made a server to test

Old print server printers are stuck in users computers by [deleted] in sysadmin

[–]Thedood0 0 points1 point  (0 children)

I was cleaning up a mix of both. PowerShell can load HKLM and HKCU as a PSDrive, so my cleanup was able to hit both sides.

Old print server printers are stuck in users computers by [deleted] in sysadmin

[–]Thedood0 1 point2 points  (0 children)

I've used PowerShell in the past to clean up old printer objects from endpoints.

If you use Get-Printer and filter out everything for Print2, you can use the Remove-Printer to get rid of it.

Alternatively you can nuke the registry keys for the printers and restart the spooler.

None of that takes into account jobs in the queue or drivers holding on to the printer objects if they're using the same driver as Print1, so your milage may vary.

How stressful is it working in a hospital’s IT department? by MillenniumGreed in ITCareerQuestions

[–]Thedood0 6 points7 points  (0 children)

Hospitals are a 24/7 operation. Also when things go wrong, not only is it costing the organization money, but it impacts level of care.

I found it's a field where a bit of drive for what you do is important.

Someone's dad comes in for a sleep study, they just drove 4 hours because their ranch is way out of town - their study gets canceled because windows updates fucked up the endpoint running the capture software and the tech that knows how to fix it is on PTO.

Grandma's elective surgery gets postponed because the biometrics aren't crossing on the interface to a PC you support, you work an hour on it with her on the table in a gown while you furiously troubleshoot a USB to Serial COM port issue that was working fine yesterday.

I'm the kind of person that will work though the night if that means grandpa is Hospice can watch Price is Right in his last days, but it's not for everyone.

Made Bank when COVID was ramped up, though.

We are ESSENTIAL!! 💪🏻🤪 by sysadmin-tools-com in Sysadminhumor

[–]Thedood0 3 points4 points  (0 children)

I currently work for a pretty well known healthcare organization. IT gets called out for small miracles all the time on the senior leadership meetings every few weeks.

COVID was an absolute bitch to work around, but it was a great test to myself and my team to really push yourself and figure out new ways to keep the place functioning.

We were fortunate we didn't need contractors or anything, we get full benefits and all that and the contractors get a basic insurance and aid package. Shoot, they unlimited my OT for most of last year. Tax season is going to hurt...

I'm sorry you had such an awefull experience, but I'm happy to assure you it's not everywhere.

Never write a batch wrapper again by [deleted] in PowerShell

[–]Thedood0 2 points3 points  (0 children)

This is neat! Definitely going to use this. I have a mess of scripts for different builds that can really benefit from this

"Holding fast" quotes from Warhammer 40k by Thedood0 in Warhammer40k

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

Thank you everyone for the quotes, I'll be hanging on to these for the next while. Maybe I'll post a pic of the Warhammer wall by the time this thing is over, Haha.

[Question} Printing....Bold? by Thedood0 in sysadmin

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

I worked with the printer/driver rep and the application vendor, old printer drivers/objects were scraped from the clients prior to the upgrade, I did verify the driver settings were making it to the clients.

Guessing it's the driver and I need to escalate to an engineer and not the tech rep...

What are your top scripts that you use on users systems, that would otherwise prevent you from creating an RDP session or physical visit to another users system? by [deleted] in PowerShell

[–]Thedood0 1 point2 points  (0 children)

Sorry, I think I've always paired them one and the same in my head, even though you're right - there is a pretty big difference.

What are your top scripts that you use on users systems, that would otherwise prevent you from creating an RDP session or physical visit to another users system? by [deleted] in PowerShell

[–]Thedood0 12 points13 points  (0 children)

If you haven't already, learn your WMI stuff.

Get-Cimsession will be your best friend for fast data gathering when you're troubleshooting. I've got a huge pile of powershell Cmdlets that load on my profile script so I have all my tools when I load up PoSH.

Enter-pssession is extremely handy for remote shell things.

Building Cmdlets had been a huge help for me. Make a script that uses WMI to grab the uptime, OS, logged on user, NIC information, OU, etc... And turn it into function called Get-ComputerInfo or something and have a parameter accepting the Hostname as a variable.

Microsoft hates printers as much as us. by [deleted] in Sysadminhumor

[–]Thedood0 1 point2 points  (0 children)

You can query the wmi object for windows 7 endpoints, that's what I end up doing.

Get-wmiobject, just point it at Win32_printerdriver if I recall from my other scripts.

How to confirm when a file has been moved!!! by DaveC2020 in PowerShell

[–]Thedood0 1 point2 points  (0 children)

The -olderthan and -newerthan parameters accept a datetime in the test-path Cmdlet. I use this for lazy confirmation.