I have a logon script that I have been using for several years that will perform funtions such as map printers and drives for a computer according to the OU it belongs to.(ex:)
Select case(OU)
'##############
'Case Ucase("Laptops")
WshNet.AddWindowsPrinterConnection "\\server\printer"...
Have a script that reads a txt file which contains the computer's OU path. I want to take that line from the text and put that into the script to have it join the domain.
I get the error "an invalid DN syntax hs been specified.
How can I get it to read the variable "strContents" ?
here is the...
We have two snap servers(4200) that have Guardian OS 2.6.050. On one of the servers, which is 95% full, I am unable to share out any folder. Previously it had been shared but the server had lost connection to the network, and since rebooting, I am unable to create any shares or edit anything...
I can figure out how to send the access control list of a folder with cacls from the command prompt, but can't seem to figure how to do it with .vbs.
Any ideas?
Thanks
Yes I am in AD. I currently run logon scripts with gp, but have many OU's with different requirements,(mostly different printers)and am curios about calling an ini file from the logon script, if I understand the concept correctly.
Thanks
I've seen a few posts of "mrmovie" that refer to a logon script referencing an ini file. I am interested in putting together a logon script that references this for mapping drives, printers and other things. Our company has about 1000 workstations which are spread out over 7 physical locations...
I need help in changing a value of a registry key. If the value is equal to "1" I would like to change it to "2".
The key is HKEY_LOCAL_MACHINE\Software\develop\materials, Default connection "1"...
Thanks for any help,
ccoll23
mrmovie,
Thanks, but how would I write that to file? That's what I'm having trouble with. How would I change the "Wscript.Echo" to write the results to a txt file?
Thanks,
ccoll23
Does anyone know how to list the following to a text file?
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\FSO")
Set colSubfolders = objFolder.Subfolders
For Each objSubfolder in colSubfolders
Wscript.Echo objSubfolder.Name, objSubfolder.Size...
Thanks for all the input, but I didn't use this one before because I don't want to delete the stand alone printers attached to LPT1 (just the printers that were set up with created local ports of \\server\printer.)
Thanks
The link states it deletes a "tcp/ip" port, I'm trying to delete a local port. Is there a different method or location for this? (the site also said w2k was not a supported platform).
Any other thoughts?
Much Appreciated!
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.