Powershell How to Modify Script to Hardcode “ | export-csv c:\temp\filename.csv -notypeinformation”
问题 I have this awesome script I use to generate a list of folders with their assigned security groups and each user in each group. When I run it, I type .\getfolderacls.ps1 -verbose | export-csv c:\temp\filename.csv -notypeinformation . That works perfectly, but I'd like to hardcode the | export-csv... part so that I can just run it without the arguments (or are they parameters?). I tried simply appending | export-csv c:\temp\test.csv -notypeinformation to the bottom of the script, but that