Hi

I must add local user in the local sam account database on workstations. I want to execute the code locally on the workstation. Can someone give me some code that can do this. I have code to do this from remote but not local.
Code:
 
$Group = GetObject("WinNT://" + $Ws + "/" + $AdminLanguage + ",group")
If @ERROR < 0
? "ERROR @Error:@SError"
Else
$Group.Add("WinNT://" + @Domain + "/Domain Users")
EndIf



In the code above I am using WinNT://" + $Ws which point to a remote computer, but if i execute the code locally what to write ?
And how to add one user ?