powershell-common commands

tags: powershell  windows

memo

Table of contents

Get-Command(gcm)

get-help(man)

Get-Member (gm)


Get-Command(gcm)

show all command lines

get-help(man)

Command instructions

Get-Member (gm)

Get properties and methods of an object

Display the objects and properties that the object $date has

For example, to get the year of this object, you can use .year

 


Intelligent Recommendation

Powershell utility commands (1)

Powershell has become a skill that Windows operation and maintenance personnel have to master. His power can only be experienced before it can be used. Gossip is not much to say. Record the practical ...

Commands related to services in PowerShell

New-Service https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-5.1 PS C:\Program Files\PowerShell\6.0.0-beta.6> New-Service -Name LISA_41...

Pipeline commands in PowerShell

Pipe refers to the output of the previous command as the input of the next command. Pipe up and down commands, connected by "|". What are the commonly used pipeline commands in powershell? L...

Powershell commands (DHCP/NPS)

About NPS (Network Authentication Server) 1. NPS batch add client 2. Output NPS client information 3. This script solves the problem that Powershel command l requires administrator privileges to run, ...

Jenkins: execute PowerShell commands

Jenkins does not support the execution of PowerShell commands by default. Plug-ins are required to complete such tasks. This article will introduce the basic usage and common problems of the Jenkins P...

More Recommendation

PowerShell-pipeline commands

1、 ① Obtain all file information of the current directory through ls ② Sort the file information in descending order of Name through Sort -Descending ③ Format the sorted Name and Mode into Table for o...

PowerShell executes multiple commands

need Multiple orders in the same time It is used to perform multiple commands on the CMD in WIN.&&Connect, but this does not work in PowerShell method 1 use -andConnect, such as Method 2 use;N...

PowerShell related commands

1. New file The abbreviation is ni 2. Copy file Copy the file to the directory 3. Renate Abbreviated ren...

Common command record for PowerShell

Clear screen Open the resource management folder of the current directory Get the full path of the current directory Create a new file Copy a file Move a file Check the port number is occupied. Find p...

PowerShell infiltration common order

PowerShell infiltration common order Set-ExecutionPolicy RemoteSigned // Enable execution policy Set-ExecutionPolicy Restricted // Turn off the execution policy Remote download file Command line execu...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top