Notification

Icon
Error

Creating a schduled task on remote computer

Posted: Sunday, February 21, 2021 10:57:02 AM(UTC)
Amos

Amos

Member Original PosterPosts: 1
0
Like
Hi,
Deploying a script that creates a scheduled task, creates the task but it cannot be run manually.
I am deploying as system because many remote computers may be running without a logged on user.
The same task runs OK when I run the already deployed (copied) script manually.
I have also tried to use Psexec (not from Lansweeper) and the results were good.
I have tried executing the below from LS deployment -
{PackageShare}\psexec -u [user] -p {Pass} -h cscript "C:\Windows\temp\5-WU_Weekly_schedule-DEV.vbs".
This too works when running locally but doesn't work when running by LS deployment.
What makes the difference between Psexec and Lansweeper?
Any suggestions?

Amos
steveb
#1steveb Member Posts: 29  
posted: 2/26/2021 7:44:48 PM(UTC)
Have you considered using a GPO instead?

Active Discussions

Lansweeper LsAgent.ini
by  Orion Poplawski   Go to last post Go to first unread
Last post: Yesterday at 4:49:12 PM(UTC)
Lansweeper LsAgent for Windows command line options?
by  Orion Poplawski  
Go to last post Go to first unread
Last post: Yesterday at 4:47:53 PM(UTC)
Lansweeper LSagent force a scan
by  Orion Poplawski   Go to last post Go to first unread
Last post: Yesterday at 4:46:49 PM(UTC)
Lansweeper MS Edge Chromium LanSweeper Extension development
by  steveb  
Go to last post Go to first unread
Last post: 4/16/2021 10:59:56 PM(UTC)
Lansweeper Office 365 v2 Scanning Error
by  DJX   Go to last post Go to first unread
Last post: 4/16/2021 7:37:57 PM(UTC)
Lansweeper Database size growing too large
by  JTempleton  
Go to last post Go to first unread
Last post: 4/16/2021 5:19:22 PM(UTC)
Lansweeper Limit New Ticket Notifications
by  Jeff WP   Go to last post Go to first unread
Last post: 4/16/2021 4:40:43 PM(UTC)
Lansweeper Monitor as an asset
by  tman247  
Go to last post Go to first unread
Last post: 4/16/2021 4:04:19 PM(UTC)