Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JazzFan

    Run 2 programs in succession in a script

    Try this. strCommand = "C:\Oracle10Client\10g_client\setup.exe -responsefile c:\Oracle10client\10g_client\response\10CLIENT.RSP -noconsole -silent" InstallThis strCommand strCommand = "C:\Oracle10Client\10g_client\Patch\Disk1\setup.exe -responsefile...
  2. JazzFan

    Populating Managed By Field in AD

    Thanks again PHV. Here's how it finally worked. Set objManager = GetObject("LDAP://CN=" & strManagedBy & ",DomainName") Set objComputer = GetObject("LDAP://CN=" & strHostName & _ ",DomainName") objComputer.Put "managedby"...
  3. JazzFan

    Populating Managed By Field in AD

    Thanks PHV, I guess the question should have been: Is managedby the right name for this field?, or is just name? I have tried both and neither works. jazzfan
  4. JazzFan

    Populating Managed By Field in AD

    Hello all, how do I reference the Managed By field for computers in Active Directory?. I have tried the following but with no success. objComputer.Put "managedby", strManagedBy objComputer.Setinfo objComputer.Put "name", strManagedBy objComputer.Setinfo Thanks in...
  5. JazzFan

    Trying to see the Permissions (ACL) of a Folder or File

    K0b3 Thanks a lot for your suggestion. I finally found the SID for Authenticated Users (S-1-5-11) and that worked. The script also appears to work when Authenticated Users is enclosed in Quotes " " Thanks again jazzfan
  6. JazzFan

    Trying to see the Permissions (ACL) of a Folder or File

    K0b3 I can't figure out how to set permissions to "modify" for the "Authenticated users" group using the script in FAQ329-5734. Could you provide a couple of examples please? jazzfan.
  7. JazzFan

    Did anyone ask about using WMI via VBScript to set folder permissions?

    dgunraj, what would the syntax be to run your script so I can add the group "Authenticated Users" and grant this group modify permissions? Thank alot in advance jazzfan
  8. JazzFan

    Populating the "Country" field in AD

    Thank you very much, rescueswimmer. That did the trick. I think you should have a star. jazzfan
  9. JazzFan

    Populating the "Country" field in AD

    I am trying to fill in the fields of the address tab for users' properties in AD. Everything is working fine except for the country field. I get -2147016657 as err.number. Here's basically what I've got: Option explicit Const INPUT_FILE_NAME = "C:\Scripts\WMI\Testers\emplist1.txt" Const...
  10. JazzFan

    Cannot read a text file

    Hello tsuji, I am very grateful for your prompt and accurate response. It worked like a charm. Thanks again and have a star. jazzfan
  11. JazzFan

    Cannot read a text file

    Hi everyone, I am trying to read a file line by line but my script is just not cooperating. Can anyone please point out what I am missing? Here's what I have: 'Option Explicit Const INPUT_FILE_NAME = "C:\scripts\wmi\testers\XPLibrarySongList.txt" Const FOR_READING = 1 On Error Resume Next...
  12. JazzFan

    Script to find out how many files are in a folder

    Check out this thread: http://www.devguru.com/Technologies/vbscript/quickref/filescollection.html Hope this helps. jazzfan
  13. JazzFan

    usb2 external drive

    gbaughma, Your link is not operational. I would very much like to see what's in there, who knows? The answer I'm looking for could be there. Thanks again jazzfan
  14. JazzFan

    usb2 external drive

    The file extensions are mp3 and aac
  15. JazzFan

    usb2 external drive

    I connected the usb drive to the pc, windows xp recognized the new hardware but it did not show up on My Computer, I then went to control panel/admin tools/computer management/disk management and the drive is there but kind of undefined. I don't have an option to assign a letter to it. It is...
  16. JazzFan

    usb2 external drive

    I copied my music files from my emac to an external usb drive, now I want to take this usb drive to my windows machine and be able to copy the files to my hard drive. Is this possible? Can anyone help? Thank you very much in advance. Jazzfan
  17. JazzFan

    Disable Guest Account

    Try the following: strComputer = "MyComputer" Set objUser = GetObject("WinNT://" & strComputer & "/Guest") objUser.AccountDisabled = True objUser.SetInfo
  18. JazzFan

    Resetting local admin passwords

    Is there a way to change the administrator's password on about 100 pcs running Windows NT 4? . I've tried putting the line "cmd /c net user administrator 74735jdhsg" in a file and then running the file with a vbs script but I get a "General Access Denied" error. Any help is...

Part and Inventory Search

Back
Top