Aussie owned and operated, with 23+ years of industry experience, Gold Coast InfoTech is delighted to support all of your business technology requirements.

Gallery

Contacts

success@goldcoastinfotech.com.au

1800 291 071

KBArticles

XenApp 6.5 PVS Generalise Script 2014

Script run before PVS server shutdown maintenance

REM Prompt for vDisk version Number
“C:adminToolsGeneralise_PVS_REGPrompt.vbs”

  • Set wshShell = CreateObject(“WScript.Shell”)
    strAnswer = InputBox(“Enter New PVS Version Number”, _
    “Version No”)
    RegUpdate=”HKLMSOFTWAREPVSvDiskVersion”
    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”

pause

 

Author

Customer

Leave a comment

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