|
Good luck feeding Stop-Service a service that doesn't exist. Also, good luck checking if a service exists before feeding it to Stop-Service. Toshimo posted:It is certainly something I've considered, when we get enough breathing room that I can start looking at better solutions, but for the moment, I've got an overwhelming backlog of several thousand applications that I have to review, so I fix what I can, and push the big stuff to next year's Toshimo. Master Packager sits on top of psappdeploytoolkit, and wraps a bunch of its options into checkboxes that you can then make templates for. Literally drag and drop msi's into a window. It'll do fancier stuff if you pay. (no affiliation) EoRaptor fucked around with this message at 04:04 on Jun 11, 2022 |
# ¿ Jun 11, 2022 04:01 |
|
|
# ¿ Apr 29, 2024 01:19 |
|
New Yorp New Yorp posted:Get-service |? { $_.name -eq 'whatever'} Yeah, now that I reread what I wrote, I realized I’d memory holed the other part of the issue I faced, which was a security product that hid its service and process. I just remembered the frustration. But do check for a service existing before using Stop-Service, its error handling is terrible.
|
# ¿ Jun 11, 2022 07:43 |
|
Boywhiz88 posted:I'm still struggling w/ removing the one user w/ my script. If anyone has any insight, I'd appreciate it. I'm hoping to avoid the NTFSAccess as I'd like to keep it as pure Powershell as possible. Is the user the owner? You can't remove access rights from the owner.
|
# ¿ Jun 15, 2023 00:01 |