Skip to main content

Posts

Showing posts with the label Scheduled Task

Error on Powershell - 0xffff0000

I am not very familiar with PowerShell, yet... really. Currently, my main scripting language is VBScript. However, I am truly believe the needs to learn PowerShell is keep increasing every single day. Server 2008 and Server 2012 are equiped with PowerShell, some advanced managements in XenDesktop 7.5 are using PowerShell, it is fun to learn PowerShell (they said), and a few other points mentioned by my colleagues ( Wow, what on earth Heiry, why your introduction is longer than an episode of Dads? ) Issues : Error encountered when a scheduled task created to run PowerShell script : The shell cannot be started. A failure occurred during initialization: Object reference not set to an instance of an object. Furthermore, this error reported on Task Scheduler. Troubleshooting   Go to Start > Run , and type regedit . Press Enter   Registry Editor launched. Browse to My Computer > HKEY_CURRENT_USER , and look for for Environment folder. It is not there.

Task Scheduler Error - An Error has occurred for task . The following error was reported: A specific logon session does not exist. It may already have been terminated.

A few days ago I created a script to do some little, tiny checking on my servers. My plan was to create a Task Scheduler so that script can be executed periodically. But ( yeah, there is always a but ), I encountered an error. If we look carefully at the error, it did not mentioned about Securty or policy setting, but I know it must related to UAC. Issues : Receive error when configuring Task Scheduler : An Error has occurred for task <Task Name>. The following error was reported: A specific logon session does not exist. It may already have been terminated. Troubleshooting   Go to Start > Administrative Tools > Click at Task Scheduler  Browse to Task Scheduler (local) > Task Scheduler Library  Right click at the specific Task Scheduler > choose Properties  At General tab, the radio box " Run whether user is logged on or not " is enabled . Which means, the setting is okay.  Further checking, go to Start > Ru