Home » KBArticles » XenApp 6.5 PVS Generalise Script 2014

XenApp 6.5 PVS Generalise Script 2014

Script run before PVS server shutdown maintenance

REM Prompt for vDisk version Number

  • Set wshShell = CreateObject(“WScript.Shell”)
    strAnswer = InputBox(“Enter New PVS Version Number”, _
    “Version No”)
    WshShell.RegWrite RegUpdate,strAnswer,”REG_SZ”
    Wscript.Echo “Dont Forget to delete all user Local Profiles!”
    wshshell.run “RunDll32.exe sysdm.cpl,EditUserProfiles”

REM clear event logs

wevtutil cl System
wevtutil cl Security
wevtutil cl Application
wevtutil cl Setup
wevtutil cl “Forwarded Events”
wevtutil cl Microsoft-AppV-Client/Admin
wevtutil cl Microsoft-AppV-Client/Operational
wevtutil cl “Microsoft-AppV-Client/Virtual Applications”
wevtutil cl “Windows PowerShell”

REM Stop Edgesight and Delete database
net stop RsCorSvc
net stop FirebirdServerCSMInstance
del “C:ProgramDataCitrixSystem MonitoringDataRSDATR.FDB” /q
del “D:ProgramDataCitrixSystem MonitoringDataRSDATR.FDB” /q
del “D:LogsCitrix_Logon_Timing.txt” /q

REM Generalise APPV 5
powershell.exe “Get-AppvClientPackage -All | Remove-AppVClientPackage”
net stop appvclient

REM Generalise LANDesk
reg delete “HKEY_LOCAL_MACHINESOFTWAREWow6432NodeLANDeskCommon Api” /v UniqueID /f
reg delete “HKEY_LOCAL_MACHINESOFTWAREWow6432NodeIntelLANDeskCommon Api” /v UniqueID /f

“C:programdataMicrosoftWindowsStart Menu DefaultProgramsAdministrative ToolsCitrixProvisioning ServicesProvisioning Services Device Optimizer.lnk”



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.