Scenario Lets script a custom aws appstream image A customer wanted to setup AWS AppStream 2.0 Image Automation for their AppStream image creation especially as there were situations where two or more images were potentially required including monthly updates (minimum) so they needed a repeatable, consistent solution for this. Solution You can only automate […]
UPLOAD LOCAL FOLDER and SUBFILES to S3 #Load AWS Powershell Extensions import-module “C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1” #Set AWS Creds to connect to S3. The S3 user should have a specific IAM policy to lock them down to this specific bucket only. See here for example s3 policy Set-AWSCredentials -AccessKey <BUCKETUSERACCESSKEY> -SecretKey <SECRETKEY> -StoreAs default #Upload […]
How to configure filtering for Citrix Storefront From our initial testing the Citrix Storefront Filtering are STORE specific, if you want different filters or one store for apps and another store for desktops you need to configure another separate store. From elevated PS prompt set execution-policy = unrestricted c:\program files\citrix\receiver storefront\scripts\ImportModules.ps1 Note: the siteid is […]
I want all PVS servers to dynamically display their environment on the desktop when a users logs into the desktop. This can be achieved by: 1) adding a new ‘personality’ variable to each device in PVS 2) scripting the import of the variables from the c:personality.ini file to the windows registry 3) setting BGINFO to […]
Const ForReading = 1 Set objFSO = CreateObject(“Scripting.FileSystemObject”) Set objOutputFile = objFSO.CreateTextFile(“output.txt”) strComputer = “.” Set objWMIService = GetObject(“winmgmts:\” & strComputer & “rootcimv2”) Set FileList = objWMIService.ExecQuery _ (“ASSOCIATORS OF {Win32_Directory.Name=’c:temp’} Where ” _ & “ResultClass = CIM_DataFile”) For Each objFile In FileList Set objTextFile = objFSO.OpenTextFile(objFile.Name, ForReading) strText = objTextFile.ReadAll objTextFile.Close objOutputFile.WriteLine strText Next […]
My (non exhaustive) list of helpful Netscaler session policies expressions for EPA. SCAN REGISTRY (Advanced free-form) CLIENT.REG(‘HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters_Domain’).VALUE == domain.local CLIENT.REG(‘HKEY_LOCAL_MACHINE_64\\SOFTWARE\\McAfee\\AVEngine_AVDatVersion’).VALUE == 6198. CLIENT.REG(‘HKEY_LOCAL_MACHINE\\SOFTWARE\\McAfee\\AVEngine_AVDatVersion’).VALUE == 6198. CHECK FOR FILE EXISTENCE CLIENT.FILE(‘C:\\WindowsCompany_Laptop.txt’) CHECK FOR RUNNING PROCESS CLIENT.APPLICATION.PROCESS(firewall.exe) EXISTS CHECK OS VERSION (Match any expresssion) CLIENT.OS(winxp).SP == 2 CLIENT.OS(win7) EXISTS DETECT (or not) CITRIX RECEIVER (Match any) REQ.HTTP.HEADER […]
To backup the New windows 7 start menu ‘jump lists’ links for things like recent items for Word, excel etc open the EM Agent and get it to copy the following folders at log on and logoff At Logon copy the following \homeservershare%username%WINDOWSRecentAutomaticDestinations and \homeservershare%username%WINDOWSRecentCustomDestinations (including subfolders) TO %APPDATA%MicrosoftWindowsRecentAutomaticDestinations and %APPDATA%MicrosoftWindowsRecentCustomDestinations At logoff Reverse the […]
Ensure you run this on a XA box connected to the farm you want to interrogate and ensure that the XASDK6.5 from citrix is installed from HERE Run the following command from the XenApp SDK Powershell Prompt: Get-XAApplication | Format-Table -AutoSize -Property BrowserName | Out-File c:pubapps.txt
These are the keys we imported and exported before finally using Appsense Personalisation These were used in conjunction with a mandatory profile. Remember that a mandatory profile will not work well with I.E or user based certificates. There is another post here about changing the user to look like a ‘non mandatory’ user for the duration […]
The following commands will recreate or open a ‘Printers’ folder rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder %windir%explorer.exe /e,::{2227A280-3AEA-1069-A2DE-08002B30309D} control.exe printers This can be used to publish a printers folder via Citrix XenApp %windir%explorer.exe /e,::{2227A280-3AEA-1069-A2DE-08002B30309D