PowerShell

Contents
Basics
Network
Users
Teams.
Alias
Functions
Files.
Directories
Similar articles
Basics
Installation
Introduction
Set-ExecutionPolicy Unrestricted -Force
Start from the console as an administrator
Network
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
Banner image
Users
Get the current user
List of users
List of administrators
Create a user
Make the user an administrator
Teams.
Get-Content -Tail: View the end of the file (similar to tail)
Get-FileHash: Check the file checksum (similar to md5sum)
Get-Process
Select-StringSelect a line by pattern (similar to grep)
Stop-Process: Stop the process (similar to kill)
New-Item: Create a new file (similar to touch)
Alias
Get-Alias:existing aliases
Delete the alias
Create an alias
The configuration
Mistakes.
Functions
Example
$profile: Configuration
Files.
Files.
Directories
Test-Path: check the existence
New-Item: Create a directory
Expand-Archiveunpack
Rename-Item: rename the directory
Join-Path linkage

Article author: Andrei Olegovich

Related articles
Windows
PowerShell
Install
Basics
Alias
Functions
Network
Users
Files
REST API requests
Errors

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.com
Write to info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: