Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I' m trying to run a script (which takes about 5 minutes) in a powershell job.
PS1 works but not in the job.
Error I get: You cannot call a method on a null-valued expression..Exception.Message at line 6508
The chances are that it is going to be caused by something in either the .ps1 file or the functions
"$ScriptDirectory\CM.ps1", Logging-Output, Add-JobTracker
are you able to share the full project?
PowerShell_Studio_bFATnZaLLV.png (15.27 KiB) Viewed 3122 times
This topic is 4 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.