Below Powershell script will delete all Inactive FSLogix profiles configured and send email of profiles deleted and space saved. Just copy paste below script and edit yellow highlighted text as per your environment and get it working. $Date=(Get-Date).AddDays(-90)$FormatDate = Get-Date -Format dd-MM-yyyy$vhds=Get-ChildItem –Path “mention_profile_location” -Recurse | Where-Object {$_.Name -like “*.vhd”} | where-object {($_.LastWriteTime -lt $Date)}Continue reading “Delete Inactive FSLogix Profiles”
Category Archives: FSLogix
FSLogix Profiles Reporting
Below Powershell script will report all FSLogix profiles configured in environment. Just copy paste below script and edit yellow highlighted text as per your environment and get it working. $Date=(Get-Date).AddDays(-30)$FormatDate = Get-Date -Format dd-MM-yyyy$vhds=Get-ChildItem –Path “mention_profile_location” -Recurse | Where-Object {$_.Name -like “*.vhd”} | where-object {($_.LastWriteTime -lt $Date)} ForEach($VHD in $VHDs){If($VHD.LastWriteTime -lt $Date){$VHDLWT = Get-Date $VHD.LastWriteTimeContinue reading “FSLogix Profiles Reporting”