8. 8
Windows
.NET Framework
PowerShell スクリプト
exe
bat VBScript JScript
Script Engine
CLR(共通言語ランタイム)
Class Library
スクリプトの実行環境
PowerShell エンジン
COM
cmd/
command
Windows Script Host
Cscript.exe Wscript.exe
C
O
M
15. 15
History of Microsoft Management Framework
2000年 Windows 2000 に WMI をインプリメント
– 29 WMI プロバイダを含む
– 同時に Windows NT, 98, 95 用の WMI もダウンロード開始
(15 WMI プロバイダー)
※どちらかといえば ”プロバイダー” 提供ベンダー向けのテクノロジー
※ Windows ファミリ間の相互運用性に留まる
2005年 WS-Management が DMTF へ提出、承認
2007年 Windows Server 2008 に WS-Management を実装(WinRM)
• HTTP/S を介して他プラットフォームとの接続が可能に
• Windows PowerShell で WinRM を介したリモートサーバー管理が標準手法
として取り込まれる
WS-Management とは Web Services
for Management のこと。Windows
Server ではない。
16. 16
Windows Management Framework
http://www.microsoft.com/downloads/
前提条件
• Windows PowerShell ISE がインストールされていること
• Microsoft .NET Framework 4.0 がインストールされていること
OS WMF 3.0 WMF 4.0
Windows 7 SP1 以降 SP1 以降
Windows Server 2008 SP2 以降 ×
Windows Server 2008 R2 SP1 以降 SP1 以降
Windows 8 標準 8.1にアップグレード
Windows 8.1 ー 標準
Windows Server 2012 標準 ○
Windows Server 2012 R2 ー 標準
17. 17
Windows Management Framework
Windows Management Framework
IT Pro IT Developer
Solution
Developer
Storage Network DevicesCPU
Windows PowerShell
CIMOM、SMI-S
標準化されたアクセス
標準化されたプロトコル
標準化された
オブジェクトモデル
WS-Management(WinRM)
(Web Service for Management) http
他の
プラットフォーム
Service
Provider
開
発
WS-Man
CIMOM、
SMI-S
SMI-S(Storage Management Initiative - Specification)
誰が作るの?
18. 18
The Open Group Membership 2012/10/5 時点
Platinum - 5
• Capgemini Netherlands
• Hewlett-Packard USA
• IBM USA
• Kingdee Software (China) Co. Ltd China
• Oracle Corporation USA
Gold – 44(抜粋)
• Microsoft Corporation USA
• NTT Data Corporation
• ReGIS Inc.
Silver – 256 (Japan のみ抜粋)
• Asahi Techneion Co., Ltd
• AXE, Inc.
• eflow Inc.
• Information-technology Promotion Agency,
Japan
• Japan Aerospace Exploration Agency (JAXA)
• Mizuho Information and Research Institute, Inc.
• Nissan Motor Co., Ltd.
• Nomura Research Institute, Ltd.
• Rococo Co Ltd
• SIOS Technology, Inc.
• Sony CSL
• Symphony Ltd.
Academic – 38 (Japan のみ抜粋)
• Aoyama Gakuin University
• Kyoto University
• Nagoya University
• The University of Tokyo Information Technology
Center
19. 19
Open Management Infrastructure(nanoWBEM)
• オープンソース版 CIM Server
• 軽量 250KB、C で開発されている
Windows PowerShell、その他
Providers : CIMOM,SMI-S
WS-Management(OMI)
Providers : CIMOM,SMI-S
Storage Network DevicesCPUStorage Network DevicesCPU
WS-Management(WinRM)
各種言語
WinRM Client
WinRM Server
OMI Client
OMI Server
21. 21
OMI サポート プラットフォーム
• HP-UX 11i v2 and v3 (PA-RISC and IA64)
• Sun Solaris 8 and 9 (SPARC) and Solaris 10 (SPARC and x86)
• Red Hat Enterprise Linux 4 (x86/x64) and 5 (x86/x64) Server
• Novell SUSE Linux Enterprise Server 9 (x86) and 10 SP1 (x86/x64)
• IBM AIX v5.3 and v6.1 (POWER)
• MacOS 10.5 (Intel)
• Windows(限定的)
最新版は OMI Source - v.1.0.7a (2013年5月)
100. 100
(参考)Windows Server 2012 GUI オプション
Server Core MinShell Server W/GUI Desktop Experience
コマンドプロンプト Available Available Available Available
Windows PowerShell Available Available Available Available
サーバーマネージャー Not Available Available Available Available
MMC Not Available Available Available Available
コントロールパネル Not Available Not Available Available Available
コントロールパネル内
のアプレット
Not Available Some Available Available Available
Windows Explorer Not Available Not Available Available Available
タスクバー Not Available Not Available Available Available
通知エリア Not Available Not Available Available Available
Internet Explorer Not Available Not Available Available Available
ヘルプ Not Available Not Available Available Available
テーマ Not Available Not Available Not Available Available
スタートスクリーン Not Available Not Available Not Available Available
WinRTアプリ Not Available Not Available Not Available Available
メディアプレーヤー Not Available Not Available Not Available Available
101. 101
ServerManager モジュールでサポートされている
コマンドレット
PS C:¥> Import-Module ServerManager
PS C:¥> Get-Command -Module ServerManager
Alias Add-WindowsFeature servermanager
Alias Remove-WindowsFeature servermanager
Function Disable-ServerManagerStandardUserRemoting servermanager
Function Enable-ServerManagerStandardUserRemoting servermanager
Cmdlet Get-WindowsFeature servermanager
Cmdlet Install-WindowsFeature servermanager
Cmdlet Uninstall-WindowsFeature servermanager
102. 102
16. DC を複製する
Windows Server 2012 以降では、仮想化されたドメインコントローラーを複製して展
開することがでる。
Hyper-V
ホスト
DC02 DC03Export
DC01
(pdc)
(条件)
• 複製元はPDCエミュレーターであってはならない
• 複製元は Clonable Domain Controllers グループのメンバーでなくてはならない
• Hyper-V ホストは Windows Server 2012
• DCは Windows Server 2012
VHD Import
Hyper-V
ホスト
Hyper-V
ホスト