r/PowerShell • u/[deleted] • Jul 18 '19
get user assigned vm
/r/powercli/comments/ceqa27/get_user_assigned_vm/
2
Upvotes
2
u/yonosgaia Jul 19 '19
Hello ItsAnnonymousHere,
Alhough I don' t use Horizon either, I belive https://communities.vmware.com/thread/585755 (to get Horizon's info) and https://4sysops.com/archives/how-to-find-a-logged-in-user-remotely-using-powershell/ (to get users logged in a vm) links could help you. If you want to know how many users are allowed to log into a single serveryou will have to check, at least, Local Admin group for every vm. I believe your script will be a mix of both ideas
Regards,
1
u/Lee_Dailey [grin] Jul 18 '19
howdy ItsAnnonymousHere,
so ... what is
horizon? there are NO native calls to that in PoSh, so it would likely require a module OR a dedicated bit of code OR an api call OR something else. [grin]take care,
lee