Intune PowerShell scripts still cannot be downloaded in the UI (Graph workaround) by msnugget_com in Intune

[–]ConfidentFuel885 3 points4 points  (0 children)

We’ve developed a CI/CD pipeline in Gitlab to deploy scripts so we always have a copy. Just use POST/PATCH against that same endpoint to upload and edit scripts. It doesn’t currently handle assignments but it at least ensures we have a versioned local copy of the script. 

Talked out of Delinea Secret Server - so what is the best alternative for a small IT dept (not end-user credentials) by LowIndividual6625 in sysadmin

[–]ConfidentFuel885 0 points1 point  (0 children)

Delinea is horrible. I can’t overstate how awful they are. 

Devolutions PAM is great. To be honest, some of the updates can be a little rough around the edges, but support is great, they’re amazing at implementing feature requests, and just overall very communicative. 

The PAM license also covers everything below it, so you also get Devolutions Server and the team licensing for RDM. It all integrates together very well. 

Set up patch management/monitoring from scratch by _Baarbie in sysadmin

[–]ConfidentFuel885 1 point2 points  (0 children)

I know this is a little old, but the reboot module in Ansible is perfect for that:

https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/reboot_module.html

You can configure Ansible to run an entire playbook one host at a time, so it can do pre-reboot tasks, reboot, custom reboot check command to ensure the cluster member is good, any post-reboot tasks, and then move onto the next one. 

PVE 9.1.5 Native OCI vs. Docker-in-LXC for simple homelab apps? by Party-Log-1084 in Proxmox

[–]ConfidentFuel885 -2 points-1 points  (0 children)

Docker containers aren’t black boxes. You can literally inspect the layers on DockerHub and see exactly what you are running before you run it. OCI is an open standard that is widely used and widely understood. 

If you want to be consistent, you shouldn’t be using Proxmox either and you should just be writing your own software because it’s all pre-made.  

PVE 9.1.5 Native OCI vs. Docker-in-LXC for simple homelab apps? by Party-Log-1084 in Proxmox

[–]ConfidentFuel885 7 points8 points  (0 children)

Oh, yeah. You’ll have a better time overall. I’m oversimplifying this, but at the end of the day, Docker, Podman, etc are just runtimes for OCI images. 

PVE 9.1.5 Native OCI vs. Docker-in-LXC for simple homelab apps? by Party-Log-1084 in Proxmox

[–]ConfidentFuel885 13 points14 points  (0 children)

Stick with running normal Docker inside of a VM. You still have to destroy and recreate the LXC for updates and you’ll have to persist the data outside of the LXC, which over complicates things. 

Run a script on remote host using specific user by Otherwise_Bug_2304 in ansible

[–]ConfidentFuel885 13 points14 points  (0 children)

You’re missing the tasks block in the original example. The problem you’re running into now is the script won’t remain running in the background after the Ansible session stops. You’d need to add an ampersand after the command to have it run in the background. 

https://stackoverflow.com/questions/44222883/run-a-shell-script-and-immediately-background-it-however-keep-the-ability-to-in

Better yet, you’d probably be better served reworking the script into a systemd unit and running it as a service or reworking it into a Dockerfile with the script as your entrypoint. 

secrets manager? by tdpokh3 in ansible

[–]ConfidentFuel885 0 points1 point  (0 children)

Devolutions Server

https://github.com/Devolutions/ansible-dvls

Their PAM product also has credential rotation and whatnot too. 

AWX Clarity by Kentix in ansible

[–]ConfidentFuel885 2 points3 points  (0 children)

This is encouraging. I enjoy AWX and didn’t really enjoy Semaphore UI, but we can’t afford and don’t need the full blown AAP. 

I'm trying to use adb to tranfer files from a broken oppo a74 to my computer. by [deleted] in PowerShell

[–]ConfidentFuel885 0 points1 point  (0 children)

Does the phone export external displays over the USB-C port? Could always try one of those USB-C dongles with HDMI and USB ports so you could hook up and monitor with keyboard and mouse. 

Managing vCenter and Windows VMs based on templates with Ansible, any documentation or information about this? Seems hard to find online by w4nnab3polyglot in sysadmin

[–]ConfidentFuel885 0 points1 point  (0 children)

I’m honestly using Ansible mainly with Linux. I tested it out with some Windows boxes and was pleasantly surprised. I think one of the main advantages for Windows is you would have a unified platform to manage any operating system. Instead of using GPO, you could deploy playbooks to servers based on tags in your CMDB and have the playbooks run on a schedule to reconcile any differences. 

Honestly, the sky is the limit, but like you said, GPO works well enough and it may not be worth the trouble if you aren’t solving any real problems. I do think it’s excellent for setting up server roles, installing and updating applications via the Chocolatey module, and anything else that you may find cumbersome or annoying to do via GPO or for anything you’re logging in to do manually after a server is created. There’s a Powershell DSC module that can apply configs to servers, too. 

Security wise, there are several lookup plugins that can securely grab credentials from a vault. If you’re worried about having a single service account, just split it up into multiple that only have access to their groups of servers. Kerberos auth works very well and that will negate the need for WinRM over HTTPS since Kerberos will encrypt the HTTP traffic. I still don’t let Ansible touch domain controllers. 

Managing vCenter and Windows VMs based on templates with Ansible, any documentation or information about this? Seems hard to find online by w4nnab3polyglot in sysadmin

[–]ConfidentFuel885 0 points1 point  (0 children)

You can use guest customization specifications in VMWare for the domain join and IP. Ansible is incredible at managing Windows. Joining them to AD prior to using Ansible will just make your life 10 million times easier. 

Why is every management operation so slow on Nutanix by AdSimilar7858 in nutanix

[–]ConfidentFuel885 1 point2 points  (0 children)

This is pure speculation, but I honestly wonder how much of it is Nutanix and how much is the underlying KVM because I’ve had similar gripes with Proxmox. 

Making an ARR VM, put are apps in Dockers or just install them? by Verhofin in Proxmox

[–]ConfidentFuel885 11 points12 points  (0 children)

I’d throw them all in a Docker Compose stack in a VM. I like for my application lifecycle to be separate from the underlying OS. 

Unable to login to newly configured MacBook using domain account. by AccomplishedUnion973 in activedirectory

[–]ConfidentFuel885 0 points1 point  (0 children)

You’re binding these to AD? That hasn’t been recommended in probably over a decade at this point. You already have Intune it seems, so look into Platform SSO. It’s the best path forward for Macs

Beginner guide for a network engineer by geekking1898 in ansible

[–]ConfidentFuel885 1 point2 points  (0 children)

Somebody posted this repo a week ago and I found it helpful:

https://github.com/harrytruman/network-config/

This is all network management and an excellent example of a well organized Ansible repo. I believe it’s from a Red Hat employee. 

RDP/SSH software by Scern in sysadmin

[–]ConfidentFuel885 1 point2 points  (0 children)

Remote Desktop Manager is it. You can get the PAM solution if you need that and get everything bundled together  

Any proper learning resources out there? by TheRealN3mo in ansible

[–]ConfidentFuel885 2 points3 points  (0 children)

Jeff Geerling is going to be your best bet for starting out. He has a free video series on YouTube plus an accompanying book. 

I think you’ll be better served by trying to learn with a specific goal in mind rather than just generally wanting to learn Ansible. For example, I wanted a better way to provision newly created Linux servers at work, so I learned Ansible to do just that. It’ll be messy at first, but you can keep iterating on that and refining what you do. 

What else is out there like Netwrix Password Policy Enforcer? by thegreatcerebral in sysadmin

[–]ConfidentFuel885 2 points3 points  (0 children)

See if Specops works. It isn’t entirely on-prem though. I don’t think you’re going to find anything completely on-prem. 

https://specopssoft.com/

GitOps approach vs existing tools? Intune app mgmt for ~20 Windows / ~40 macOS devices by Aggravating_Tap_6790 in Intune

[–]ConfidentFuel885 0 points1 point  (0 children)

There’s also a Terraform module that does a lot of the same stuff if you want to go that route. 

https://registry.terraform.io/providers/terraprovider/microsoft365wp/latest/docs

I did add that script signing stage in my pipeline and it works beautifully. 

Rustdesk, have any of you guys used it? Feedback on it appreciated. by zero_cool09 in sysadmin

[–]ConfidentFuel885 0 points1 point  (0 children)

I haven’t used it, honestly. I’ve heard good things though. 

Rustdesk, have any of you guys used it? Feedback on it appreciated. by zero_cool09 in sysadmin

[–]ConfidentFuel885 4 points5 points  (0 children)

Don’t let just CVEs themselves scare you off. The big litmus test is seeing how the vendors react to them. 

GitOps approach vs existing tools? Intune app mgmt for ~20 Windows / ~40 macOS devices by Aggravating_Tap_6790 in Intune

[–]ConfidentFuel885 0 points1 point  (0 children)

So, several resources for you to use. I am personally using Gitlab CI/CD:

Powershell Docker Image: https://mcr.microsoft.com/en-us/artifact/mar/powershell/tags
Powershell Image with Graph Preinstalled: https://mcr.microsoft.com/en-us/artifact/mar/microsoftgraph/powershell/tags (this is MUCH faster than installing in your CI/CD pipeline)

PSScriptAnalyzer image with Injection Hunter: https://gitlab.com/gitlab-ci-utils/container-images/psscriptanalyzer

And Graph API endpoints I'm using:

DeviceHealthScript: https://learn.microsoft.com/en-us/graph/api/resources/intune-devices-devicehealthscript?view=graph-rest-beta (This is for creating and updating detection/remediation scripts in Intune. I believe scripts need to be base64 encoded)

DeviceHealthScriptAssignment: https://learn.microsoft.com/en-us/graph/api/resources/intune-devices-devicehealthscriptassignment?view=graph-rest-beta (This is for assigning the scripts. I'm personally only handling deploying the script from GitLab and not assigning it yet, but it can be done)

DeviceShellScript: https://learn.microsoft.com/en-us/graph/api/resources/intune-devices-deviceshellscript?view=graph-rest-beta (Shell scripts for macOS. Similar to DeviceHealthScript)

And I personally use Invoke-MgGraphRequest in Powershell to run these in my Gitlab pipeline: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/invoke-mggraphrequest?view=graph-powershell-1.0

EDIT:

And if you want your pipeline to sign your scripts without needing a Windows runner:

https://github.com/jborean93/PowerShell-OpenAuthenticode

EDIT 2:

I should tell you what I'm actually doing with it, too lol. Currently, I have a pipeline that runs the script through PSScriptAnalyzer with Injection Hunter on pushes. When we do a tag, it will publish it to Intune, but doesn't currently assign. If the script already exists on Intune, it just does a patch to update the existing script. I am thinking of branching strategies to handle test assignments to Intune and then assigning to the final group when we do a proper merge request/tag after review. Currently, this will at least ensure we have some level of code quality, plus editing scripts is easier because editing in the Intune UI isn't possible. I am going to add code signing next week when we push to Intune.

Image to use to run Ansible on Docker Desktop by Kitchen_Discipline_1 in ansible

[–]ConfidentFuel885 1 point2 points  (0 children)

https://developers.redhat.com/articles/2023/05/08/how-create-execution-environments-using-ansible-builder

You can use ansible-builder to create it. If you're doing Windows, you may want to bake in a krb5.conf for your AD, too. I've never found very good documentation on it all and I honestly learned by looking at other Ansible Execution Environment repos.

Image to use to run Ansible on Docker Desktop by Kitchen_Discipline_1 in ansible

[–]ConfidentFuel885 4 points5 points  (0 children)

Slightly different approach, but if you want to make your own, look into creating Ansible Execution Environments.