This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Get-Restart { | |
| [cmdletbinding()] | |
| [outputtype("RestartEvent")] | |
| Param( | |
| [Parameter(Position = 0, ValueFromPipeline)] | |
| [ValidateNotNullOrEmpty()] | |
| [Alias("CN")] | |
| [string]$Computername = $env:COMPUTERNAME, | |
| [Parameter(HelpMessage = "Find restart events since this date and time.")] | |
| [ValidateNotNullOrEmpty()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################################### | |
| # LAMP setup for Ubuntu 16.04 Server # | |
| # Apache + PHP + Percona # | |
| ############################################################################################### | |
| # Update and prepare server | |
| apt update; apt -y upgrade | |
| apt -y install nano sudo curl wget git dnsutils lynx | |
| sudo hostname srv.zdb.bz | |
| sudo service hostname start |