News for hackers. Stuff that matters.
Re:Shell Script Best Practices, from a decade of scripting t... by sharken on Thursday October 27, 2022 @07:17AM (#33355935)
I recently replaced a bit of code to look up locked files for a file share with SMB cmdlets to do the same.

The performance difference was night and day.

The biggest issue with PowerShell is that PowerShell Core is not yet default on Windows 10/11 and Windows Server. That should be Microsofts highest priority for PowerShell.

Re:Shell Script Best Practices, from a decade of scripting t... by sumtechguy on Thursday October 27, 2022 @10:14AM (#33357726)
Then not hobble who can run powershell scripts out of the box. Which makes it seem like a dangerous tool. Then no one wants to use it. Some form of powershell has been there since win7. Yet in one of the versions they decided 'oh only admins can use this unless you run this special command'. So it makes me have to revert to using CMD scripts for some simple things. Because I do not want to have to walk whoever it is thru enabling powershell.