PowerShell

From DevOps Notebook
Revision as of 08:41, 7 September 2022 by MilosZ (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Set DNS with powershell
Rename multiple files with powershell
Windows Command Line snippets
How to check .NET version using PowerShell

Run powershell script from bat file

C:\ Powershell.exe -executionpolicy remotesigned -File  C:\Scripts\myScript.ps1

How to Install AWS.Tools on Windows

PS > Install-Module -Name AWS.Tools.Installer -Force
PS > Install-AWSToolsModule AWS.Tools.EC2,AWS.Tools.S3 -CleanUp

How to install AWS PowerShell module

PS > Install-Module -Name AWSPowerShell

Fix for PowerShell Script Not Digitally Signed

PS > Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass