I use a small vbs program to connect to another computer on our network and disable the smart card force option so we (techs) can log in manually. I didn't write this program but I was wondering if anybody could tell me what the specific calls are doing.

Code:
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = InputBox("Enter the NetBIOS Name or IP address of the computer you wish to disable Smart Card Logon:")

If strComputer = "" Then
MsgBox "Nothing was entered in the inputbox" & vbCrLf & "Or you pressed the Cancel Button"
Else:
Set StdOut = WScript.StdOut

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ 
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\windows\currentversion\policies\system"
strValueName = "ScForceOption"
dwValue = 0
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue

End If

wscript.Echo strComputer & " is NOT forced to use Smart Card Logon!"