So I need to find information as in the topic. I found that get-mobiledevice is quite OK, but it lacks two major informations for me: UPN of user, who used it and the time, when it was used.
I can use get-mobiledevicestatistics to get time of last login, but I don't know how to pipeline the result of get-mobiledevice, which would list me all of the mobile devices, to run the get-mobiledevicestatistics for each of them (and I know, this only resolves the information of mobiles, no desktops).
Neither will get me the UPN as well.
Do you know, how to connect all those commands to get, what I need?