![]() ![]() Read more.Ĭloses the VLC media player application. Read more.Ĭloses the System Settings window. Read more.Ĭloses the Snipping Tool application. Read more.Ĭloses the Serenade application. Read more.Ĭloses the Microsoft Store app. Read more.Ĭloses Microsoft File Explorer. Read more.Ĭloses the given program gracefully. Read more.Ĭloses the Google Chrome browser. Read more »Ĭloses the calculator application. Turn Windows Defender on/off/check real time monitoring. Upgrades Ubuntu Linux to the latest (LTS) release. Reboots the local computer (needs admin rights). Halts the local computer (needs admin rights). Lists the user groups on the local computer. Lists system information on the local computer. ![]() Lists the services on the local computer. Lists all network shares of the local computer. Lists installed command-line interface (CLI) tools. Installs Windows Subsystem for Linux (WSL), needs admin rights. Installs the CLI edition of the Signal messenger. Installs a SSH server (needs admin rights). Installs a SSH client (needs admin rights). Installs the Knot Resolver (needs admin rights). Hibernates the local computer immediately. Read more »Įnables the writing of crash dumps. Read more »Ĭhecks Windows system files (needs admin rights). Read more »Ĭhecks the swap space for free space left. Read more »Ĭhecks the ping latency to the internet. Read more »Ĭhecks the file system of a drive (needs admin rights). Read more »Ĭhecks a drive for free space left. Read more »Īdds firewall rules for executables, needs admin rights. Speaks text with a Spanish text-to-speech voice. Speaks text with an Italian text-to-speech voice. Speaks text with a German text-to-speech voice. Speaks text with a French text-to-speech voice. Speaks the content of the given text file by text-to-speech. Speaks the content of the given Epub file by text-to-speech. Speaks text with an English text-to-speech voice. Speaks the given checklist by text-to-speech. ![]() Plays the given sound file (MP3 file format). ![]() Plays the given playlist (M3U file format). Lists the installed text-to-speech voices. Windows Terminal) □ Scripts for Audio & Voice Script talk2windows), automatically on startup/login/logoff/daily/shutdown/etc., or simply to learn PowerShell.ĭownload | Table of Scripts | FAQ | Note: the scripts support Unicode - a modern console is recommended (e.g. AutoHotkey or Jenkins), for context menus, for voice commands (e.g. $dbList = $s.Databases | where $smtp.Send($msg) #get-content c:\temp\output1.It includes 500+ useful cross-platform PowerShell scripts located in the □ scripts subfolder - for command-line use, for remote control via SSH, for automation (e.g. # For SQL Server 20 R2, un-comment the next line Import-Module SQLPS -DisableNameChecking -NoClobber | Out-Null So if I want to use PowerShell to get the last physical backup file and the test of that path is good: function Get-LatestBackup You can add your logic where you want for a date being older than current run time and if the backup file exist in a different directory, this is just code for the meat of getting the path initially. One thing to consider is what if you end up with an application like Sharepoint that can take native backups of a database from the admin console. SQL Server is much better source at (1) determining when the last backup was done for a database, and (2) giving me the file path of that backup. I would actually take a bit of a different route based on what the end result or outcome is for this script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |