Welcome To Snipplr


Everyone's Recent Windows PowerShell Snippets



« Prev 1 Next »
Renames all the files in the working directory from given regex pattern, in this case removes a series of digits (e.g. \_0004\_) that Photoshop appends when exporting layers.
1 1238 posted 7 years ago by evito
This batch script writes a temporary .vbs file which will invoke a UAC prompt to open an administrator command prompt. This makes it easy to create a shortcut to an admin prompt.
0 821 posted 10 years ago by deanhouseholder
The following script is used to perform batch backup of MSSQL server databases. It also compresses the backups using RAR that should already be installed on the computer. It is easy to use it in Windows Scheduler, in order to arrange daily backups of...
0 1018 posted 10 years ago by dimitrisdapontes
activate the developer dashboard
0 828 posted 13 years ago by nickaranz
replace foo -> bar in all .txt files down the tree Dunno why, the syntax highlighter adds \3's to the code. Try plain text.
0 969 posted 13 years ago by jarnaldich
Alternative: Central Administration --> Upgrade and Migration --> Check product and patch installation status
0 900 posted 13 years ago by scholli
I found this today and don't want too lose it. In windows the following command will create a text file named fileListing.txt which will contain a list of all the files in the current directory ( including fileListing.txt )
1 3101 posted 13 years ago by theonlyalterego
I needed to clean up strings with an unpredictable number of spaces interspersed throughout. Powershell's Replace method to the rescue.
1 1970 posted 15 years ago by ericmorin21
First of all, for all Stackoverflow.com members who have seen my question about this snippet on Stackoverflow, yes I am the same person as WebDevhobo. Last time I asked a question about something I posted here I got a bucketload of comments saying I...
1 1073 posted 15 years ago by Vordreller
Use this command to delete all the thumbs.db files on your drive.
2 1055 posted 16 years ago by sachinbhavsar
« Prev 1 Next »