Microsoft
Software
Hardware
Network
Question : VBscript Logon Error
I've been trying to use the attached logon script to provide information in AD for each user and computer object in the description field.
Its currently failing on the following line:
strMessage2 = " MAC: " & MACAddresses & " Authenticated by: " & objUser.CN & " at " & Now & "."
The WSH error is "wrong number of arguments or invalid property assignment: MACAdresses"
It does run properly when its constructed like this:
strMessage2 = " Authenticated by: " & objUser.CN & " at " & Now & ". MAC: " & MACAddresses(".")
I would simply like the MAC to be written first and then the user and time stamp.
Does anyone know how to write this properly so as an example, it writes like this?
MAC: 00:21:85:36:33:EC. Authenticated by: USERNAME at TIMESTAMP.
Thanks for your assistance!
logonDescription.txt
(1 KB)
(File Type Details)
POPULATES AD WITH USER LOGON INFO IN DESCRIPTION FIELD
Related Solutions:
Add WMI Query to Existing VBscript
Answer : VBscript Logon Error
MACAddresses(".") & "." & " Authenticated by: "
I think that should do it for you...
Good luck!
Random Solutions
MailChimp WordPress Plugin Embedded styles display: none; hiding form, Part 2
Network Range of IPs and what is available.
Cable Type/Pinout for RJ45 to RJ45 T1/E1 between two routers
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
anyone familur ith using the swing classes HTMLEditorKit StyleSheet and reading a external CSS
Related Combobox Data Population
Problems installing the AjaxControlTooKit.dll
Readystate in IE in VBA program
install problems with Framework .net 3.5 in Windows Server 2008 SP2 x86
MySQL IFNULL() selection