PowerShell Tutorial => Set-Alias

Download PowerShell (PDF)

PowerShell

  • Getting started with PowerShell
  • Awesome Book
  • Awesome Community
  • Awesome Course
  • Awesome Tutorial
  • Awesome YouTube
  • ActiveDirectory module
  • Aliases
    • Get-Alias
    • Set-Alias
  • Amazon Web Services (AWS) Rekognition
  • Amazon Web Services (AWS) Simple Storage Service (S3)
  • Anonymize IP (v4 and v6) in text file with Powershell
  • Archive Module
  • Automatic Variables
  • Automatic Variables - part 2
  • Basic Set Operations
  • Built-in variables
  • Calculated Properties
  • Cmdlet Naming
  • Comment-based help
  • Common parameters
  • Communicating with RESTful APIs
  • Conditional logic
  • Creating DSC Class-Based Resources
  • CSV parsing
  • Desired State Configuration
  • Embedding Managed Code (C# | VB)
  • Enforcing script prerequisites
  • Environment Variables
  • Error handling
  • GUI in Powershell
  • Handling Secrets and Credentials
  • HashTables
  • How to download latest artifact from Artifactory using Powershell script (v2.0 or below)?
  • Infrastructure Automation
  • Introduction to Pester
  • Introduction to Psake
  • ISE module
  • Loops
  • Modules, Scripts and Functions
  • MongoDB
  • Naming Conventions
  • Operators
  • Package management
  • Parameter sets
  • PowerShell "Streams"; Debug, Verbose, Warning, Error, Output and Information
  • PowerShell Background Jobs
  • PowerShell Classes
  • PowerShell Dynamic Parameters
  • PowerShell Functions
  • Powershell Modules
  • Powershell profiles
  • Powershell Remoting
  • powershell sql queries
  • PowerShell Workflows
  • PowerShell.exe Command-Line
  • PSScriptAnalyzer - PowerShell Script Analyzer
  • Regular Expressions
  • Return behavior in PowerShell
  • Running Executables
  • Scheduled tasks module
  • Security and Cryptography
  • Sending Email
  • SharePoint Module
  • Signing Scripts
  • Special Operators
  • Splatting
  • Strings
  • Switch statement
  • TCP Communication with PowerShell
  • URL Encode/Decode
  • Using existing static classes
  • Using ShouldProcess
  • Using the Help System
  • Using the progress bar
  • Variables in PowerShell
  • WMI and CIM
  • Working with Objects
  • Working with the PowerShell pipeline
  • Working with XML Files

PowerShell

  • Getting started with PowerShell
  • Awesome Book
  • Awesome Community
  • Awesome Course
  • Awesome Tutorial
  • Awesome YouTube
  • ActiveDirectory module
  • Aliases
    • Get-Alias
    • Set-Alias
  • Amazon Web Services (AWS) Rekognition
  • Amazon Web Services (AWS) Simple Storage Service (S3)
  • Anonymize IP (v4 and v6) in text file with Powershell
  • Archive Module
  • Automatic Variables
  • Automatic Variables - part 2
  • Basic Set Operations
  • Built-in variables
  • Calculated Properties
  • Cmdlet Naming
  • Comment-based help
  • Common parameters
  • Communicating with RESTful APIs
  • Conditional logic
  • Creating DSC Class-Based Resources
  • CSV parsing
  • Desired State Configuration
  • Embedding Managed Code (C# | VB)
  • Enforcing script prerequisites
  • Environment Variables
  • Error handling
  • GUI in Powershell
  • Handling Secrets and Credentials
  • HashTables
  • How to download latest artifact from Artifactory using Powershell script (v2.0 or below)?
  • Infrastructure Automation
  • Introduction to Pester
  • Introduction to Psake
  • ISE module
  • Loops
  • Modules, Scripts and Functions
  • MongoDB
  • Naming Conventions
  • Operators
  • Package management
  • Parameter sets
  • PowerShell "Streams"; Debug, Verbose, Warning, Error, Output and Information
  • PowerShell Background Jobs
  • PowerShell Classes
  • PowerShell Dynamic Parameters
  • PowerShell Functions
  • Powershell Modules
  • Powershell profiles
  • Powershell Remoting
  • powershell sql queries
  • PowerShell Workflows
  • PowerShell.exe Command-Line
  • PSScriptAnalyzer - PowerShell Script Analyzer
  • Regular Expressions
  • Return behavior in PowerShell
  • Running Executables
  • Scheduled tasks module
  • Security and Cryptography
  • Sending Email
  • SharePoint Module
  • Signing Scripts
  • Special Operators
  • Splatting
  • Strings
  • Switch statement
  • TCP Communication with PowerShell
  • URL Encode/Decode
  • Using existing static classes
  • Using ShouldProcess
  • Using the Help System
  • Using the progress bar
  • Variables in PowerShell
  • WMI and CIM
  • Working with Objects
  • Working with the PowerShell pipeline
  • Working with XML Files
PowerShell Aliases Set-Alias

Fastest Entity Framework Extensions

Bulk Insert Bulk Delete Bulk Update Bulk Merge

Example

This cmdlet allows you to create new alternate names for exiting cmdlets

PS C:\> Set-Alias -Name proc -Value Get-Process PS C:\> proc Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id SI ProcessName ------- ------ ----- ----- ----- ------ -- -- ----------- 292 17 13052 20444 ...19 7.94 620 1 ApplicationFrameHost ....

Keep in mind that any alias you create will be persisted only in current session. When you start new session you need to create your aliases again. Powershell Profiles (see [topic not yet created]) are great for these purposes.

Got any PowerShell Question?

Ask any PowerShell Questions and Get Instant Answers from ChatGPT AI: ChatGPT answer me! pdf PDF - Download PowerShell for free Previous Next This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow logo rip SUPPORT & PARTNERS
  • Advertise with us
  • Contact us
  • Cookie Policy
  • Privacy Policy
STAY CONNECTED

Get monthly updates about new articles, cheatsheets, and tricks.

Subscribe Cookie This website stores cookies on your computer. We use cookies to enhance your experience on our website and deliver personalized content. For more details on our cookie usage, please review our Cookie Policy and Privacy Policy Accept all Cookies Leave this website

Từ khóa » Npm(k) Pm(k) Ws(k) Vm(m)