PSKit builds ready-to-run PowerShell scripts from settings you choose. Everything happens in your browser; the generator sends nothing to a server.
How it works
Pick a task. Each one is a common administration job, with the parameters it needs and sensible defaults.
Pick a loop style. The body of the loop is the same in all six styles, so you can compare how foreach, pipeline, for, while, do-while and ForEach-Object -Parallel express the same work.
Adjust the script options: parameter validation, the safety guard, comments, a transcript, and the administrator check.
Read the result. Every commented section is explained underneath, in your language.
The eight tasks
List files — search a folder tree by name, extension, size and date, with the option to act on what is found.
Batch rename — rename by regex, sequence number, replacement text, case and extension, with a preview of old and new names.
Services — list Windows services, and optionally start, stop or restart them.
Processes — inspect running processes, and optionally stop the ones you select.
Volumes — list disks and partitions with size, free space and filesystem, and optionally clean up old files.
Logs — search log files with a regular expression and rank the files by hit count.
Users — list local accounts with their group memberships, and optionally disable one.
Backups — find files that have not been backed up for a given number of days.
The six loop styles
foreach — the plain loop over a collection. The easiest to read.
Pipeline — Get-ChildItem | ForEach-Object. Natural when the input is already a pipeline.
for — a counter loop. Useful when you need the index and a fixed number of passes.
while — repeat while a condition holds, with a built-in cap so a run cannot get stuck.
do-while — the body runs at least once before the condition is tested.
Parallel — ForEach-Object -Parallel with a throttle, for independent items on many cores. Needs PowerShell 7, and cannot be used where results have to be collected.
Safety
Tasks that change something default to a dry run. The generated script reports what it would do and changes nothing until you pass -Apply.
With -Apply the script asks you to type a confirmation phrase before it touches anything, so it cannot be triggered by accident from another window.
Tasks that need administrator rights say so in the script, and some ask you to run PowerShell as administrator.
Running the script
Next to the Copy button sits a File format selector: .ps1 by default, plus .txt, Markdown, HTML and README.md. Download hands you exactly the file you picked, already under the right name.
If you pick the plain text format, rename it from .txt to .ps1 before running it - that is the extension Windows PowerShell executes.
Windows marks downloaded scripts as coming from the internet. Right-click the file, choose Properties, tick Unblock, then confirm. If you skip this, PowerShell refuses to run the file.
Open PowerShell in the folder, run .\script.ps1 once to see the dry run, and only then add -Apply.
The PowerShell version selector in the panel chooses between 5.1 and 7, and the script asks for that version with a #requires line. The parallel style needs PowerShell 7.
Link to this setup copies the whole configuration into the address itself, so you can bookmark it or paste it into a chat; the settings travel with the link and nothing is uploaded.
Privacy
The generator runs entirely in your browser. Nothing you type is sent to a server, and the generated script never leaves your machine.
Your settings are stored in your own browser’s local storage, so the page remembers them next time. Clearing the site data removes them.
Page visits are counted by an anonymous counter that records the page and the date, never who you are.
Found a bug or an idea? The feedback form on the contact page goes straight to the author.
Cookies We store one preference cookie (site_lang, 12 months) to remember your language. No tracking, no advertising. Choose Accept to save it, or decline to keep your choice for this visit only. Privacy notice