Difference between revisions of "PowerShell"
From DevOps Notebook
(Created page with "Set DNS with powershell<br>") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Set DNS with powershell]]<br> | [[Set DNS with powershell]]<br> | ||
+ | [[Rename multiple files with powershell]]<br> | ||
+ | [[Windows Command Line snippets]] <br> | ||
+ | [[How to check .NET version using PowerShell]] <br> | ||
+ | === Run powershell script from bat file === | ||
+ | <pre> | ||
+ | C:\ Powershell.exe -executionpolicy remotesigned -File C:\Scripts\myScript.ps1 | ||
+ | </pre> | ||
+ | |||
+ | === How to Install AWS.Tools on Windows === | ||
+ | <pre> | ||
+ | PS > Install-Module -Name AWS.Tools.Installer -Force | ||
+ | PS > Install-AWSToolsModule AWS.Tools.EC2,AWS.Tools.S3 -CleanUp | ||
+ | </pre> | ||
+ | |||
+ | === How to install AWS PowerShell module === | ||
+ | <pre> | ||
+ | PS > Install-Module -Name AWSPowerShell | ||
+ | </pre> | ||
+ | |||
+ | === Fix for PowerShell Script Not Digitally Signed === | ||
+ | <pre> | ||
+ | PS > Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass | ||
+ | </pre> |
Latest revision as of 08:41, 7 September 2022
Set DNS with powershell
Rename multiple files with powershell
Windows Command Line snippets
How to check .NET version using PowerShell
Contents
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