ES24: Using PowerShell to Create Manageable Web Services

peruvianwageslaveInternet και Εφαρμογές Web

5 Φεβ 2013 (πριν από 4 χρόνια και 6 μήνες)

210 εμφανίσεις



Jeffrey Snover


Partner Architect


Microsoft Corporation

ES24













New command
-
line shell and scripting language


As
interactive

and
composable

as BASH/KSH


As
programmatic

as Perl/Python/Ruby


As
production oriented
as AS400 CL/VMS DCL


Allows access to data stores as
easy to access
as
filesystem

Automation Frameworks

Automation Frameworks

Automation Frameworks

Cmdlets

In
-
Proc, Local, Remote

Runtime Engines

In
-
Proc, Local, Remote

Runtime Engines

In
-
Proc, Local, Remote

Runtime Engines

Automation Platform (API)

ScriptingLanguage

Type

Normalizers

Type

Normalizers

Type

Normalizers

Providers

Events, Jobs,
Transactions

Shells, ISEs, GUI s, Applications

Universal



Interactive or programmatic



Wide range of
OSes



Local or Remote



Single or Multi Machine



Synch or
Asynch



Wide range of authentication


mechanisms



.NET, native code, COM, WMI,
ADSI, XML, ADO,
WebServices
,
WSMAN, etc



Simple scripting to systems


programming


Powered by a strong community








web services
,

cloud services
,


V1

V2

Developer


䍭摬et猠慮搯潲 灲o癩v敲s



䡥汰


Pow敲卨敬S 捭摬ets



Tr慮獡捴i潮o獵灰潲t

Pow敲卨敬S



䍌C

☠䅐I




剩捨Rl慮杵慧攠眯慣捥獳st漠o潭o
睭w

.乥t

慤獩
Ⱐx浬m☠&摯




啴Uliti敳et漠浡湩灵pat攬 f潲浡tⰠ
i浰潲t/ex灯牴




129 Cmdlets



Web service

&

workflow activities



剩捨敲 l慮杵慧a 眯慣捥獳st漠w敢e獥牶s捥猬s
畮浡u慧a搠c潤攬
w獭慮





剩捨敲 畴iliti敳ei湣汵摩湧
ev敮ti湧
Ⱐ橯戠c潮tr潬Ⱐ
r敭潴攠ex散畴i潮




241 Cmdlets



Graphical ISE to create/debug scripts


Users


卩浰S攠慤e桯挠獣sipts


卯灨Ssticat敤e⁰ 潤畣oi潮o獣sipti湧


Syst敭猠灲潧o慭浩湧


䅣A潳猠浵汴i灬攠浡捨楮敳

䍯浭畮uty



Writ攠慮搠獨dr攠獣sipts



Writ攠慮搠卨dr攠䵯摵l敳

V1 Scripts and Cmdlets run on PowerShell V2





WSMAN







Power Off Command

Invoke
-
WSManAction

-
CN $
svr

-
cred

$
cred

-
port 16992 `

-
Auth digest
CIM_ComputerSystem

`


䅣瑩潮

R敱略et却at敃桡ege

`


卥汥捴潲卥t

䁻@慭攽"
䵡湡g敤eyst敭
≽⁠

-
v慬略卥t


R敱略et敤却ate
㴢3≽

Chassis

Class

Get
-
WSManInstance
-
CN $svr
-
cred $cred
-
port 16992
-
Auth digest
-
enum
CIM_Chassis

Chip Class

Get
-
WSManInstance


CN $
srv

-
cred

$
cred

-
port 16992
-
Auth digest
-
enum

CIM_Chip

Power On Command

Invoke
-
WSManAction

-
CN $
svr

-
cred

$
cred

-
port 16992 `

-
Auth digest
CIM_ComputerSystem

`


Action

RequestStateChange

`


SelectorSet

@{Name="
ManagedSystem
"} `

-
valueSet

@{
RequestedState
=“2"}








[
-
ProxyAccessType

<
ProxyAutoDetect

|
ProxyIEConfig

|


ProxyNoProxyServer

|
ProxyWinHttpConfig
>]



[
-
ProxyAuthentication

<Basic | Digest | Negotiate>]



[
-
ProxyCredential

<
PSCredential
>]




















Used by over 600 million users worldwide







-
CN (cat servers.txt)
-
Throttle 64


AsJob

































Company1

admin@company1.com

joe@company1.com

SMB2

admin@Company2.com

david@Company2.com

Hosting Service


Data
Farm


CoolLabs.com

SMB2

Runspace
admin@smb1.
com

Runspace
admin@smb2.
com

admin@company1.com

joe@company1.com

Company1

david@Company2.com

admin@Company2.com





Windows PowerShell V2

www.microsoftpdc.com

©
2008 Microsoft
Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademar
ks
and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the
dat
e of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accu
rac
y of any information provided after the date of this presentation.

MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.