Shutdown Virtual PC via script/batch file with alternate credentials

M

Martin X.

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
 
M

Michael Yardley

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 thatruns
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

Some Systems Administrator exoposing your network to all the hackers
and crackers on the Net

but that's a security issue as you say.

OrgName: Lawyers Title Insurance Corp.
OrgID: LTIC
Address: 101 Gateway Centre Parkway
City: Richmond
StateProv: VA
PostalCode: 23235
Country: US
 
C

Colin Barnhorst

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.
 
M

Martin X.

So what's your point? I'm asking an IT-related question and using my work
computer. Did I divulge any internal company information? Did I write
something about an issue with our firewall or e-mail system security? No, I
didn't.

Knowing a company's IP address and DNS registration info is not a security
issue. It's public information that anyone can find. Get a life . . .

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

Some Systems Administrator exoposing your network to all the hackers
and crackers on the Net

but that's a security issue as you say.

OrgName: Lawyers Title Insurance Corp.
OrgID: LTIC
Address: 101 Gateway Centre Parkway
City: Richmond
StateProv: VA
PostalCode: 23235
Country: US
 
M

Martin X.

Do you think using Google groups is any safer? Your IP address,
64.114.18.233, is in the header of the posting. Hopefully you weren't
accessing Google groups from your work computer. Oh no, what a big security
threat that would be!


Some Systems Administrator exoposing your network to all the hackers
and crackers on the Net

but that's a security issue as you say.
 
M

Martin X.

The info you can get is nothing privileged. Here's some info about your IP
address, 64.114.18.233:

network: Network-Name: CDI EDUCATION CORPORATION
network: IP-Network: 64.114.18.232/29
network: Org-Name: CDI EDUCATION CORPORATION
network: Street-Address: 417 Gerrard St East
network: City: Toronto
network: State-Province: Ont
network: Country-Code: CA


Some Systems Administrator exoposing your network to all the hackers
and crackers on the Net

but that's a security issue as you say.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top