Skip to content

MaSobkowiak/Powershell-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Backup

Backup is a simple powershell script for making backups of given directory. It copies new files, checks for changes based on date modified, and removes remains. After each run u get separate log.txt with list of all operations that have been done. U can exclude specific files or extensions from backup.

filter

$exclude = @("*.bak", "*.lck", "*.lic", "*.TMP", "*.tmp", ".run", "cert.pem")

log

| Date:               | Type:  | Base file:                     | Backup file:                   |
| 10/17/2020 23:58:39 | COPY   | Y:\a.txt                       |  X:\a.txt                      |
| 10/17/2020 23:58:40 | COPY   | Y:\test\b.png                  |  X:\test\b.png                 |
| 10/17/2020 23:58:39 | UPDATE | Y:\c.txt                       |  X:\c.txt                      |
| 10/17/2020 23:58:40 | DELETE | Y:\test\b.png                  |  X:\test\b.png                 |

Processor boost

This script can help you easily enable or disable processor turbo boost option. When you don't need extra processing power you can turn it off, and make your fans spin slower, decreasing loudness of the device.

Power plan option

# Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)
# Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance)
# Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)

$GUID  =  "381b4222-f694-41f0-9685-ff5bb260df2e"

Depending on what power plan option you are currently running, you have to set GUID variable to match your settings.

Usage

Copy repository to your machine, in root project director is all set up shortcut that can be used e.g. to pin quick toogle to taskbar. When clicked, message box will show up information if boost is on or off.

To make it look nicer, you can add custom shortcut icon from icons folder, so when you pin it to your taskbar you will know what this shortcut is for.

About

Easy to use powershell scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published