---
title: Microsoft PowerShell
kind: note
description: object-oriented shell
words: 38
readingMinutes: 1
created: '2024-04-21T18:04:07+02:00'
updated: '2024-06-12T18:20:49+02:00'
website: https://learn.microsoft.com/en-us/powershell/
---
## Link

<https://learn.microsoft.com/en-us/powershell/>

## Resources
- [Everything you wanted to know about variable substitution in strings](https://learn.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-string-substitutions?view=powershell-7.2#command-substitution)
- [GitHub](https://github.com/PowerShell/PowerShell)
- [Tips for Writing Cross-Platform PowerShell Code](https://powershell.org/2019/02/tips-for-writing-cross-platform-powershell-code/)
## FAQ
### Get SHA256 hash for a file
```powershell
(Get-FileHash -Algorithm SHA256 -Path FILE_PATH).Hash
```
### Make Ctrl+D close the shell
In profile:
```powershell
Set-PSReadlineKeyHandler -Key ctrl+d -Function ViExit
```
### Create alias
E.g. in profile:
```powershell
Set-Alias -Name <ALIAS> -Value <SOMEAPP.EXE>
```
