- Ensure you are invoking appropriate version of PowerShell to run your PS script
- Use C:Windowssyswow64Windowspowershellv1.0powershell.exe for 32-bit
- Use C:Windowssystem32Windowspowershellv1.0powershell.exe for 64-bit
- When you are invoking 32-bit/64-bit script for the first time on the system, ensure that appropriate ExecutionPolicy is set for the environment. If ExecutionPolicy is set to restricted PS shell just exits after launch.
- In case if your script making any ADO connections, ensure that proper driver names are used for example: You’ll see “Driver={Microsoft Access Driver (*.mdb, *.accdb)}” on systems running Access application whereas on systems that don’t have Access installed the driver will be named as “Driver={Microsoft Access Driver (*.mdb)}”
0 thoughts on “Debugging steps for Citrix XenApp running PowerShell Scripts”
My Powershell script will not run at logoff. Is this an issue you have seen before Govardhan? Commands in the batchfile run file (i.e. copying files etc) but calling the Powershell does not work. The logon script with Powershell works fine, it’s only a logoff problem…