About 50 results
Open links in new tab
  1. POWERSHELL WRITE TO FLAT FILE - social.technet.microsoft.com

    Jul 21, 2011 · Measure-Object -Character prints the header information. I piped output to |Select-Object -ExpandProperty to get only the value, but this didn't work. Is there a way to remove header …

  2. Output all DHCP reservations to file with PowerShell

    Jun 24, 2014 · Uses powershell to gather all scope on the server For each scope returns all leases with an address state of either inactive or active reservation, this prunes regular DHCP leases …

  3. Open, Write and Close the file using Powershell

    Oct 4, 2012 · Actually, Powershell ISE will keep a file open after your script runs until you close the ISE. I know because I am running a script right now which creates a file and then emails it as an attachment.

  4. Passing in file names with spaces in the path to a PowerShell Script ...

    The reason it fails is that the default for PowerShell is "-command" which causes the file names to be added as a an array at the end of the line. Since you cannot pass an array without commas on a …

  5. Powershell Export is not displaying records in CSV export file

    Nov 13, 2018 · Any suggestions are highly appreciated. The Write-Host list the formatted data on the screen but the csv is not showing any data or sometimes is just disaplying column title as "length" …

  6. Encrypting a VHD/X using Powershell Commands

    Hi, thanks for replying! VHD\X can be encrypted using BitLocker, actually, when you mount one VHD\X by double-clicking them or using PowerShell or any other tool and then you open the file explorer, …

  7. how to export csv without doublequote

    Oct 18, 2010 · CSV is a flexible format, and I should be able to output as TSV (which I can, thanks, Microsoft) and refrain from quoting my data as I see fit. Yes, I can roll my own using Add-Content, …

  8. Powershell script needs to display message box to user...

    Sep 25, 2013 · I have a script (below) that generates a msgBox to the user asking them to log out and needs to be displayed once the pkg is downloaded to the client.

  9. PowerShell Issues for user count per group all groups in an OU

    Jul 4, 2014 · So here is the major problem. I was recently tasked with creation of a script to get a user count for every group, and list that count, per group, all groups in a specific OU in AD.

  10. How to restore a single file from DFSR Preserved Files using Powershell

    Jun 16, 2015 · From the description of Restore-DfsrPreservedFiles, -Path parameter only supports the path of a manifest. Thus it can only restore all files in that xml file.