163,000 نتائج کے بارے میں
روابط کو نئے ٹیب میں کھوليں
  1. Where to save PowerShell scripts? - Spiceworks Community

    16 مارچ، 2016 · Geek of All Trades: Manage Office 365 with Windows PowerShell But let’s say I have a few lines of code that will export all the mailboxes to a CSV file. Can I just save that block of text as …

  2. scripting - How to redirect the output of a PowerShell to a file during ...

    I have a PowerShell script for which I would like to redirect the output to a file. The problem is that I cannot change the way this script is called. So I cannot do: .\\MyScript.ps1 > output.t...

  3. How to save function in powershell? - Stack Overflow

    26 اکتوبر، 2021 · This will write it to a file Restart-PowerShell.ps1 in the current directory. Next time you need to re-use your function, it's as simple as dot-sourcing the file:

  4. Where to put PowerShell scripts? - Stack Overflow

    1 اکتوبر، 2009 · With V2, you can create a modules directory in the WindowsPowerShell directory where your profile is. PS will automatically look in that directory to load modules when you run import …

  5. powershell - save PSCredential in the file - Stack Overflow

    I had an idea to save credentials on my laptop and then use them on the server, not hardcoding them in the script. Looks like it's impossible. But can I use my saved encrypted password on other computer …

  6. How to output result of a PowerShell script to a text file

    21 اپریل، 2019 · 8 I am using this script to add users to folder permission. How can I output the result of this script (success or failure) to a text file? I tried adding 2> "OutputPath" at the end to stream the …

  7. How do I capture the output into a variable from an external process in ...

    If you want raw byte data returned from an external program, you must shell out to cmd.exe /c (Windows) or sh -c (Unix), save to a file there, then read that file in PowerShell.

  8. Save output of PowerShell script - Spiceworks Community

    10 جون، 2025 · I want to run a PowerShell script and based on the output, do “something”. I originally attempted to save the output of the script to a variable, but a coworker said I can’t do that.

  9. Is there a way to make a PowerShell script work by double clicking a ...

    You may set the default file association of ps1 files to be powershell.exe which will allow you to execute a powershell script by double clicking on it. In Windows 10,

  10. windows - How to run a PowerShell script - Stack Overflow

    To create a PowerShell script with an easy way to bypass restrictions without unnecessary files and clicks, you can use the following method: Сreate a new file "your_script**.cmd".**