Output to CSV include commas

Powershell
The code below is meant to list all members of a specific parent Support Group. I would like separate all of the values in the "Members" array and inc...
2 years ago

How to recursively delete an entire directory with PowerShell 2.0?

Powershell
What is the simplest way to forcefully delete a directory and all its subdirectories in PowerShell? I am using PowerShell V2 in Windows 7. I have lea...
2 years ago

Windows Server 2012 RC PowerShell Error: Exception calling "SetInfo" with "0" argument(s): "The specified network

Powershell
I'm trying to run the following PowerShell script to create a local user. This works in Windows Server 2008 R2 but I'm getting the error below on Win...
2 years ago

Powershell Script To Display Stopped Processes With an input Parameter to filter

Powershell
I'm pretty new to Powershell, but for the life of me I can't find how to do this anywhere on Google. Here's what I need my script to look like when e...
2 years ago

How can I determine for which platform an executable is compiled?

PowerShell
I have a need to work with Windows executables which are made for x86, x64, and IA64. I'd like to programmatically figure out the platform by examinin...
2 years ago

How can you use powershell to document deleting logs?

PowerShell
I am new to powershell and I am just curious if when I use a script to delete logs is there a command that will gather how many logs were deleted and ...
2 years ago

Powershell regex to remove comma but not delimiter

PowerShell
I'm bringing a delimited CSV into PowerShell to remove line feeds with the code below which works but I've found I need to remove extra commas as well...
2 years ago

need to extract set of 4 digit numbers from epub or text file in Batch

PowerShell
I have hundreds of epub files. I need to extract dates from text (only years like 1947, 1987 etc) with file names i mean, output should be like,this f...
2 years ago

" list of files and subfoldes owner information" with powershelll script

PowerShell
I can see some in this link"https://community.spiceworks.com/scripts/show/1722-get-fileowner" I tried but the examples but neither of them was workin...
2 years ago

Copy File Remotely with Powershell

PowerShell
I am writing a powershell script that I want to run from Server A. I want to connect to Server B and copy a file to Server A as a backup. If that c...
2 years ago

How to capture error output only in a variable in PowerShell

PowerShell
I want to store the stderr output of a powershell command in a variable. I don't want to store it in a file and I don't want standard output included,...
2 years ago

Powershell Get-Process missing parameter?

PowerShell
Currently I'm working on Windows Server 2012 R2 with Powershell 4.0 and can execute Get-Process -IncludeUserName while using elevated user rights as a...
2 years ago

How do I get total physical memory size using PowerShell without WMI?

PowerShell
I'm trying to get the physical memory size using PowerShell, but without using get-wmiobject. I have been using the following PS cmdlet to get the ph...
2 years ago

Job to check job state

PowerShell
I'm trying to check what it's the state of the previously started jobs without blocking the session I am in. So I tried something like this: Start-Jo...
2 years ago

Where-Object with complex evaluation

PowerShell
I have a PowerShell script where I read in a CSV file, and if the date in a certain column is greater than a parameter date, I output that row to a ne...
2 years ago

Powershell and FFMPEG - FFMPEG not executing

PowerShell
So I wrote a powershell script that recursively searches all video files above a certain size and then resizes them. I feel like I'm missing somethin...
2 years ago

Changing Multiple Filenames in multiple Folders with Batch

PowerShell
I have several Folder which contain from 5 to 20 Files with all different names. They get replaced every week, so the Name of each File also changes. ...
2 years ago

How to exclude first row from sorting out Excel column by using PowerShell

PowerShell
I want to sort out one column (it is a target date and I want to sort it out by earliest date). The thing is that the first row is a text (name of the...
2 years ago

How to add to a pipeline in powershell?

PowerShell
Let's say I have 2 files f1.txt and f2.txt. f1.txt has some corrections that need to be made, after which both files will need to be processed togethe...
2 years ago

Executing different .cmd Files inside Powershell Script

PowerShell
Im trying to execute a .cmd file inside of my Powershell Script. How can i implement that? Each Checkbox (if checked) should execute another .cmd fil...
2 years ago