PowerShell Notes for Professionals book

    Amazing collection of free programming books

    收集中
    免费
    Amazing collection of free programming books

    The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified

    Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners

    https://goalkicker.com/

    章节目录

    1-1Content list
    1-2About
    1-3Chapter 1: Getting started with PowerShell
    1-4Section 1.1: Allow scripts stored on your machine to run un-signed
    1-5Section 1.2: Aliases & Similar Functions
    1-6Section 1.3: The Pipeline - Using Output from a PowerShell cmdlet
    1-7Section 1.4: Calling .Net Library Methods
    1-8Section 1.5: Installation or Setup
    1-9Section 1.6: Commenting
    1-10Section 1.7: Creating Objects
    1-11Chapter 2: Variables in PowerShell
    1-12Section 2.1: Simple variable
    1-13Section 2.2: Arrays
    1-14Section 2.3: List Assignment of Multiple Variables
    1-15Section 2.4: Scope
    1-16Section 2.5: Removing a variable
    1-17Chapter 3: Operators
    1-18Section 3.1: Comparison Operators
    1-19Section 3.2: Arithmetic Operators
    1-20Section 3.3: Assignment Operators
    1-21Section 3.4: Redirection Operators
    1-22Section 3.5: Mixing operand types, the type of the left operand dictates the behavior
    1-23Section 3.6: Logical Operators
    1-24Section 3.7: String Manipulation Operators
    1-25Chapter 4: Special Operators
    1-26Section 4.1: Array Expression Operator
    1-27Section 4.2: Call Operation
    1-28Section 4.3: Dot sourcing operator
    1-29Chapter 5: Basic Set Operations
    1-30Section 5.1: Filtering: Where-Object / where / ?
    1-31Section 5.2: Ordering: Sort-Object / sort
    1-32Section 5.3: Grouping: Group-Object / group
    1-33Section 5.4: Projecting: Select-Object / select
    1-34Chapter 6: Conditional logic
    1-35Section 6.1: if, else and else if
    1-36Section 6.2: Negation
    1-37Section 6.3: If conditional shorthand
    1-38Chapter 7: Loops
    1-39Section 7.1: Foreach
    1-40Section 7.2: For
    1-41Section 7.3: ForEach() Method
    1-42Section 7.4: ForEach-Object
    1-43Section 7.5: Continue
    1-44Section 7.6: Break
    1-45Section 7.7: While
    1-46Section 7.8: Do
    1-47Chapter 8: Switch statement
    1-48Section 8.1: Simple Switch
    1-49Section 8.2: Switch Statement with CaseSensitive Parameter
    1-50Section 8.3: Switch Statement with Wildcard Parameter
    1-51Section 8.4: Switch Statement with File Parameter
    1-52Section 8.5: Simple Switch with Default Condition
    1-53Section 8.6: Switch Statement with Regex Parameter
    1-54Section 8.7: Simple Switch With Break
    1-55Section 8.8: Switch Statement with Exact Parameter
    1-56Section 8.9: Switch Statement with Expressions
    1-57Chapter 9: Strings
    1-58Section 9.1: Multiline string
    1-59Section 9.2: Here-string
    1-60Section 9.3: Concatenating strings
    1-61Section 9.4: Special characters
    1-62Section 9.5: Creating a basic string
    1-63Section 9.6: Format string
    1-64Chapter 10: HashTables
    1-65Section 10.1: Access a hash table value by key
    1-66Section 10.2: Creating a Hash Table
    1-67Section 10.3: Add a key value pair to an existing hash table
    1-68Section 10.4: Remove a key value pair from an existing hash table
    1-69Section 10.5: Enumerating through keys and Key-Value Pairs
    1-70Section 10.6: Looping over a hash table
    1-71Chapter 11: Working with Objects
    1-72Section 11.1: Examining an object
    1-73Section 11.2: Updating Objects
    1-74Section 11.3: Creating a new object
    1-75Section 11.4: Creating Instances of Generic Classes
    1-76Chapter 12: PowerShell Functions
    1-77Section 12.1: Basic Parameters
    1-78Section 12.2: Advanced Function
    1-79Section 12.3: Mandatory Parameters
    1-80Section 12.4: Parameter Validation
    1-81Section 12.5: Simple Function with No Parameters
    1-82Chapter 13: PowerShell Classes
    1-83Section 13.1: Listing available constructors for a class
    1-84Section 13.2: Methods and properties
    1-85Section 13.3: Constructor overloading
    1-86Section 13.4: Get All Members of an Instance
    1-87Section 13.5: Basic Class Template
    1-88Section 13.6: Inheritance from Parent Class to Child Class
    1-89Chapter 14: PowerShell Modules
    1-90Section 14.1: Create a Module Manifest
    1-91Section 14.2: Simple Module Example
    1-92Section 14.3: Exporting a Variable from a Module
    1-93Section 14.4: Structuring PowerShell Modules
    1-94Section 14.5: Location of Modules
    1-95Section 14.6: Module Member Visibility
    1-96Chapter 15: PowerShell profiles
    1-97Section 15.1: Create an basic profile
    1-98Chapter 16: Calculated Properties
    1-99Section 16.1: Display file size in KB - Calculated Properties
    1-100Chapter 17: Using existing static classes
    1-101Section 17.1: Adding types
    1-102Section 17.2: Using the .Net Math Class
    1-103Section 17.3: Creating new GUID instantly
    1-104Chapter 18: Built-in variables
    1-105Section 18.1: $PSScriptRoot
    1-106Section 18.2: $Args
    1-107Section 18.3: $PSItem
    1-108Section 18.4: $?
    1-109Section 18.5: $error
    1-110Chapter 19: Automatic Variables
    1-111Section 19.1: $OFS
    1-112Section 19.2: $?
    1-113Section 19.3: $null
    1-114Section 19.4: $error
    1-115Section 19.5: $pid
    1-116Section 19.6: Boolean values
    1-117Section 19.7: $_ / $PSItem
    1-118Section 19.8: $PSVersionTable
    1-119Chapter 20: Environment Variables
    1-120Section 20.1: Windows environment variables are visible as a PS drive called Env:
    1-121Section 20.2: Instant call of Environment Variables with $env:
    1-122Chapter 21: Splatting
    1-123Section 21.1: Piping and Splatting
    1-124Section 21.2: Passing a Switch parameter using Splatting
    1-125Section 21.3: Splatting From Top Level Function to a Series of Inner Function
    1-126Section 21.4: Splatting parameters
    1-127Chapter 22: PowerShell "Streams"; Debug, Verbose, Warning, Error, Output and Information
    1-128Section 22.1: Write-Output
    1-129Section 22.2: Write Preferences
    1-130Chapter 23: Sending Email
    1-131Section 23.1: Send-MailMessage with predefined parameters
    1-132Section 23.2: Simple Send-MailMessage
    1-133Section 23.3: SMTPClient - Mail with .txt file in body message
    1-134Chapter 24: PowerShell Remoting
    1-135Section 24.1: Connecting to a Remote Server via PowerShell
    1-136Section 24.2: Run commands on a Remote Computer
    1-137Section 24.3: Enabling PowerShell Remoting
    1-138Section 24.4: A best practise for automatically cleaning-up PSSessions
    1-139Chapter 25: Working with the PowerShell pipeline
    1-140Section 25.1: Writing Functions with Advanced Lifecycle
    1-141Section 25.2: Basic Pipeline Support in Functions
    1-142Section 25.3: Working concept of pipeline
    1-143Chapter 26: PowerShell Background Jobs
    1-144Section 26.1: Basic job creation
    1-145Section 26.2: Basic job management
    1-146Chapter 27: Return behavior in PowerShell
    1-147Section 27.1: Early exit
    1-148Section 27.2: Gotcha! Return in the pipeline
    1-149Section 27.3: Return with a value
    1-150Section 27.4: How to work with functions returns
    1-151Section 27.5: Gotcha! Ignoring unwanted output
    1-152Chapter 28: CSV parsing
    1-153Section 28.1: Basic usage of Import-Csv
    1-154Section 28.2: Import from CSV and cast properties to correct type
    1-155Chapter 29: Working with XML Files
    1-156Section 29.1: Accessing an XML File
    1-157Section 29.2: Creating an XML Document using XmlWriter()
    1-158Section 29.3: Adding snippets of XML to current XMLDocument
    1-159Chapter 30: Communicating with RESTful APIs
    1-160Section 30.1: Post Message to hipChat
    1-161Section 30.2: Using REST with PowerShell Objects to GET and POST many items
    1-162Section 30.3: Use Slack.com Incoming Webhooks
    1-163Section 30.4: Using REST with PowerShell Objects to Get and Put individual data
    1-164Section 30.5: Using REST with PowerShell to Delete items
    1-165Chapter 31: PowerShell SQL queries
    1-166Section 31.1: SQLExample
    1-167Section 31.2: SQLQuery
    1-168Chapter 32: Regular Expressions
    1-169Section 32.1: Single match
    1-170Section 32.2: Replace
    1-171Section 32.3: Replace text with dynamic value using a MatchEvalutor
    1-172Section 32.4: Escape special characters
    1-173Section 32.5: Multiple matches
    1-174Chapter 33: Aliases
    1-175Section 33.1: Get-Alias
    1-176Section 33.2: Set-Alias
    1-177Chapter 34: Using the progress bar
    1-178Section 34.1: Simple use of progress bar
    1-179Section 34.2: Usage of inner progress bar
    1-180Chapter 35: PowerShell.exe Command-Line
    1-181Section 35.1: Executing a command
    1-182Section 35.2: Executing a script file
    1-183Chapter 36: Cmdlet Naming
    1-184Section 36.1: Verbs
    1-185Section 36.2: Nouns
    1-186Chapter 37: Running Executables
    1-187Section 37.1: GUI Applications
    1-188Section 37.2: Console Streams
    1-189Section 37.3: Exit Codes
    1-190Chapter 38: Enforcing script prerequisites
    1-191Section 38.1: Enforce minimum version of PowerShell host
    1-192Section 38.2: Enforce running the script as administrator
    1-193Chapter 39: Using the Help System
    1-194Section 39.1: Updating the Help System
    1-195Section 39.2: Using Get-Help
    1-196Section 39.3: Viewing online version of a help topic
    1-197Section 39.4: Viewing Examples
    1-198Section 39.5: Viewing the Full Help Page
    1-199Section 39.6: Viewing help for a specific parameter
    1-200Chapter 40: Modules, Scripts and Functions
    1-201Section 40.1: Function
    1-202Section 40.2: Script
    1-203Section 40.3: Module
    1-204Section 40.4: Advanced Functions
    1-205Chapter 41: Naming Conventions
    1-206Section 41.1: Functions
    1-207Chapter 42: Common parameters
    1-208Section 42.1: ErrorAction parameter
    1-209Chapter 43: Parameter sets
    1-210Section 43.1: Parameter set to enforce the use of a parameter when a other is selected
    1-211Section 43.2: Parameter set to limit the combination of parameters
    1-212Chapter 44: PowerShell Dynamic Parameters
    1-213Section 44.1: "Simple" dynamic parameter
    1-214Chapter 45: GUI in PowerShell
    1-215Section 45.1: WPF GUI for Get-Service cmdlet
    1-216Chapter 46: URL Encode/Decode
    1-217Section 46.1: Encode Query String with `[System.Web.HttpUtility]::UrlEncode()`
    1-218Section 46.2: Quick Start: Encoding
    1-219Section 46.3: Quick Start: Decoding
    1-220Section 46.4: Encode Query String with `[uri]::EscapeDataString()`
    1-221Section 46.5: Decode URL with `[uri]::UnescapeDataString()`
    1-222Section 46.6: Decode URL with `[System.Web.HttpUtility]::UrlDecode()`
    1-223Chapter 47: Error handling
    1-224Section 47.1: Error Types
    1-225Chapter 48: Package management
    1-226Section 48.1: Create the default PowerShell Module Repository
    1-227Section 48.2: Find a module by name
    1-228Section 48.3: Install a Module by name
    1-229Section 48.4: Uninstall a module my name and version
    1-230Section 48.5: Update a module by name
    1-231Section 48.6: Find a PowerShell module using a pattern
    1-232Chapter 49: TCP Communication with PowerShell
    1-233Section 49.1: TCP listener
    1-234Section 49.2: TCP Sender
    1-235Chapter 50: PowerShell Workflows
    1-236Section 50.1: Workflow with Input Parameters
    1-237Section 50.2: Simple Workflow Example
    1-238Section 50.3: Run Workflow as a Background Job
    1-239Section 50.4: Add a Parallel Block to a Workflow
    1-240Chapter 51: Embedding Managed Code (C# | VB)
    1-241Section 51.1: C# Example
    1-242Section 51.2: VB.NET Example
    1-243Chapter 52: How to download latest artifact from Artifactory using PowerShell script (v2.0 or below)?
    1-244Section 52.1: PowerShell Script for downloading the latest artifact
    1-245Chapter 53: Comment-based help
    1-246Section 53.1: Function comment-based help
    1-247Section 53.2: Script comment-based help
    1-248Chapter 54: Archive Module
    1-249Section 54.1: Compress-Archive with wildcard
    1-250Section 54.2: Update existing ZIP with Compress-Archive
    1-251Section 54.3: Extract a Zip with Expand-Archive
    1-252Chapter 55: Infrastructure Automation
    1-253Section 55.1: Simple script for black-box integration test of console applications
    1-254Chapter 56: PSScriptAnalyzer - PowerShell Script Analyzer
    1-255Section 56.1: Analyzing scripts with the built-in preset rulesets
    1-256Section 56.2: Analyzing scripts against every built-in rule
    1-257Section 56.3: List all built-in rules
    1-258Chapter 57: Desired State Configuration
    1-259Section 57.1: Simple example - Enabling WindowsFeature
    1-260Section 57.2: Starting DSC (mof) on remote machine
    1-261Section 57.3: Importing psd1 (data file) into local variable
    1-262Section 57.4: List available DSC Resources
    1-263Section 57.5: Importing resources for use in DSC
    1-264Chapter 58: Using ShouldProcess
    1-265Section 58.1: Full Usage Example
    1-266Section 58.2: Adding -WhatIf and -Confirm support to your cmdlet
    1-267Section 58.3: Using ShouldProcess() with one argument
    1-268Chapter 59: Scheduled tasks module
    1-269Section 59.1: Run PowerShell Script in Scheduled Task
    1-270Chapter 60: ISE module
    1-271Section 60.1: Test Scripts
    1-272Chapter 61: Creating DSC Class-Based Resources
    1-273Section 61.1: Create a DSC Resource Skeleton Class
    1-274Section 61.2: DSC Resource Skeleton with Key Property
    1-275Section 61.3: DSC Resource with Mandatory Property
    1-276Section 61.4: DSC Resource with Required Methods
    1-277Chapter 62: WMI and CIM
    1-278Section 62.1: Querying objects
    1-279Section 62.2: Classes and namespaces
    1-280Chapter 63: ActiveDirectory module
    1-281Section 63.1: Users
    1-282Section 63.2: Module
    1-283Section 63.3: Groups
    1-284Section 63.4: Computers
    1-285Section 63.5: Objects
    1-286Chapter 64: SharePoint Module
    1-287Section 64.1: Loading SharePoint Snap-In
    1-288Section 64.2: Iterating over all lists of a site collection
    1-289Section 64.3: Get all installed features on a site collection
    1-290Chapter 65: Introduction to Psake
    1-291Section 65.1: Basic outline
    1-292Section 65.2: FormatTaskName example
    1-293Section 65.3: Run Task conditionally
    1-294Section 65.4: ContinueOnError
    1-295Chapter 66: Introduction to Pester
    1-296Section 66.1: Getting Started with Pester
    1-297Chapter 67: Handling Secrets and Credentials
    1-298Section 67.1: Accessing the Plaintext Password
    1-299Section 67.2: Prompting for Credentials
    1-300Section 67.3: Working with Stored Credentials
    1-301Section 67.4: Storing the credentials in Encrypted form and Passing it as parameter when Required
    1-302Chapter 68: Security and Cryptography
    1-303Section 68.1: Calculating a string's hash codes via .Net Cryptography
    1-304Chapter 69: Signing Scripts
    1-305Section 69.1: Signing a script
    1-306Section 69.2: Bypassing execution policy for a single script
    1-307Section 69.3: Changing the execution policy using Set-ExecutionPolicy
    1-308Section 69.4: Get the current execution policy
    1-309Section 69.5: Getting the signature from a signed script
    1-310Section 69.6: Creating a self-signed code signing certificate for testing
    1-311Chapter 70: Anonymize IP (v4 and v6) in text file with PowerShell
    1-312Section 70.1: Anonymize IP address in text file
    1-313Chapter 71: Amazon Web Services (AWS) Rekognition
    1-314Section 71.1: Detect Image Labels with AWS Rekognition
    1-315Section 71.2: Compare Facial Similarity with AWS Rekognition
    1-316Chapter 72: Amazon Web Services (AWS) Simple Storage Service (S3)
    1-317Section 72.1: Create a new S3 Bucket
    1-318Section 72.2: Upload a Local File Into an S3 Bucket
    1-319Section 72.3: Delete a S3 Bucket
    1-320Credits
    1-321You may also like

    常见问答

    您可以透過手機、平板或是電腦登入 HiSKIO 平台,在【我的學習】>【我的書籍】頁面,選擇想看的電子書。

    猜你喜欢

    用户评价

    | 收集中

    销售方案