-
Make sure kernel version is 4.9 or newer:
uname -r
Install Hardware Enablement Stack (HWE) to update kernel automaticly:
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
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 subscription-id-1 subscription-id-2 ..." | |
exit 1 | |
fi | |
subscription_ids=("$@") | |
get_subscription_creation_time() { |
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
curl -L https://www.atom.io/api/updates/download -A "Atom/0.1 CFNetwork/1.5" > Atom.zip | |
unzip Atom.zip | |
mv Atom.app /Applications/ |
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
$vm = Get-AzureService -ServiceName "PECVM3" | Get-AzureVM | |
foreach ($AzureVM in $vm) | |
{Remove-AzureVM -Name $AzureVM.Name -ServiceName $AzureVM.ServiceName} |
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
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" | |
$wmi.SetDNSServerSearchOrder("10.10.0.3") | |
$computerName = Get-WmiObject Win32_ComputerSystem | |
$name = "TFSSQL" | |
$computername.Rename($name) | |
Add-Computer -Domain "pec.com" -Credential PEC\RoccoRen | |
Restart-Computer |