Forum Discussion
Lancelotbaghel30
Oct 04, 2024Copper Contributor
How to fetch username or userEmail from userprofile details of FSLogix
Hi I am trying to fetch several details from FSLogix userprofile like disk size usage , last accessed date. I need to get user details as well like Username or UserEmail. Below is the PS Snippet th...
Erick_DanielM
Oct 04, 2024Copper Contributor
Try with this, i'm using this PS, first mount the StorageAccount path in PC, modify the path and name where tho doc 'ill be located and then run the PS
Get-ChildItem -Path Y:\ -Filter *.VHDX -Recurse |`
foreach{
$Item = $_
$Type = $_.Extension
$Path = $_.FullName
$Folder = $_.PSIsContainer
$Age = $_.LastWriteTime
$Size = $_.Length
$Age2 = $_.CreationTime
$Path | Select-Object `
@{n="Name";e={$Item}},`
@{n="Last_Write";e={$Age}},`
@{n="filePath";e={$Path}},`
@{n="Lenght";e={$Size}},`
@{n="CreationTime";e={$Age2}},`
@{n="Extension";e={if($Folder){"Folder"}else{$Type}}}`
}| Export-Csv C:\Path\DocName.csv -NoTypeInformation