This message was deleted.
# citrix-wem
s
This message was deleted.
r
I do, give me a few and I’ll share
j
Legend @Ray Davis 🙂
r
This example was run at logoff. remember user need access to the path as it will run under the user context. Path: Powershell.exe Arguments: -Executionpolicy bypass -File "\\ sillyrabbit.org\\NETLOGON\CitrixScripts\WemExternalTask\ProfilePrune\Remove-ProfileData2.ps1" -Targets "\\sillyrabbit.org\NETLOGON\CitrixScripts\WemExternalTask\ProfilePrune\targets.xml" -LogPath \\ sillyrabbit.org\\NETLOGON\CitrixScripts\WemExternalTask\ProfilePrune\logs -verbose
j
Perfect - thanks, brother!
r
Anytime man
🍻 1
👍 1
s
The onprem web console allows you to use the scripted task. Scripted tasks work at a machine level. To run tasks at a user session level, use External tasks instead. https://docs.citrix.com/en-us/workspace-environment-management/service/manage/scripted-tasks
👍 1
j
ProTip: you can use -Ex instead of -ExecutionPolicy to shorten the string, very useful for scheduled tasks since there's a pretty short character limit