Link to home
Start Free TrialLog in
Avatar of rvsBhanu
rvsBhanuFlag for United States of America

asked on

Start up scripts

Hello,

My requriment is to have a start up script which Runs only once.

I am building a VM through self service portal (SCVMM),I have a template which build the VM which automatically join the server to domain , map the drives and starts IPAK upgrade,I want to run some scripts like adding server roles,chaning the Drive letters etc .These scripts should run once the VM is rebooted after IPAK upgrade i.e the script should run automatically after reboot.

Please any one could provide me pointers in do so.

Thanks
Avatar of Jaymz_R
Jaymz_R
Flag of Australia image

http://msdn.microsoft.com/en-us/library/aa376977%28VS.85%29.aspx

I would recommend creating a registry key and then running it in silent mode to add it to the "run once" registry entry on every machine, then delete it after the morning once everyone has logged on ...

Avatar of rvsBhanu

ASKER

Thank you ,it is very usefull for me to get an idea.
if possible could you please let me know ,how Can I make it run after some pre installtion steps (which are automated) .

for eg: I want to execute the script only once but it should run after IPAK upgrade.Is there any way to set flag for completion of IPAK upgrade the excecute the script.
ASKER CERTIFIED SOLUTION
Avatar of JonLambert
JonLambert
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks a lot