Difference between revisions of "Amazon EC2"
From DevOps Notebook
(3 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
ps> Import-Module c:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psm1 ; Add-Routes | ps> Import-Module c:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psm1 ; Add-Routes | ||
</pre> | </pre> | ||
+ | |||
+ | === Unable to resolve package source 'https://www.powershellgallery.com/api/v2' === | ||
+ | <pre> | ||
+ | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | ||
+ | </pre> | ||
+ | |||
+ | === List windows drives with powershell and show volume id === | ||
+ | [[List windows drives with powershell and show volume id - Method 1]] <br> | ||
+ | [[List windows drives with powershell and show volume id - Method 2]] |
Latest revision as of 11:42, 26 December 2022
Contents
Initialize disks in Amazon EC2 in Windows
PS C:\> C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeDisks.ps1
Check if instance returns meta-data info and fix routes on windows server
ps> Invoke-RestMethod -uri http://169.254.169.254/latest/meta-data/ ps> Import-Module c:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psm1 ; Add-Routes
Unable to resolve package source 'https://www.powershellgallery.com/api/v2'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
List windows drives with powershell and show volume id
List windows drives with powershell and show volume id - Method 1
List windows drives with powershell and show volume id - Method 2