J
J
Janus742016-02-01 13:18:10
Windows
Janus74, 2016-02-01 13:18:10

How to add a check to a vbs script?

Hello!
Please help improve the script (VBS):

On Error Resume Next
Set objSysInfo = CreateObject("ADSystemInfo")
Set objNetwork = CreateObject("WScript.Network")
Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
objUser.Put "wWWHomePage", objNetwork.ComputerName
objUser.SetInfo

you need to add a condition.
If the condition is met, then write the name of the computer on which the script was launched to the wWWHomePage attribute.
In the condition, you need to check whether the computer is a member of the "prohibit wWWHomePage" group, if it is, then terminate the script execution, and if not, execute it.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2016-02-01
@Janus74

Somehow google says so

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question