Ya you probably need to remove the IF.... This line <If InStr(1, computer, "wlap" ,VBTextcompare) > 0 Then> This applies only to my company as wlap is contained in the naming standard.... It can be removed altogether
Also remove the end if!
Cheers Lloyd
The code follows. It could have been written a lot tydier but i have only just started looking at VB scripts. First 8 lines is where I read in the password from a file this is so password can be inputted on a web page and will automatically change the admin passwords Via group policy in windows...
I have a vbscript which now resets the Password for local guest and administrator accounts. I would also like to disable the guest account anyone know of an easy way to do this? Im new to this so help is appreciated. Local guest name is currently in GuestName as this changes from site to...
One more thing i am using this to force a password change on clients...... Is there anyway i can get a return code from this ie failure or success and pipe this to a file? I will keep working on it in the meantime....
Call User.SetPassword(password)
Thanks
Thanks for the info... I eventlually came up with this after reading a manual.... can you see any problem with me using this? It seems to work.......
lastline = Replace(lastline, """", "")
I am new to this as you may find out by reading the following. Hopefully one of you guys have a quick solution.
I have a text file as follows which is constantly appended to :
"testing1"
"testing2"
"testing3"
I want to read the last line of this file into a...
HKCU\Network\DRIVE-LETTER..... I doub it has been set up via group policy but if it has he would have created a LOGON script and added this to User Configuration\windows settings\scripts \logon... I would check here
Have you checked the Mapped drives location in registry? I rekkon he has manually done this from each machine and made the connections persistant... if you right click in explorer and disconnect do they come back?
I would make it a GC... also ensure you have DNS running on it might be a good idea so SRV records get created correctly... ALso ensure You subnet is created in sites and services. Before you demote the Old server from 2000 DC you need to sieze all % FSMO roles...
Is a standard policy. Called restricted groups - go into your policy enter widows settings / security settings / restricted groups... in here you can manually add your group to local administrators this will be enforced every time policy refreshes meaning even if they delet you again you will be...
Yes it does... If installing server you need the server boot disks they can be found under the following location:
CD_DRIVE\bootdisk\MAKEBOOT.exe
Any help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.