White Paper

2 Scripting WSMAN Operating System Deployment Boot Network ISO
Contents
Executive Summary................................................................................ 3
Introduction......................................................................................... 3
WSMAN clients ...................................................................................... 3
WinRM CLI ........................................................................................ 3
OpenWSMAN CLI ................................................................................. 4
Scripting WSMAN clients using Python ......................................................... 5
Common APIs ....................................................................................... 6
Detect Host Operating System................................................................ 7
Construct WSMAN CLI commands ............................................................ 7
Enumerate .................................................................................... 7
Enumerate Keys ............................................................................. 8
Get ............................................................................................. 9
Set ............................................................................................ 10
Invoke ........................................................................................ 11
Launch WSMAN CLI command ................................................................ 12
Ping test ......................................................................................... 12
Extract SSL certificate ........................................................................ 13
Important Notes ................................................................................... 14
Where to Find More Information ............................................................... 14
Summary ........................................................................................... 15