PowerShell
| Installation |
| Introduction |
| Set-ExecutionPolicy Unrestricted -Force |
| Start from the console as an administrator |
| Open ports |
| Open the port |
| Get-NetIPConfiguration:network information |
| Allow RDP connectivity |
| OpenSSH status of the server |
| Launch sshd |
| hostname: Get the name of the host |
| Download the file |
| Get the current user |
| List of users |
| List of administrators |
| Create a user |
| Make the user an administrator |
| Get-Alias:existing aliases |
| Delete the alias |
| Create an alias |
| The configuration |
| Mistakes. |
| Example |
| $profile: Configuration |
| Files. |
| Test-Path: check the existence |
| New-Item: Create a directory |
| Expand-Archiveunpack |
| Rename-Item: rename the directory |
| Join-Path linkage |
Article author: Andrei Olegovich