36 lines
522 B
Markdown
36 lines
522 B
Markdown
# 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"
|
|
|
|
```
|