Rename a machine without logging in!
This script will ask you to input the new computer name, domain creds and then write a vbs based rename script to the machine. This will not pop up anything on the users machine and will be completed upon next reboot without the user knowing.
When this is finished it will write "Results: Successfully Changed Hostname" to the script log. otherwise it will write an error along the lines of invalid creds/hosname already exists. etc...
Hostname must be one word and if not part of a domain no need to enter username and password. Reboot the machine and it now has the NEW NAME!
Does not import
XML does not work
XML does not import
XML file does not import.
This is pretty good. Needs feature where agent credentials are used first that way you don't have to type domain admin credentials clear text. Another improvement is to get rename success or fail and then get the agent procedure to fail if there is a problem. The current state can show that execution of the AP was successful but not actually do its job. But seriously good job overall since it handles domain join pcs.
Same here. The XML file has all indentations removed.
same issue - well this is pretty much useless.....
Same problem here
same problem here
There are some DASHES that shouldn't be there in the XML. If you remove them the script will import.
There's also a variable called "Domain" that is asked for at runtime. It doesn't actually do anything, although what it's supposed to be doing is adding the "domainname\" in front of the domina admins username. I've rewritten the script to take care of that internally. Not sure if I'm allowed to post my changes or not.
There are some DASHES that shouldn't be there in the XML. If you remove them the script will import.
There's also a variable called "Domain" that is asked for at runtime. It doesn't actually do anything, although what it's supposed to be doing is adding the "domainname\" in front of the domina admins username. I've rewritten the script to take care of that internally. Not sure if I'm allowed to post my changes or not.
If you have suggestions on how to fix, let me know. I'll correct the source and repost.
Line 4 remove quotations from "Results: Successfully Changed Hostname"
Line 17 remove quotations around "domain\Administrator"
Anyone have the corrected one? I keep receiving:The file you are trying to import is not formatted correctly. It contains invalid XML.
Im getting a Writefile error on line 5? Any ideas?
I get Error Code = 0 on completion. Any ideas?
I've been using this AP for a while successfully, but it's stopped working recently. I'm guessing there's a change in Win10 v1903+ that's breaking it. the error I'm getting "from Agent Procedure Logs) is "FAILED in THEN step 6, execute script Execute vbscript(ID = 409) (Line 6)"
Quick follow-up, I think there may be something broken with the ExecuteVBScript statement. I replaced it with a ExecuteShellCommandToVariable statement, using "cscript //nologo #vAgentConfiguration.agentTempDir#\renamewks.vbs #newname# #vAgentConfiguration.workgroupDomainType# #username# #password#"
And i have no idea where to load up the vbs file so that it gets pushed down the machine. Sorry, not much of a VBS user here. Yea, this is not going to work without more info. Was a good idea, I will keep looking for a solution. Maybe test before posting? :)
While importing the xml I have the following error: "The text you are trying to import is not a valid XML import format."