FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:windows:wincheck:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
os:windows:wincheck:index.html [2018/02/22 23:25]
kurihara
os:windows:wincheck:index.html [2018/03/08 00:59]
kurihara
Line 15: Line 15:
  
 \\ \\
-==== How to Check to Use Fabric ====+==== How to Check to Use Fabric in Windows ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 +$ ssh user01@xx.xx.xx.xx hostname
 $ ssh user01@xx.xx.xx.xx "PowerShell.exe -Command Get-Host" $ ssh user01@xx.xx.xx.xx "PowerShell.exe -Command Get-Host"
 </sxh> </sxh>
Line 103: Line 104:
 @task @task
 def net_user_active(user): def net_user_active(user):
-   """ make user active from disable"""+    """ make user active from disable"""
     run("net user %s /active" % user, shell=False, pty=False)     run("net user %s /active" % user, shell=False, pty=False)
  


os/windows/wincheck/index.html.txt · Last modified: 2018/05/13 23:19 by kurihara