PowerShell is a command prompt and a scripting environment designed for Windows system administration.

learn more… | top users | synonyms

3
votes
1answer
36 views

Create Dummy Files for Testing

I have two different folders. In one folder, I have files that will be exported to a remote site via FTP. In a second folder, I have .dat files that will be processed by a ftp client program that ...
4
votes
1answer
60 views

PowerShell Active Directory Browser

I've just published ADExploder. It's a single-script PowerShell app (source) that uses classic Windows Forms and the Directory Services API to be able to browse nodes and properties of Active ...
4
votes
1answer
29 views

PowerShell script to automate the search of DLL files

I often write different applications in C++ using different libraries, and sometimes it takes a lot of time to find where are the *.dll files to distribute. I use ...
1
vote
1answer
53 views

A PowerShell script like one-way rsync but worse

This PowerShell script works a bit like a one-way rsync; it's good enough for my Surface RT needs, anyway. However, seeing as this is my first PS script, and I was ...
1
vote
1answer
33 views

Writing a small script to extract MS Exchange audit logs in .csv format

Background I'm using MS Exchange 2013 in my environment, and have a separate siem box which analyze logs produced by different systems (i.e exchange). The logs for Exchange are internally stored and ...
2
votes
0answers
38 views

Fastest Windows script to move files from one did to a network dir

I wrote a script that moves files older than two days over to a network share (via scheduled task). Windows Task Scheduler doesn't seem to like the script so much, but it works well by itself. Is ...
5
votes
1answer
69 views

Convert list of parameters to a string that can be invoked

My PowerShell scripting skills are pretty poor, but I've managed to hobble together got this script: ...
4
votes
2answers
148 views

Extract version string from text file with Powershell

I need to pull the version # out of a Vim script that might look something like: ...
5
votes
1answer
69 views

Script which migrates files to secondary storage and symlinks them

I wrote this code to clean up some of the space on our file server. We've got 15 years of legacy data that nobody accesses or changes or cares about that we have to keep regardless. I'd rather have it ...
2
votes
1answer
206 views

Is there a way to simplify this powershell script?

This script uses robocopy purge with list command to out what would be purged it then parses that log file and checks each file and only deletes files older than 7 days. Is there way it could be ...
4
votes
1answer
146 views

Recursive Windows Directory listing

I wrote a PowerShell script for a superuser question: list of all files and directories under a path recursively, without recursing into junction points or links I have a strong feeling that my ...
1
vote
1answer
81 views

Please review this PowerShell cmdlet

I am learning PowerShell, and created the following script cmdlet. It reads one or more specified script files, to discover ...
4
votes
2answers
1k views

Updating multiple svn repositories using powershell

I wrote a script to perform svn update on all the SVN repositories inside a folder. It would have been great if the folder containing all these repositories itself ...
2
votes
1answer
73 views

Summarize a directory with PowerShell

I'm trying to output aggregate information about a directory tree (file extension plus accumulative count and size per file type) with PowerShell. This is as far as I've got. ...
3
votes
1answer
101 views

Can this Powershell be simplified?

I wrote a script to remove .vb code files when there are corresponding .cs files in a certain directory structure. But I felt like there were some extra statements that I had to put in there that ...
4
votes
1answer
355 views

Is this code idiomatic powershell?

...
4
votes
0answers
515 views

PowerShell Module for formatting objects using Razor

A few days ago I started playing around with PowerShell. I thought a good way to learn would be to try and write a module that allowed formatting objects using the Razor Engine created for ASP.NET. I ...