Тёмный

Turn Powershell script an into Windows Service in 4 minutes or less 

Tips For IT Pros
Подписаться 3,4 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@TrophyFish
@TrophyFish Год назад
Simple solution to something that is over complicated without it. Thank you!
@ratkinson-uk
@ratkinson-uk Год назад
Looked through a few videos, and this was the one that gave me the answer I needed. Great stuff!
@FragrantVagrant69
@FragrantVagrant69 4 года назад
I've been doing something similar with UD, except I convert my script into an exe first with a script called PS2EXE, then I install the exe with NSSM. I think my method introduces a little extra overhead so I wouldd like to redo my dashboards with this method and compare memory and CPU usage. Great vid, thanks
@PE4Doers
@PE4Doers 4 года назад
Congratulations on reaching the 1,000 subs. I hope you have the 'Hours Watch' to finally get some payment. I am shor 203 at this moment, so I am hoping for a quick bump on my next couple of videos.
@TipsForITPros
@TipsForITPros 4 года назад
You can do it! but actually am not doing this for the money, just for the fun...
@PE4Doers
@PE4Doers 4 года назад
@@TipsForITPros Thanks - I'm working on it. I didn't start mine to make any money either, however if I can it will allow me to buy better production equipment, parts, etc., to make more videos.
@omegabased
@omegabased Год назад
Oh thank you so much! I've tried several different methods and the tips I picked up here helped me finally get this working. Awesome!
@TheKrister2
@TheKrister2 3 года назад
Wow, an actually short and to-the-point video. That's rare nowadays. Thanks for making this :)
@TipsForITPros
@TipsForITPros 3 года назад
Glad you liked it!
@donaldsunny7836
@donaldsunny7836 3 года назад
Is there no other way to do this without installing third-party apps onto a computer that needs to be secure? like using c# code or a Microsoft app?
@TipsForITPros
@TipsForITPros 3 года назад
There is Powershell Pro tools, and there is Visual Studio, but if you are looking for a cheap option then this your best bet.
@a.useronly2266
@a.useronly2266 4 года назад
Amazing, thanks
@TipsForITPros
@TipsForITPros 4 года назад
Glad you liked it!
@nfperrini
@nfperrini 3 года назад
this man is over here using windows like linux.... what is this madness
@KoljaMineralka
@KoljaMineralka 4 года назад
my service just stuck in the loop Starting -->running back an' force :(
@TipsForITPros
@TipsForITPros 4 года назад
Normally issue would be in the script, if an error or loop is breaking.
@KoljaMineralka
@KoljaMineralka 4 года назад
@@TipsForITPros script continuously runs command and in output leaves ..listening port information, as I understand since windows doesn't receive any response it thinks service is dead and shuts it down then try to run it again and again receive no response...
@TipsForITPros
@TipsForITPros 4 года назад
That shouldn't be the case as I have scripts with a while($true){ do something } that run non stop.
@KoljaMineralka
@KoljaMineralka 4 года назад
@@TipsForITPros Finally made it to work with nssm. Thx!
@pepeshopping
@pepeshopping 4 года назад
Creating a service in Windows is not hard. Only hard for people that does not understand about the properties and permissions of running processes.. Without any tools, just use the Task Scheduler. In less than 2 minutes.
@TipsForITPros
@TipsForITPros 4 года назад
I wouldn't call the task scheduler a service. Also scheduled tasks you would need to setup your own monitoring as most monitoring platforms only check for failed services. On the other hand if you know how to create a windows service in 2 minutes that doesn't involve creating C# code i would be interested to know.
@ruinweaver69
@ruinweaver69 4 года назад
I can't stand powershell but WSL is better ... not perfect.
@TipsForITPros
@TipsForITPros 4 года назад
really depends on the environment you are working in, but I am glad with WSL i don't need to swap between laptops or terminals on other computer now :)
Далее
Powershell Registry Permissions
5:13
Просмотров 1,8 тыс.
PowerShell Remoting
37:12
Просмотров 72 тыс.
The NEW Way to Create Windows Services
10:59
Просмотров 29 тыс.
PowerShell S2E57 (sendkeys)
16:04
Просмотров 9 тыс.
Advanced PowerShell - Runspaces
17:04
Просмотров 9 тыс.
Work with Date & Time with PowerShell
16:45
Просмотров 59 тыс.
Mastering PowerShell: Uninstalling Software Made Easy
6:59
Managing File Permissions with PowerShell
6:45
Просмотров 12 тыс.