About 556 results
Open links in new tab
  1. How to run Powershell script using get-content cmdlet

    I am trying to read the contents of a text file but also get Powershell to run this as well.

  2. POWERSHELL WRITE TO FLAT FILE - social.technet.microsoft.com

    You are trying to beformal but your terminology is not supported by POwerShell. You ae using a sort of pseudo-language that seems to be a mix of Unix shell and C with a smattering of text processing.

  3. Powershell to delete listed folders from a text file

    I am trying to come up with a Powershell script to query a text file with a list of folders, delete the folders listed and create a log file of the deleted folders.

  4. Task Scheduler with PowerShell - Task completed with Return code 0

    We have on Task scheduler job to run powershell script but it is always completed with return code 0 and not running the script. We have execution policy on the server is Unrestricted

  5. Check if a text file is blank in powershell

    Does anyone have poweshell code that can check an input file and then tell if it is blank? If it is blank I want to end the script...much like you would do in VB with

  6. powershell text output formatted for email - social.technet.microsoft.com

    Jul 30, 2012 · Surely the problem is that you are dealing with a straight text file, and yet you are sending the body as html? mj's suggestion should work if you leave off the html option.

  7. How to do Powershell STDOUT & STDERR to print in cmd.exe console …

    Apr 30, 2017 · It cannot be done in a batch file. Skip using batch and do all of this with PowerShell. \_ (ツ)_/ Proposed as answer byHello_2018Saturday, May 27, 2017 6:43 AM Sunday, April 30, 2017 …

  8. How do I parse the output from Get-WinEvent to only display the ...

    What I want to do is run a PowerShell script that will prompt me for an EventID and Date then search the archives for all three servers and return the results to a text (or csv) file.

  9. Powershell Copy File Within Same Directory and Rename Extension

    Jan 7, 2017 · How can I have this loop through my directory and make a copy of each file as it was doing in the begining.

  10. Get IP and MAC addresses for all devices?

    I'm trying to write a script to get the IP and MAC addresses from a remote subnet and then look up each MAC in a text file to determine what kind of device it is. I can pull the address from computers using …