hey all,
We're currently about to add a new email server to one of our offices. Currently everyone (both offices) are using the same server and everyone has the server name in their outlook account setup .
To make things easier in the move, I've decided to edit everyone's hosts file in the office thats getting a new server to include the old servers name and current ip address. I will then change the DNS records once the server is running and start removing the hosts file i put in.
This way I don't have to go to every machine and open outlook and reconfigure it. (ball ache, as I've got about 150 people in that office!)
Now, I've written me a fab little vbs script thats starts at logon via a GPO and it does everything I could ever have asked of it, however it only works when run as an administrator.
Is there a way to start a vbs script as administrator via GPO like this???
I've tried 'runas' and that won't start a vbs script as it seems to only do .exe's. I've also tried psexec (an old favourite of mine) but it doesn't seem to run the script.
I've also tried running the script from startup instead of logon as I beleive startup runs within the system account, but the scripts fails to rename and copy in a new hosts file.
Any ideas anyone???
Cheers in advance!
We're currently about to add a new email server to one of our offices. Currently everyone (both offices) are using the same server and everyone has the server name in their outlook account setup .
To make things easier in the move, I've decided to edit everyone's hosts file in the office thats getting a new server to include the old servers name and current ip address. I will then change the DNS records once the server is running and start removing the hosts file i put in.
This way I don't have to go to every machine and open outlook and reconfigure it. (ball ache, as I've got about 150 people in that office!)
Now, I've written me a fab little vbs script thats starts at logon via a GPO and it does everything I could ever have asked of it, however it only works when run as an administrator.
Is there a way to start a vbs script as administrator via GPO like this???
I've tried 'runas' and that won't start a vbs script as it seems to only do .exe's. I've also tried psexec (an old favourite of mine) but it doesn't seem to run the script.
I've also tried running the script from startup instead of logon as I beleive startup runs within the system account, but the scripts fails to rename and copy in a new hosts file.
Any ideas anyone???
Cheers in advance!
Last edited: