Easy method to get the external ip address from where you are located with PowerShell:
Invoke-RestMethod -Uri https://ifconfig.io/ip
or shorter:
irm ifconfig.io/ip
$paramObject = @{ | |
location = 'westeurope' | |
networkInterfaceName = 'insertnicnamehere' | |
subnetName = 'insertsubnetnamehere' | |
virtualNetworkId = '/subscriptions/insertsubscriptionidhere/resourceGroups/insertsubscriptionidhere/providers/Microsoft.Network/virtualNetworks/insertvnetnamehere' | |
virtualMachineName = 'insertvmnamehere' | |
virtualMachineRG = 'insertresourcegroupnamehere' | |
osDiskType = 'Premium_LRS' | |
virtualMachineSize = 'Standard_B2ms' | |
adminUsername = 'vmadmin' |
$params = @{ | |
Name = 'SCGitHub' | |
RepoUrl = 'https://github.com/rdtechie/azure_automation_runbooks.git' | |
SourceType = 'GitHub' | |
FolderPath = "/" | |
Branch = 'master' | |
AccessToken = ConvertTo-SecureString -String 'Put GitHub access token here' -AsPlainText -Force | |
ResourceGroupName = 'rhif' | |
AutomationAccountName = 'automation' | |
EnableAutoSync = $true |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop |
$null = New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -Force | |
$null = New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -name 'Enabled' -value '0' -PropertyType 'DWord' -Force | |
$null = New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -name 'DisabledByDefault' -value 1 -PropertyType 'DWord' -Force | |
$null = New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client' -Force | |
$null = New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client' -name 'Enabled' -value '0' -PropertyType 'DWord' -Force | |
$null = New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client' -name 'DisabledByDefault' -value 1 -PropertyType 'DWord' -Force | |
$null = Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432 |
In a terminal: xrandr --newmode "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync | |
xrandr --addmode Virtual1 3840x2160_60.00 |
Easy method to get the external ip address from where you are located with PowerShell:
Invoke-RestMethod -Uri https://ifconfig.io/ip
or shorter:
irm ifconfig.io/ip
This little guide explains the way how to install Ansible and the Azure Preview Modules in a virtualenv on Ubuntu 18.04. It also makes use of a wrapper for virtualenv, to make it easier to use virtualenv.
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y python-setuptools python-dev libffi-dev libssl-dev git sshpass tree
sudo apt-get install python-pip
#requires -Version 2 | |
#requires -PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn | |
$xDays = 90 | |
Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox | | |
ForEach-Object -Process { | |
$MailboxStats = Get-MailboxStatistics -Identity $_.DistinguishedName | |
$si = Get-MailboxFolderStatistics -Identity $_.DistinguishedName -IncludeOldestAndNewestItems -FolderScope SentItems |
#requires -Version 2 -Modules CimCmdlets | |
function Get-Uptime | |
{ | |
<# | |
.SYNOPSIS | |
Get Computer Uptime | |
.DESCRIPTION | |
Get the uptime of a Computer Object by using CIM. |