• 0 Posts
  • 7 Comments
Joined 9 months ago
cake
Cake day: March 21st, 2024

help-circle

  • There is still not a neat replacement for wmic in PowerShell. If I want to do the equivalent of wmic product where name="some shitware" call uninstall it looks like this:

    $instance = Get-CimInstance win32_process -Filter "Name = 'powershell_ise.exe'" $instance | Invoke-CimMethod -MethodName 'Terminate'

    Like how the hell is that easier to understand Microsoft? Everything else in PowerShell follows a general pattern of Upper Camelcase.

    That’s just one instance of what I’ve found working with pwsh at work that leaves me thinking wtf




  • anything decent with an RJ-45 port

    Not sure if the current generation still has it, but work issued us techs with ThinkPad L14 Gen 3 laptops and I’ve been happy with it as a work device. It has an RJ-45 (was considered a requirement when they procured the laptops for techs) and mine has a Ryzen 5 Pro 5675U. Only complaints I would have for it is soldered USB-C connectors (which double as the only power source for the machine) and keyboard isn’t as nice as my personal T480 although definitely still fine.

    I would caution against the 12th gen Intel i7 ThinkPads, we’ve had multiple internally have overheating issues or stuck in connected standby. My colleague wishes he never replaced his original work issue (same as mine).