PowerShell_Scripts/Edit-MyProfiles.ps1

7 рядки
203 B
PowerShell

[CmdletBinding(SupportsShouldProcess)]param(
[switch]$sudo,
[switch]$Force
)
Edit-TextFile -sudo:$sudo $( Get-Profiles | Where-Object { $_.Exists -or $Force } | Select-Object -ExpandProperty Path )