Windows 10: I can not run a powershell script through Task Scheduler when the useris logged on or not

Discus and support I can not run a powershell script through Task Scheduler when the useris logged on or not in Windows 10 Software and Apps to solve the problem; i have a powershell script used to 1 change date format2 convert from xlsx to csvand needs to be automated and run everyday.The user account used... Discussion in 'Windows 10 Software and Apps' started by Nasseerudin Coowar, Dec 30, 2024.

  1. I can not run a powershell script through Task Scheduler when the useris logged on or not


    i have a powershell script used to 1 change date format2 convert from xlsx to csvand needs to be automated and run everyday.The user account used SPO... can run the script manually and it works. the moment its on task scheduler it wont work aprt if the setting is set to "run only when user is logged on". the user SPO... is a domain user and added to the local administrator account of the windows server 2019 and has access to all concerned folders but the task scheduler wont work. i checked around some forums and they went through cmd to run the script,which i tried but still does not work. A

    :)
     
    Nasseerudin Coowar, Dec 30, 2024
    #1
  2. ahkaplan Win User

    Problem getting a powershell script to run in Task Scheduler

    Hello.

    I am trying to get a PowerShell script to run once every half hour in the Task Scheduler utility. The platform is Windows Server 2019 Standard Edition. I configured the script to run on a schedule starting at 12:00 AM every day, and repeat every 30 minutes indefinitely.

    The script is designed to do a check of disk space usage on several remote servers, and email the results as an attached html file. The user account that is associated with the script does have Administrator access on all servers. The script itself is configured to run whether the user account is logged in or not, and also with the highest privileges.

    I have confirmed the script will run by interactively running it in Powershell, and also when I click on 'Run' within the Task Scheduler. According to the Last Run Result, the script ran successfully, but the email with the attached html file is not being sent to the intended recipient.
     
    ahkaplan, Dec 30, 2024
    #2
  3. IoanaOrian, Dec 30, 2024
    #3
  4. dalchina Win User

    I can not run a powershell script through Task Scheduler when the useris logged on or not

    dalchina, Dec 30, 2024
    #4
Thema:

I can not run a powershell script through Task Scheduler when the useris logged on or not

Loading...
  1. I can not run a powershell script through Task Scheduler when the useris logged on or not - Similar Threads - run powershell script

  2. I can not run a powershell script through Task Scheduler when the useris logged on or not

    in Windows 10 Gaming
    I can not run a powershell script through Task Scheduler when the useris logged on or not: i have a powershell script used to 1 change date format2 convert from xlsx to csvand needs to be automated and run everyday.The user account used SPO... can run the script manually and it works. the moment its on task scheduler it wont work aprt if the setting is set to "run...
  3. Problem getting a powershell script to run in Task Scheduler

    in Windows 10 Software and Apps
    Problem getting a powershell script to run in Task Scheduler: Hello. I am trying to get a PowerShell script to run once every half hour in the Task Scheduler utility. The platform is Windows Server 2019 Standard Edition. I configured the script to run on a schedule starting at 12:00 AM every day, and repeat every 30 minutes...
  4. Problem getting a powershell script to run in Task Scheduler

    in Windows 10 Gaming
    Problem getting a powershell script to run in Task Scheduler: Hello. I am trying to get a PowerShell script to run once every half hour in the Task Scheduler utility. The platform is Windows Server 2019 Standard Edition. I configured the script to run on a schedule starting at 12:00 AM every day, and repeat every 30 minutes...
  5. Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler

    in Windows 10 Network and Sharing
    Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler: Hi there, I have created a .ps1 file which contains a RoboCopy script to copy files from a folder on my C: drive which contains a database, and paste them into a folder on my OneDrive so that they can be safely backed up to the cloud and have a history of changes.The code...
  6. Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler

    in Windows 10 Gaming
    Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler: Hi there, I have created a .ps1 file which contains a RoboCopy script to copy files from a folder on my C: drive which contains a database, and paste them into a folder on my OneDrive so that they can be safely backed up to the cloud and have a history of changes.The code...
  7. Powershell script does not run via Task Scheduler

    in Windows 10 Customization
    Powershell script does not run via Task Scheduler: PowerShell script runs fine manually, but doesn't run in Task scheduler. The script: [ATTACH] I tried another command$env:COMPUTERNAME and works fine both manually and via PowerShell....
  8. PowerShell script does not run as Scheduled Task – 0xFFFD0000 error

    in Windows 10 News
    PowerShell script does not run as Scheduled Task – 0xFFFD0000 error: [ATTACH] [ATTACH]The Windows 10 Task Scheduler is a boon for a group of users who like to schedule different tasks and automate them. I use it all the time to schedule periodic execution of scripts and some programs to ensure my [...] This post PowerShell script does not run...
  9. Task Scheduler is running script On workstation unlock and At log on..

    in Windows 10 Support
    Task Scheduler is running script On workstation unlock and At log on..: I have a task scheduled to play a sound when I unlock my computer, but after a restart or boot it also plays at log on. How do I make Task Scheduler stop running this script 'at log on'? 114049
  10. Problem Getting a Powershell Script to Run in Task Scheduler

    in Windows 10 Software and Apps
    Problem Getting a Powershell Script to Run in Task Scheduler: Hope I'm in the right place! I am trying to get a Powershell script to run daily in the task scheduler. It basically purges a folder on one of my drives: Get-ChildItem –Path “D:\Dropbox\Quicken\Backup” –Recurse | Where-Object CreationTime –lt (Get-Date).AddDays(-10) |...