Jump to content

Stealth111

Member
  • Posts

    17
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by Stealth111

  1. I have a script I wrote to do EXACTLY what you want!!! it WILL remove a computer from a domain EVEN if there is NO domain controller available, and then you have the option to join the pc to a new domain, then it will reboot, and you are done! Let me dig it up and I will post it Monday if you reply that you still are in need of this.. I used this to change all the computers we wanted to in our district to a different domain, AFTER we had already disposed of the old domain controller.. It works great!
  2. I have made something exactly as you need, if you are still interested, reply and I will post the code..
  3. I guess I will stay with what I came up with, I tested it in 3 different enviornments in 3 different buildings and it seemed to work exactly as I needed it to, but thanks for the offer anyways!!
  4. Hey gun, thanks for the info, can you also add a bit to assign the dns also at the same time in the script?? It would be great for me to force the dns that I want coming out of dhcp. My domain setup gets a different dns from our dhcp server, different than when I statically assign ip's, as we have 2 different ISP's in the building.. Would it be a metter of just adding : strDNSservers = Array ("192.168.177.200") and add this : errDNS = objNetAdapter.SetDNSServerSearchOrder(strDNSServers) Final Script including dns server entry?? strComputer = "." Set objWMIService = GetObject( _ "winmgmts:\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration " _ & "where IPEnabled=TRUE") strIPAddress = Array("192.168.1.141") strSubnetMask = Array("255.255.255.0") strGateway = Array("192.168.1.100") strGatewayMetric = Array(1) strDNSservers = Array("192.168.1.2") For Each objNetAdapter in colNetAdapters errEnable = objNetAdapter.EnableStatic( _ strIPAddress, strSubnetMask) errGateways = objNetAdapter.SetGateways(_ strGateway, strGatewaymetric) errDNS = objNetAdapter.SetDNSServerSearchOrder(_ strDNSServers) Next Seemed to work, but I wanted someone to correct me if I am missing something..
  5. TRUST ME... IT IS SWEET!! IcemanND has really brought his program from a casual "might use" type of program, to the type of program I will come to rely on day in and day out administering and auditing my buildings and the 1000's of systems in them. Every day he has been adding and changing the program from some simple suggestions I had made to him, of things that I might like to see the program do. He has been right there with the changes.. And with the exception of 1 isolate bug that we are looking into with a "ROGUE" machine in one of my buildings that won't play nice, the program is ROCK SOLID!! Thanks again IcemanND!! The AD scan absolutely kicks a**, I am working on passing the outputted results of the .csv file into another script to change keys that don't match a check file.. Changing the keys via vb is cake, but automating the process of checking them against a database and then changing them is another thing. See, I have kids that will try to get the product keys from our maachines and use them at home, ect.. So I DEPLOY GENERIC keys to the whole building, ALL THE SAME.. But I have a database of the ACTUAL keys for each system, that I can run a file and change the whole domain back to their original keys with the simple run of a script, when it come time for an audit, so you can see why I praise this program so much, it is looking like the final peice of my big puzzle..
  6. Man, another great tool!! Thanks again..
  7. Well the ping script had a few different results.. My Own machine was fine, pinging local domain controller was fine, and a few of the clients in the local building reported fine, others get error at line 27 char 5 permission denied: 'getObject" code 800A0046, others give me the message error could not ping ect.ect.ect.... The computers that ARE joined to my domain work well, the ones that are on a workgroup get the permission denied, and the machines that are in another building with a different ip range give me the could not ping error, or permission denied.. (local building is 10.80.60.xxx other building is 10.80.50.xxx) and I can ping these other machines in the other building with normal programs..weird..Maybe you could script in some different priveledges, so I could try running it as the administrator of the domain as I do with all my other programs I run.. That seems to help get past priveledges about all of the time.. :)And all of our network attached storage devices gives me "the remote server machine does not exist or is unavailable: getObject" I am mainly trying to do the copy thing I mentioned to 3 different storage servers in 3 different buildings, and to 3 different servers in 3 different buildings.. Just letting you know the results as you asked..!! I really appreciate the time you are putting into these for me and anyone else it may help..
  8. Absolutely , I will try all these first thing in the morning when I get to work.. I really appreciate the work you put into trying to get this up and running.. I will report back the results ASAP..
  9. Sounds like a great idea, hope you can get it worked out!! Any chance you can throw the fix at me that will allow it to just attempt the blind copy to 3 different locations(servers) in the meantime while you are working out the other method?? Please. And Thanks!!
  10. Is it possible to add or modify a registry file via a vb script or batch file the would grab part of the the data using the %username% variable, I am using folder redirection in our domain, and I have a program that requires a file association of .egp , so when they click on Example.egp it will open \\SERVERNAME\Redirect\KIM HAWS\Easy Grade Pro\egp.exe, and the same for \SERVERNAME\Redirect\tim shay\Easy Grade Pro\egp.exe, ect.. in the registry under classes is the location of where i want to associate a program with the .egp file extension, but the location of the program to execute it changes with each logged in user.. The data path goes to their logged in username, so I can use the %username% variable somewhere, but the registry does not understand that.. Maybe some help on a batch file or .vbs that might grab the info from %username% and put it into the registry or just create a .reg key that I can add to the registry further down the login script after the new data has been created into the reg file.. Thanks for any help anyone can offer..
  11. Could the code be modified somehow to copy the file dragged to 3 seperate locations at the same time?? Like to 3 different servers?? This worked great for me to copy changed files to a server easily, but I have multiple servers I would like to synch with a newly created file everyday, like when I make changes to the file, it would be way cool to drag it to the .vbs file and have it copy to 3 seperate locations.. Any help would be greatly appreciated!! :0
  12. Awesome..Micropack is exactly what I have been needing forever, perfect for unattended install.. Small and fast!! Thanks again!!
×
×
  • Create New...