<< Back to Script Library

WEM Cache Repair

https://support.citrix.com/article/CTX247927

Version: 1.0.1
Created: 2019-04-23
Modified: 2019-04-23
Creator: zanercl
Downloads: 51
Tags:
The Script Try this script with ControlUp Copy Script Copied to clipboard
#This script is used to troubleshoot WEM Agent refresh issues

$LocalDatabaseDir = 'C:Program Files (x86)NorskaleNorskale Agent HostLocal Databases'
$LocalDatabases =Get-ChildItem "C:Program Files (x86)NorskaleNorskale Agent HostLocal Databases*.sdf"

#This section is used to kill the VUEMUIAgent.exe process if it is running
$ProcessName = Get-Process -Name VUEMUIAgent -ErrorAction SilentlyContinue
$Services = "Netlogon","Norskale Agent Host Service"
if ($ProcessName)
  {
   Stop-Process -Name $([string]$ProcessName.ProcessName)
   Write-Host "VUEMUIAgent has stopped"
  }
else
   {
    Write-Host "VUEMUIAgent is not running"
   }

#Stop Norskale and Netlogon services
foreach ($service in $Services)
   {
       Stop-Service -Name $service -Force
       Write-Host "$service has stopped."
   }

#Delete the WEM Agent Cache
cd $LocalDatabaseDir
Remove-Item $LocalDatabases
Write-Host "Files have been deleted"


#Start Netlogon Service which will start Norskale
$WEMAgent = 'C:Program Files (x86)NorskaleNorskale Agent HostVUEMUIAgent.exe'
foreach ($service in $Services)
   {
       Start-Service $service
       Write-Host "$service is running."
   }

Start-Process -FilePath $WEMAgent
START YOUR TRIAL

Get Your Download Link

Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.