Skip to content

Error getting token when running script as scheduled task #87

Answered by Qbert777
Qbert777 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the task is running under my profile and I own that folder. I've also tried manually importing from the following locations:

  • C:\Users[MyUserName]\OneDrive - [REDACTED] Company\Documents\PowerShell_Scripts\PSFalcon (The script is located one directory up from here)
  • C:\Users[MyUserName]\PSFalcon
  • C:\Temp\PSFalcon

I'll keep on digging and update here if I get it figured out. Thanks for your help.

[Edit]
I just found this article (https://newbedev.com/powershell-unable-to-find-type-when-using-ps-5-classes) which seems like the issue I'm having although not sure how to implement the suggested fix.

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@Qbert777
Comment options

@bk-cs
Comment options

Comment options

You must be logged in to vote
6 replies
@Qbert777
Comment options

@bk-cs
Comment options

@Qbert777
Comment options

@bk-cs
Comment options

@Qbert777
Comment options

Answer selected by bk-cs
Comment options

You must be logged in to vote
1 reply
@bk-cs
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants