Create posh-Commands.md

This commit is contained in:
Alex 2023-02-16 10:41:00 +03:00 committed by GitHub
commit d49305ef56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
posh-Commands.md Normal file
View file

@ -0,0 +1,10 @@
# posh-Commands
### Help
`Get-Command *Service*` # поиск команды по имени
`Get-Help Get-Service` # синтаксис
`Get-Service | Get-Member` # отобразить Method (действия: Start, Stop), Property (объекты вывода: Status, DisplayName), Event (события объектов: Click) и Alias
`Get-Alias ps`
`Get-Verb` # действия, утвержденные для использования в командах
`Set-ExecutionPolicy Unrestricted`
`Get-ExecutionPolicy`