VPC does not support scripting, of course, but Virtual Server does. Having
said that, for help with VPC may I suggest the newsgroup at
microsoft.public.virtualpc (VS is at microsoft.public.virtualserver). Also,
are you familiar with Ben Armstong's blog at
http://blogs.msdn.com/virtual_pc_guy/? He is a program manager on the MS
virtualization team. Ben has a lot of entries on scripting, including
startups and shutdowns.
"Martin X." <martin@x.x> wrote in message
news:Ok0eHZEXIHA.1212@TK2MSFTNGP05.phx.gbl...
> Hello:
>
>
>
> Here are some details on what I'm doing now, then I'll explain what I'm
> trying to do:
>
>
>
> 1) I have a Windows XP Professional PC that has a Virtual PC 2007
> that's
> also running Windows XP Professional.
>
> 2) On the host I have a batch file in Windows Scheduled Tasks that
> runs
> At System Startup. This batch file runs under administrator credentials
> and
> starts my Virtual PC. So anytime the PC is powered on the Virtual PC will
> startup without any user intervention. This works fine.
>
>
>
> What I'm trying to do and the issues I have:
>
>
>
> 1) Whenever anyone shuts down/reboots the host PC, I want to be able
> to
> run a batch file to shut down the Virtual PC cleanly before the host PC
> shuts down/reboots. I would use the Windows "shutdown" command from the
> host
> PC to remotely shut down the Virtual PC.
>
> 2) The problem with the above is that there is no Windows Scheduled
> Task
> that runs at shutdown.
>
> 3) I was thinking of using a Shutdown script from Local Computer
> Policy,
> but the issue with that is that it doesn't allow me to run the script with
> alternative credentials like in Windows Scheduled Task.
>
> 4) I might be able to write a shutdown script/batch file for the
> Virtual
> PC that will include the credentials in the code, but that's a security
> issue, plus it might be too complicated for me to write.
>
>
>
> So given the above scenario, what options can you suggest? Thanks.
>
>
> --
> Regards,
>
> Martin X.
> Microsoft Certified Systems Administrator: Messaging
> Philadelphia, Pennsylvania, USA
>
>
>