?
Solved

Start up scripts

Posted on 2009-07-12
4
Medium Priority
?
445 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Suggested Courses

770 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