Sign in to follow this  
Followers 0
AlmarM

_Net UDF~

1 post in this topic

Hi,

I made this _Net UDF, hope its usefull ^^,

#include <Process.au3>

; _Net_AddUser
; _Net_DeleteUser
; _Net_AddCom
; _Net_DeleteCom
; _Net_AddAdmin
; _Net_DeleteAdmin
; _Net_Start

Func _Net_AddUser($sUsername, $nPassword)
    _RunDOS("net user /add " & $sUsername & " " & $nPassword)
    Return $sUsername & " " & $nPassword
EndFunc

Func _Net_DeleteUser($sUsername, $nPassword)
    _RunDOS("net user /delete " & $sUsername & " " & $nPassword)
    Return $sUsername & " " & $nPassword
EndFunc

Func _Net_AddCom($nName)
    _RunDOS("net computer /add \\" & $nName)
    Return $nName
EndFunc

Func _Net_DeleteCom($nName)
    _RunDOS("net computer /delete \\" & $nName)
    Return $nName
EndFunc

Func _Net_AddAdmin($nName)
    _RunDOS("net localgroup administrators /add " & $nName)
    Return $nName
EndFunc

Func _Net_DeleteAdmin($nName)
    _RunDOS("net localgroup administrators /del " & $nName)
    Return $nName
EndFunc

Func _Net_Start()
    _RunDos("net start")
EndFunc

Feel free to add / edit func's!

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0