first commit
This commit is contained in:
35
Learn Powershell in Less than 2 hours.md
Normal file
35
Learn Powershell in Less than 2 hours.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Learn Powershell in Less Than 2 hours
|
||||
|
||||
## PSVersionTable
|
||||
|
||||
you can see the version of powershell with the command
|
||||
|
||||
```powershell
|
||||
$PSVersionTable
|
||||
```
|
||||
|
||||
## ExecutionPolicy
|
||||
|
||||
To be able to see if you can run your Powershell scripts
|
||||
|
||||
```powershell
|
||||
Get-ExecutionPolicy
|
||||
// Work only has administrator
|
||||
Set-ExecutionPolicy remoteSigned
|
||||
```
|
||||
|
||||
### Widows Powershell ISE
|
||||
|
||||
To be able to write Powershell script you have a free IDE
|
||||
|
||||
## Commandes
|
||||
|
||||
|
||||
### Write-Host
|
||||
|
||||
For writing in the console
|
||||
|
||||
```powershell
|
||||
Write-Host "Hello world"
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user