This message was deleted.
# microsoft-fslogix
s
This message was deleted.
b
I see AppSense, that seems wrong 😉
j
Yeah that's just a standard folder to dump my extraneous files into
b
tried with -confirm $false rather than the :
j
Yup, still errors
Tried it in quotes too
b
does it give the same error if $true? Obviously not what you want but just curious if behavior is same
j
This is from the script so obviously syntax seems right
Yep, same with True
b
Difference I see between that and what you did is in yours you are doing things as part of calling powershell.exe. Could you write your own script that first line does the bypass execution policy, next line calls the script with the -confirm param?
j
Yeah, I think you're right
Runs OK when I call the script directly
Going to be a pain calling this from an AppSense configuration then!
b
just need to create a wrapper script for it then and call that
j
Also seems to only work if you do .\RemoveProfileData.ps1 rather than the full path to the script
OK, at least I can work on this, cheers 🙂
👍 1
Doh.....just move to the execution directory in PowerShell Action in Ivanti, then call the script with params - seems to work 😊
b
I knew you'd get there
😀 1
j
Cheers, all working fine now
a
Remove
ConfirmImpact = "High"
from the script to see if that helps
👍 2