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!