{"action":"created","issue":{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/15","labels_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/15/comments","events_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/15/events","html_url":"https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/15","id":69957053,"number":15,"title":"Failed to create the scheduled task to cleanup blocked applications due to character limit for command property","user":{"login":"dersonc","id":12057635,"avatar_url":"https://avatars.githubusercontent.com/u/12057635?v=3","gravatar_id":"","url":"https://api.github.com/users/dersonc","html_url":"https://github.com/dersonc","followers_url":"https://api.github.com/users/dersonc/followers","following_url":"https://api.github.com/users/dersonc/following{/other_user}","gists_url":"https://api.github.com/users/dersonc/gists{/gist_id}","starred_url":"https://api.github.com/users/dersonc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dersonc/subscriptions","organizations_url":"https://api.github.com/users/dersonc/orgs","repos_url":"https://api.github.com/users/dersonc/repos","events_url":"https://api.github.com/users/dersonc/events{/privacy}","received_events_url":"https://api.github.com/users/dersonc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/labels/resolved","name":"resolved","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"mmashwani","id":5581235,"avatar_url":"https://avatars.githubusercontent.com/u/5581235?v=3","gravatar_id":"","url":"https://api.github.com/users/mmashwani","html_url":"https://github.com/mmashwani","followers_url":"https://api.github.com/users/mmashwani/followers","following_url":"https://api.github.com/users/mmashwani/following{/other_user}","gists_url":"https://api.github.com/users/mmashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/mmashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmashwani/subscriptions","organizations_url":"https://api.github.com/users/mmashwani/orgs","repos_url":"https://api.github.com/users/mmashwani/repos","events_url":"https://api.github.com/users/mmashwani/events{/privacy}","received_events_url":"https://api.github.com/users/mmashwani/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/milestones/3","html_url":"https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/milestones/v3.6.3","labels_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/milestones/3/labels","id":1066345,"number":3,"title":"v3.6.3","description":"Issues and enhancements requests targeted for v3.6.3 of the toolkit.","creator":{"login":"mmashwani","id":5581235,"avatar_url":"https://avatars.githubusercontent.com/u/5581235?v=3","gravatar_id":"","url":"https://api.github.com/users/mmashwani","html_url":"https://github.com/mmashwani","followers_url":"https://api.github.com/users/mmashwani/followers","following_url":"https://api.github.com/users/mmashwani/following{/other_user}","gists_url":"https://api.github.com/users/mmashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/mmashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmashwani/subscriptions","organizations_url":"https://api.github.com/users/mmashwani/orgs","repos_url":"https://api.github.com/users/mmashwani/repos","events_url":"https://api.github.com/users/mmashwani/events{/privacy}","received_events_url":"https://api.github.com/users/mmashwani/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2015-04-14T06:32:53Z","updated_at":"2015-04-22T23:04:08Z","due_on":"2015-04-30T05:00:00Z","closed_at":null},"comments":17,"created_at":"2015-04-21T21:29:13Z","updated_at":"2015-04-23T17:44:49Z","closed_at":null,"body":"PSAppDeployToolkit is failing to create the scheduled task to cleanup blocked applications.\r\n\r\nI'm using the latest 3.6.3 available.\r\n\r\nThis is what I get in the log:\r\n```\r\n[Pre-Installation] :: Create scheduled task to cleanup blocked applications in case installation is interrupted.\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: Retrieve Scheduled Tasks\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: [C:\\Windows\\System32\\schtasks.exe] is a valid fully qualified path, continue.\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: Working Directory is [C:\\Windows\\System32]\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: Executing [C:\\Windows\\System32\\schtasks.exe /create /f /tn .NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001_BlockedApps /xml \"C:\\Program Files\\XXXX XX XXXXXXX\\PSAppDeployToolkit\\SchTaskUnBlockApps.xml\"]...\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: Standard error output from the process: ERROR: The task XML contains a value which is incorrectly formatted or out of range.\r\n(35,278):Command:powershell.exe -ExecutionPolicy Bypass -NoProfile -NoLogo -WindowStyle Hidden -File \"C:\\Program Files\\XXXX XX XXXXXXX\\PSAppDeployToolkit\\AppDeployToolkitMain.ps1\" -CleanupBlockedApps -ReferringApplication \".NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001\"\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: Execution completed with exit code [1]\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n[Pre-Installation] :: Failed to create the scheduled task [.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001_BlockedApps] by importing the scheduled task XML file [C:\\Program Files\\XXXX XX XXXXXXX\\PSAppDeployToolkit\\SchTaskUnBlockApps.xml].\t\t1/1/1601 12:00:00 AM\t0 (0x0000)\r\n```\r\n\r\nThis is the content of the xml file:\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-16\"?>\r\n<Task version=\"1.2\" xmlns=\"http://schemas.microsoft.com/windows/2004/02/mit/task\">\r\n\t<RegistrationInfo></RegistrationInfo>\r\n\t<Triggers>\r\n\t\t<BootTrigger>\r\n\t\t\t<Enabled>true</Enabled>\r\n\t\t</BootTrigger>\r\n\t</Triggers>\r\n\t<Principals>\r\n\t\t<Principal id=\"Author\">\r\n\t\t\t<UserId>S-1-5-18</UserId>\r\n\t\t</Principal>\r\n\t</Principals>\r\n\t<Settings>\r\n\t\t<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>\r\n\t\t<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>\r\n\t\t<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>\r\n\t\t<AllowHardTerminate>true</AllowHardTerminate>\r\n\t\t<StartWhenAvailable>false</StartWhenAvailable>\r\n\t\t<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>\r\n\t\t<IdleSettings>\r\n\t\t\t<StopOnIdleEnd>false</StopOnIdleEnd>\r\n\t\t\t<RestartOnIdle>false</RestartOnIdle>\r\n\t\t</IdleSettings>\r\n\t\t<AllowStartOnDemand>true</AllowStartOnDemand>\r\n\t\t<Enabled>true</Enabled>\r\n\t\t<Hidden>false</Hidden>\r\n\t\t<RunOnlyIfIdle>false</RunOnlyIfIdle>\r\n\t\t<WakeToRun>false</WakeToRun>\r\n\t\t<ExecutionTimeLimit>PT1H</ExecutionTimeLimit>\r\n\t\t<Priority>7</Priority>\r\n\t</Settings>\r\n\t<Actions Context=\"Author\">\r\n\t\t<Exec>\r\n\t\t\t<Command>powershell.exe -ExecutionPolicy Bypass -NoProfile -NoLogo -WindowStyle Hidden -File \"C:\\Program Files\\XXXX XX XXXXXXX\\PSAppDeployToolkit\\AppDeployToolkitMain.ps1\" -CleanupBlockedApps -ReferringApplication \".NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001\"</Command>\r\n\t\t</Exec>\r\n\t</Actions>\r\n</Task>\r\n```"},"comment":{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/comments/95667650","html_url":"https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/15#issuecomment-95667650","issue_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/15","id":95667650,"user":{"login":"mmashwani","id":5581235,"avatar_url":"https://avatars.githubusercontent.com/u/5581235?v=3","gravatar_id":"","url":"https://api.github.com/users/mmashwani","html_url":"https://github.com/mmashwani","followers_url":"https://api.github.com/users/mmashwani/followers","following_url":"https://api.github.com/users/mmashwani/following{/other_user}","gists_url":"https://api.github.com/users/mmashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/mmashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmashwani/subscriptions","organizations_url":"https://api.github.com/users/mmashwani/orgs","repos_url":"https://api.github.com/users/mmashwani/repos","events_url":"https://api.github.com/users/mmashwani/events{/privacy}","received_events_url":"https://api.github.com/users/mmashwani/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T17:44:49Z","updated_at":"2015-04-23T17:44:49Z","body":"What date is your version of the 3.6.3 beta from? The modified date of the toolkit should be at the top of the AppDeployToolkitMain.ps1 file."}}