By default, AWS CLI or PowerShell AWS cmdlets only list EC2 resources from your default region. You need to specify a region to see what services are there or a profile created with AWS CLI's configuration which contains a different region. Within the AWS Management Console, you can use "EC2 Global View" to list all … Continue reading PowerShell getting AWS instances from all regions
Tag: PowerShell
PowerShell checking file hash
PowerShell has a function Get-FileHash to compute the hash value for a file by using a specified hash algorithm. For example, to calculate SHA1 hash code for a file: Get-FileHash -Path "D:\Software\test.ovf" -Algorithm SHA1 You can also check other algorithms like MD5, SHA256 etc. PS D:\Software> Get-Command Get-FileHash CommandType Name Version Source ----------- ---- ------- … Continue reading PowerShell checking file hash
PowerShell with GCP — Google Cloud Platform
Google Cloud SDK provides libraries and tools for interacting with Google Cloud products and services. It includes Google Cloud Command Line Interface (gcloud CLI) for various platforms like Linux, Windows, MacOS. On Windows, you can even use PowerShell to manage GCP because the SDK has dozens of cmdlets for this purpose. To install the SDK … Continue reading PowerShell with GCP — Google Cloud Platform
PowerShell — Get-Content slow?
In PowerShell, the cmdlet Get-Content is used to read a file. Usually you just give the path of a file name as below: Get-Content -Path "c:\temp\test.txt" When the file is small, you won't notice anything wrong. But when it's quite big with thousands of lines, you might notice it's extremely slow to display. This is … Continue reading PowerShell — Get-Content slow?
PowerShell on Linux
When working in a heterogeneous envrionment with different types of OS (Windows, Linux etc.), you probably want to manage systems from a central place. People usually have a RDP session of Windows, then using a multi connection manager like mRemoteNG to connect those systems. To automate your tasks with scripts, you want them fired from … Continue reading PowerShell on Linux
Getting version information from Windows MSI installer
For a large orgnization, it's common to push a software to clients for auto installation and update. Usually the process needs to know the version information of a software installation package (on Windows it is likely a MSI file) to compare to what has been installed on client machines. Getting the version information is crucial … Continue reading Getting version information from Windows MSI installer
Always looking for an easy life.
Windows system GUI is straightforward for administrators if you have some light duties occasionally and know what to do -- a few clicks and it's done. However, sometimes you get tasks which needs to be repeated many times on different objects -- either you still keep clicking until you feel tired or wonder if there … Continue reading Always looking for an easy life.