![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | New-Service Options (Interact with desktop) Hi, How can i get powershell's "New-Service" to automatically check the setting that interacts with the desktop? So far, i have new-Service -name ServiceName -binaryPathName "PathHere" -displayName "MyService" -startupType Automatic |
My System Specs![]() |
| | #2 (permalink) | ||||||||||||
| Guest | Re: New-Service Options (Interact with desktop) After you create your service, retrieve it with Get-WmiObject and set the DesktopInteract property accordingly. i.e. New-Service -Name ServiceName -BinaryPathName "PathHere" -DisplayName "MyService" -StartupType Automatic (Get-WmiObject -Class Win32_Service -Filter "name='ServiceName'").DesktopInteract = $true -- Kirk Munro [MVP] Poshoholic http://poshoholic.com "greatbarrier86" <greatbarrier86@xxxxxx> wrote in message news:E06523E5-EDB6-4CE5-8EBA-025A3A0C8D7C@xxxxxx
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||
| Guest | Re: New-Service Options (Interact with desktop) Thanks Kirk! That worked well! "Kirk Munro [MVP]" wrote:
| ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Desktop does not load after login Options | Victor | Vista General | 5 | 3 Weeks Ago 11:27 PM |
| Vista Desktop Wallpaper Fit options, I thought there were 5 options? | lersince1991 | General Discussion | 5 | 08-26-2008 07:40 PM |
| Run my program with the system account interact with desktop | Greta | Vista security | 0 | 01-17-2008 05:57 AM |
| Allowing service to interact with desktop using New-Service | greatbarrier86 | PowerShell | 7 | 11-08-2007 11:56 AM |
| Service interact with desktop | zion | Vista security | 4 | 06-26-2007 04:46 AM |