Skip to content

Set NASA's Astronomy Photo of the Day as your wallpaper using a PowerShell script.

Notifications You must be signed in to change notification settings

jilkka/nasa-apod-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

NASA Astronomy Photo of the Day via PowerShell

Set NASA's Astronomy Photo of the Day as your desktop background using PowerShell

Note:

Before being able to run this script without using ISE, you will need to set the execution policy.

  1. Run PowerShell ISE as Administrator
  2. Run the following command to unblock the script:
    • Unblock-File -Path c:\Path\to\script.ps1
  3. Run the following command to allow the script to run:
    • Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

You can set this to run each time you login to the machine, for example every morning.

  1. Open Task Scheduler
  2. Create a new local task
  3. Give it a name and description; APOD Wallpaper, for example.
  4. Set a trigger as desired, When I log in for example.
  5. Start a program:
    • powershell.exe C:\path\to\script.ps1
  6. Test it out.

About

Set NASA's Astronomy Photo of the Day as your wallpaper using a PowerShell script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published