how to Change the Sevice Name?

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

how to Change the Sevice Name?

Post by jason@sbtc.com.tw »

i build my script to service.
and use installutil to install it.
the servcie name is "Microsoft® .NET Framework"
how to change the service name?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how to Change the Sevice Name?

Post by jvierra »

To correctly install your service just run the exe with the "-I" switch. "-I" for "install".
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

Re: how to Change the Sevice Name?

Post by jason@sbtc.com.tw »

jvierra wrote: Tue Oct 17, 2017 1:37 am To correctly install your service just run the exe with the "-I" switch. "-I" for "install".
Thank you for your reply.
but is not work.
want to install the service must be use installutil.exe
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how to Change the Sevice Name?

Post by jvierra »

jason@sbtc.com.tw wrote: Wed Oct 18, 2017 2:15 am Thank you for your reply.
but is not work.
want to install the service must be use installutil.exe
The installer is built into the exe so it is self installing.

Read the following for instructions on how to build and install a PowerShell service:
https://www.sapien.com/blog/2017/07/12/ ... owershell/
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

Re: how to Change the Sevice Name?

Post by jason@sbtc.com.tw »

jvierra wrote: Wed Oct 18, 2017 4:12 am
jason@sbtc.com.tw wrote: Wed Oct 18, 2017 2:15 am Thank you for your reply.
but is not work.
want to install the service must be use installutil.exe
The installer is built into the exe so it is self installing.

Read the following for instructions on how to build and install a PowerShell service:
https://www.sapien.com/blog/2017/07/12/ ... owershell/
Thank you for your help.
it is i need information.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how to Change the Sevice Name?

Post by jvierra »

Did you get it to work?
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

Re: how to Change the Sevice Name?

Post by jason@sbtc.com.tw »

jvierra wrote: Wed Oct 18, 2017 9:59 pm Did you get it to work?
yes, it is work right now.
thank you for your help.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked