Solved

Start up scripts

Posted on 2009-07-12
4
432 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now