Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixiko committed Feb 24, 2021
1 parent 896c307 commit 3665b6f
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 91 deletions.
14 changes: 7 additions & 7 deletions classes/_examples/Class_NetworkManagement_Sample.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ SetBatchLines -1


; SCRIPT ========================================================================================================================
ipaddress := "192.168.178.30"


NetUserEnum := NetworkManagement.NetUserEnum("192.168.0.1")
NetUserEnum := NetworkManagement.NetUserEnum(ipaddress)
for k, v in NetUserEnum
MsgBox % "Name:`t`t" v.Name "`n"
. "Password:`t`t" v.Password "`n"
Expand All @@ -23,23 +23,23 @@ for k, v in NetUserEnum
; =======================================================================================


NetUserGetGroups := NetworkManagement.NetUserGetGroups(A_UserName, "192.168.0.1")
NetUserGetGroups := NetworkManagement.NetUserGetGroups(A_UserName, ipaddress)
for k, v in NetUserGetGroups
MsgBox % v


; =======================================================================================


NetUserGetLocalGroups := NetworkManagement.NetUserGetLocalGroups(A_UserName, "EXAMPLE\", "192.168.0.1")
NetUserGetLocalGroups := NetworkManagement.NetUserGetLocalGroups(A_UserName, "EXAMPLE\", ipaddress)
for k, v in NetUserGetLocalGroups
MsgBox % v


; =======================================================================================


NetWkstaGetInfo := NetworkManagement.NetWkstaGetInfo("192.168.0.1")
NetWkstaGetInfo := NetworkManagement.NetWkstaGetInfo(ipaddress)
MsgBox % "Platform_ID:`t" NetWkstaGetInfo.Platform_ID "`n"
. "ComputerName:`t" NetWkstaGetInfo.ComputerName "`n"
. "LanGroup:`t`t" NetWkstaGetInfo.LanGroup "`n"
Expand All @@ -52,7 +52,7 @@ MsgBox % "Platform_ID:`t" NetWkstaGetInfo.Platform_ID "`n"
; =======================================================================================


NetWkstaTransportEnum := NetworkManagement.NetWkstaTransportEnum("192.168.0.1")
NetWkstaTransportEnum := NetworkManagement.NetWkstaTransportEnum(ipaddress)
MsgBox % "QualityOfService:`t" NetWkstaTransportEnum.QualityOfService "`n"
. "NumberOfVcs:`t" NetWkstaTransportEnum.NumberOfVcs "`n"
. "TransportName:`t`t" NetWkstaTransportEnum.TransportName "`n"
Expand All @@ -63,7 +63,7 @@ MsgBox % "QualityOfService:`t" NetWkstaTransportEnum.QualityOfService "`n"
; =======================================================================================


NetWkstaUserEnum := NetworkManagement.NetWkstaUserEnum("192.168.0.1")
NetWkstaUserEnum := NetworkManagement.NetWkstaUserEnum(ipaddress)
for k, v in NetWkstaUserEnum
MsgBox % "UserName:`t" v.UserName "`n"
. "LogonDomain:`t" v.LogonDomain "`n"
Expand Down
Loading

0 comments on commit 3665b6f

Please sign in to comment.