Difference between revisions of "PowerShell"

From DevOps Notebook
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
<pre>
 
<pre>
 
C:\ Powershell.exe -executionpolicy remotesigned -File  C:\Scripts\myScript.ps1
 
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>
 
</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

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