francinek@lemmy.world to linuxmemes@lemmy.world · edit-211 hours agoUh, let's backup and format...lemmy.worldimagemessage-square73fedilinkarrow-up1532arrow-down110
arrow-up1522arrow-down1imageUh, let's backup and format...lemmy.worldfrancinek@lemmy.world to linuxmemes@lemmy.world · edit-211 hours agomessage-square73fedilink
minus-squareJustARegularNerd@lemmy.dbzer0.comlinkfedilinkarrow-up4·3 hours agoThere 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
minus-squarekekmacska@lemmy.ziplinkfedilinkEnglisharrow-up2·49 minutes agoi also hate powershell, batch all the way. @echo off i my anthem now
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
i also hate powershell, batch all the way. @echo off i my anthem now