Skip to content

Instantly share code, notes, and snippets.

@adamdriscoll
Created January 29, 2020 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamdriscoll/899971969079d2c286f587175507bd38 to your computer and use it in GitHub Desktop.
Save adamdriscoll/899971969079d2c286f587175507bd38 to your computer and use it in GitHub Desktop.
Schedule a script to run as another user
$Script = Get-UAScript -Name 'whoami.ps1'
New-UASchedule -Script $Script -Credential $Credential -Cron '*/2 * * * *'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment