Windows Startup scripts.. exactly when?


  1. Posts : 25
    Windows 7
       #1

    Windows Startup scripts.. exactly when?


    I have a vbscript that starts a Virtual PC Machine - the script runs perfect when executed manually or from the command line. I've placed it in the all users startup, but when I reboot it does not run until I log in. Is this the expected behavior? How can I have it start when Windows starts up.. for example, after a powerfail?

    Also, I've tried running the vbscript under a windows service using srvany.exe, but it just won't run. I even tried calling the vbscript from a cmd file with a cscript call through the service, again, no luck. Is it possible to run a vbscript from a windows service?

    Finally, is it possible to run a VM using vpc.exe (Windows Virtual PC) from the cmd prompt? How? and What are the switches for vpc.exe?

    Basically, I need the VM to always be up.

    Thanks for any help or information.
      My Computer


  2. Posts : 25
    Windows 7
    Thread Starter
       #2

    update: I found my error, but can't fix it.

    The application-specif permissions settings do not grant local activation permission for the COM Server Application.

    component services > run as admin > computers > my computer > dcom config > Virtual PC > properties > security

    But Virtual PC options are grayed out in component services.
      My Computer


  3. Posts : 385
    Windows 7 Ultimate x64 SP1
       #3

    Hi,

    Welcome to 7 forums :)

    * In this regard, make sure if the script service is set to manual or automatic. If its manual, make the service to run automatically. Then place it at the startup !
      My Computer


  4. Posts : 25
    Windows 7
    Thread Starter
       #4

    Venths said:
    Hi,

    Welcome to 7 forums :)

    * In this regard, make sure if the script service is set to manual or automatic. If its manual, make the service to run automatically. Then place it at the startup !

    We'll yes, but that's not going to help me if the service isn't working.

    Thanks.
      My Computer


  5. Posts : 385
    Windows 7 Ultimate x64 SP1
       #5

    Ok, if you have many users and have set this application on startup for all users. Remove it. Try adding it only for the current user and lets check if this works :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:35.
Find Us