Solved

Start up scripts

Posted on 2009-07-12
4
436 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:rvsBhanu
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Jaymz_R
ID: 24837368
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 ...

0
 

Author Comment

by:rvsBhanu
ID: 24838395
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.
0
 
LVL 10

Accepted Solution

by:
JonLambert earned 500 total points
ID: 24845258
You could have the script run from runonce as suggested, check if the IPAK upgrade is complete (check for the existing of a file you know will be there after the upgrade or some such), and if the IPAK upgrade is not complete, then get the script to add itself back into the runonce key.  That way it will continue to execute on startup until the IPAK upgrade is complete.
0
 

Author Closing Comment

by:rvsBhanu
ID: 31610813
Thanks a lot
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question