Hi,
I found out that this was a bit more tricky then expected.
I use ADS to deploy servers and ADS is using an agent on the remote servers to execute commands.
This service is running as system and can not be changed.
I need the the service to run a VBScript to join the computeraccount to some active directory groups.
But the Local System account does not have permissions in Active directory to do this.
I can mask username and password and send it to the ADS service over a secure channel, but I can not write a VBScript to use diffrent credentials.
I have tried write one script to use RunAs.exe to execute a secondary script that will perform the action. But I can not pass the password to the runas command. It is terminating before I can input keystrokes to the process.
I have also tried to use "impersonate" to create a connection to Active directory as the service account, but without success.
Does anyone have any good ides?
One limmitation is that it can not be any manual taskes, since this is running off houres and on a huge amount of servers in oure datacenter.
Best Regards
Wibbe
I found out that this was a bit more tricky then expected.
I use ADS to deploy servers and ADS is using an agent on the remote servers to execute commands.
This service is running as system and can not be changed.
I need the the service to run a VBScript to join the computeraccount to some active directory groups.
But the Local System account does not have permissions in Active directory to do this.
I can mask username and password and send it to the ADS service over a secure channel, but I can not write a VBScript to use diffrent credentials.
I have tried write one script to use RunAs.exe to execute a secondary script that will perform the action. But I can not pass the password to the runas command. It is terminating before I can input keystrokes to the process.
I have also tried to use "impersonate" to create a connection to Active directory as the service account, but without success.
Does anyone have any good ides?
One limmitation is that it can not be any manual taskes, since this is running off houres and on a huge amount of servers in oure datacenter.
Best Regards
Wibbe