Windows XP Community - XPHeads



Registry Mechanic - Free Scan Now

Shutdown Virtual PC via script/batch file with alternate credentials

microsoft.public.windowsxp.general


Reply
  #1 (permalink)  
Old 01-21-2008, 03:57 PM
Martin X.
 
Posts: n/a
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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-21-2008, 04:16 PM
Michael Yardley
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-21-2008, 05:05 PM
Colin Barnhorst
 
Posts: n/a
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
>
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-21-2008, 06:12 PM
Martin X.
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-21-2008, 06:23 PM
mel.keyser@gmail.com
 
Posts: n/a
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 -


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-21-2008, 06:34 PM
Martin X.
 
Posts: n/a
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-21-2008, 06:49 PM
Martin X.
 
Posts: n/a
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:35 PM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74