Welcome To Snipplr
Everyone's Recent Windows PowerShell Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
1284
posted 8 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
854
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
1066
posted 10 years ago by dimitrisdapontes
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
1010
posted 14 years ago by jarnaldich
Alternative: Central Administration --> Upgrade and Migration --> Check product and patch installation status
0
950
posted 14 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
3177
posted 14 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
2056
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
1111
posted 15 years ago by Vordreller
Use this command to delete all the thumbs.db files on your drive.
2
1103
posted 16 years ago by sachinbhavsar
« Prev 1 Next »