Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to run the script manually? #56

Open
martywirenz opened this issue Oct 22, 2024 · 1 comment
Open

Is there a way to run the script manually? #56

martywirenz opened this issue Oct 22, 2024 · 1 comment

Comments

@martywirenz
Copy link

Ist here a way to run the script manually when it's created?

When i look at my logs it doesn't show anything and the scheduled task isn't created

@qhajkasem
Copy link

I'm having the same issue(s) and it looks like Intune is tripping over all sorts of stuff in the script itself and it makes no sense at all. It first complained (from the agentexecutor en ime logging) that the use of the "&" is prohibited as it is reserved for future use. Even the & in a comment stopped it from running. Once I replaced these it started to complain about a missing quote on a line that only defines a variable (as a string with correct quoting) and I haven't found a way around this. I'm sure I'm missing something or whatever.

The weird thing is, that is absolutely nothing wrong with the script. If I execute it manually (use psexec with the -s and -i swithches to start a command prompt (or powershell) as SYSTEM) it works as expected and it has worked before as I only found about this after adding a new drive to it. None of our laptops get the updated script and I only see errors in intune (not helpfull at all but that's besides the point).

No clue why this behaviour changed but it is really annoying. I get that code should get checked in some way but this makes no sense at all. Maybe pack the script as a Win32App so it gets "installed" correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants