![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | stopping remote service from VM i am tring to set up an automation script using powershell v1.0. part of the script involves shutting down and restarting a database service on a remote computer. i accomplish this using the get-wmiobject cmdlet. the database service resides on a computer that is on our company domain. i tested the script from my own computer which is on the same domain. my problem is that i need the script to work in a VM that is not part of the domain. i see that the get-wmiobject can take a credential object (using get-credentials) as one of its parameters, but i don't see a way to supply a password without getting prompted for it. is there a way to do this? thanks, glenn |
My System Specs![]() |
| | #2 (permalink) |
| | RE: stopping remote service from VM You could use Export-Clixml / Import-Clixml to save credentials. BTW. Export-Clixml - store username & password as plane text "gacaccia" wrote: Quote: > i am tring to set up an automation script using powershell v1.0. part of the > script involves shutting down and restarting a database service on a remote > computer. i accomplish this using the get-wmiobject cmdlet. the database > service resides on a computer that is on our company domain. i tested the > script from my own computer which is on the same domain. my problem is that > i need the script to work in a VM that is not part of the domain. i see that > the get-wmiobject can take a credential object (using get-credentials) as one > of its parameters, but i don't see a way to supply a password without getting > prompted for it. is there a way to do this? > > thanks, > > glenn |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Re: Stopping service as non-admin | PowerShell | |||
| Stopping the windows wireless service? | Vista networking & sharing | |||
| stopping and starting service | PowerShell | |||
| Get-WmiObject and starting/stopping remote services | PowerShell | |||
| Stopping and Starting Audio Service in Vista | Vista General | |||