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: 28  
posted: 2/26/2021 7:44:48 PM(UTC)
Have you considered using a GPO instead?

Active Discussions

Lansweeper LSAgent Rescan Asset
by  marck1024   Go to last post Go to first unread
Last post: Today at 4:11:53 PM(UTC)
Lansweeper Allowing a role to create asset groups
by  mh6543   Go to last post Go to first unread
Last post: 2/26/2021 10:00:40 PM(UTC)
Lansweeper Export LsAgent Assets
by  steveb  
Go to last post Go to first unread
Last post: 2/26/2021 7:26:32 PM(UTC)
Lansweeper Asset Uptime "Asset on total"
by  Andy.S   Go to last post Go to first unread
Last post: 2/26/2021 3:07:35 PM(UTC)
Lansweeper Scanning for Static Routes?
by  ChrisParr  
Go to last post Go to first unread
Last post: 2/26/2021 12:43:28 PM(UTC)
Lansweeper lansweeperuser sql database permissions
by  David K.   Go to last post Go to first unread
Last post: 2/25/2021 11:54:38 PM(UTC)
Lansweeper Scanning certificates
by  Vincent Pollock  
Go to last post Go to first unread
Last post: 2/25/2021 8:35:11 PM(UTC)