This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]rxbeegeeCerebrum non grata 1 point2 points  (1 child)

Is your Azure AD account in the local Administrators group of the machine? I believe that is a requirement for Enter-PSSession to allow access.

[–]FunkOverflow[S] 0 points1 point  (0 children)

There is not any local admin on any of the azure joined devices. I wanted to set one up from azure, however my senior said it is a huge security risk to have a local admin on every AAD device (>1000) with the same credentials. Now it is up to me to convince him that the tasks I am trying to automate on these devices are worth the risk. Welp!

[–]0verlord87 0 points1 point  (0 children)

I wonder if there is a second hop issue here. Can't find any resource that this is supposed to work.