|
|
Shutdown Virtual PC via script/batch file with alternate credentials
microsoft.public.windowsxp.general
|
|

01-21-2008, 03:57 PM
|
|
|
|
Shutdown Virtual PC via script/batch file with alternate credentials
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
|
|

01-21-2008, 04:16 PM
|
|
|
|
Re: Shutdown Virtual PC via script/batch file with alternatecredentials
On Jan 21, 7:57*am, "Martin X." <mar...@x.x> wrote:
> 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
|
|

01-21-2008, 05:05 PM
|
|
|
|
Re: Shutdown Virtual PC via script/batch file with alternate credentials
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
>
>
>
|
|

01-21-2008, 06:12 PM
|
|
|
|
Re: Shutdown Virtual PC via script/batch file with alternate credentials
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 . . .
"Michael Yardley" <middleton@mail.org> wrote in message
news:9482bea5-91ea-439e-9963-44104458f806@l32g2000hse.googlegroups.com...
On Jan 21, 7:57 am, "Martin X." <mar...@x.x> wrote:
> 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
|
|

01-21-2008, 06:23 PM
|
|
|
|
Re: Shutdown Virtual PC via script/batch file with alternatecredentials
Don't reply back to the postings if you're not going to offer any
help.
> 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- Hide quoted text -
>
> - Show quoted text -
|
|

01-21-2008, 06:34 PM
|
|
|
|
Re: Shutdown Virtual PC via script/batch file with alternate credentials
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!
"Michael Yardley" <middleton@mail.org> wrote in message
news:9482bea5-91ea-439e-9963-44104458f806@l32g2000hse.googlegroups.com...
Some Systems Administrator exoposing your network to all the hackers
and crackers on the Net
but that's a security issue as you say.
|
|

01-21-2008, 06:49 PM
|
|
|
|
Re: Shutdown Virtual PC via script/batch file with alternate credentials
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
"Michael Yardley" <middleton@mail.org> wrote in message
news:9482bea5-91ea-439e-9963-44104458f806@l32g2000hse.googlegroups.com...
On Jan 21, 7:57 am, "Martin X." <mar...@x.x> wrote:
Some Systems Administrator exoposing your network to all the hackers
and crackers on the Net
but that's a security issue as you say.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 11:35 PM.
|
|