Jump to content

Toshiba MFDs - The UNIDRV folder on profiles


Recommended Posts

Posted

We still have the Toshiba MFDs around school and are used as the followme / pull printing devices.

 

We have a couple of users who use Roaming profiles on and we are running windows 10.

 

We are seeing roaming profiles grow to a huge size - over a gig - and users have said it takes ages to log on to a computer.

 

Hopefully we would like to stop this growth from happening. The offending folder is C:\users\%username%\TOSHIBA\eSTUDIOX\UNIDRV\Cache

 

It seems it's also happening at "C:\Windows\System32\config\systemprofile\TOSHIBA\eSTUDIOX\UNIDRV\cache"

 

It's a long shot, but I was wondering if anyone else is having an issue with the toshiba drivers in this way.

 

Obviously there is a way to stop the Toshiba folder writing back to the roaming profile on the server via Group Policy but this doesn't stop the growth on the user's PC in both the user profile and the windows directory.

 

I found a script online Clear printer cache folder – pbwis.com which would sort out the issue for the Windows directory - maybe have this as a start up or shutdown script - it could be modified so when a user signs off the machine it would run too.

 

Powershell Script:

 

<#
Clear cache script for selected folder.
Requirements: PowerShell version >= 5
in case a script doesn't run: Set-ExecutionPolicy RemoteSigned
set back: Set-ExecutionPolicy Restricted
#>

$folder_link = "C:\Windows\System32\config\systemprofile\TOSHIBA\eSTUDIOX\UNIDRV\cache"

#  Set a amount of days you would like to keep the cache.
$days_back = 5

#  If a folder contains minimum 1 item: run a script.
if((Get-ChildItem $folder_link -force | Select-Object -First 1 | Measure-Object).Count -ne 0)
   {
       Get-ChildItem –Path $folder_link -Recurse | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-$days_back))} | Remove-Item
       Clear-RecycleBin -DriveLetter C -Force  # Empty recycle bin on C drive.
   }

#  Otherwise: exit.
else
   {
       Write-Host "Folder Empty"
       Exit
   }

  • 1 year later...
Posted

Thanks for posting about this, one of our RDS servers had a slowly filling hard drive after a little investigation it was the cache folders you mention. Tweaked the PowerShell Script slightly to handle the local user folders:

$SystemFolderPath = "C:\Windows\System32\config\systemprofile\TOSHIBA\eSTUDIOX\UNIDRV\cache"
$UserFoldersPath = "C:\users\"
$ToshibaPath = "\TOSHIBA\eSTUDIOX\UNIDRV\Cache"
$DaysToKeep = 5

if(Test-Path $SystemFolderPath){
   ForEach($folder in Get-ChildItem –Path $SystemFolderPath | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(-$DaysToKeep)}) {
           #Write-Host "Deleting:" $folder.Name "Modified :" $folder.LastWriteTime "Path:" $SystemFolderPath
           $folder | Remove-Item -Recurse -Force
   }
}

foreach($UserFolder in Get-ChildItem –Path $UserFoldersPath){
   $ToshibaFolderPath = $UserFolder.FullName + $ToshibaPath
   if(Test-Path $ToshibaFolderPath){
       ForEach($folder in Get-ChildItem –Path $ToshibaFolderPath | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(-$DaysToKeep)}) {
           #Write-Host "Deleting:" $folder.Name "Modified :" $folder.LastWriteTime "Path:" $ToshibaFolderPath
           $folder | Remove-Item -Recurse -Force
       }        
   }
}

Clear-RecycleBin -DriveLetter C -Force  # Empty recycle bin on C drive.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...