"Explore PowerShell" "Six" script basics briefly

Source: Internet
Author: User
Tags arrays

In a later tutorial, I'll focus on how the PowerShell script is written. This section, first do an overview and the general introduction, today is a holiday, not to write too much, tomorrow began to explain.

PowerShell Scripting Basics Overview:

constants, variables, arrays, hashes Conditions, logic Loop control
of modular WMI objects (various devices) ADSI object (Active Directory)

constants, variables, arrays, hashes

Various string operations

Using Constants and variables

Various operators and expressions

Create, modify, or merge arrays or hash tables

Conditions, logic

To judge a variety of conditions

"If", "switch" statement

Using Operators for judgment

Loop control

' While ', ' do-while ', ' Do Until ', ' for ', ' foreach ' statement

of modular

Organize, adjust code

Use the appropriate data type

Calling other script functions

WMI objects

The concept of the WMI namespace

The functionality provided by WMI

WMI namespaces to view and use

WMI's Classes

"Get-wmiobject"

Querying WMI

ADSI Object

The concept of Active directory objects

The functionality provided by ADSI

Active Directory namespaces

Creating and modifying Active Directory objects

OK, this section brief introduction to write here, hope you can master the content in the later tutorial!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.