Skip to content

Commit

Permalink
specify runAs correctly (#3228)
Browse files Browse the repository at this point in the history
* add mandatory runas field back in

* spell the value correctly
  • Loading branch information
robertsweetman authored Aug 25, 2023
1 parent 39a468d commit 03c698d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tasks:
inputs:
- frequency: once
type: powershell
runAs: admin # or localSystem
# Set time to local and locale
content: |
# $ErrorActionPreference = "Stop" # un-comment to set all errors to terminate script
Expand All @@ -15,6 +16,8 @@ tasks:
Set-WinSystemLocale "en-GB"
- frequency: once
type: powershell
runAs: admin # or localSystem
# create a folder and file to test that the script ran
content: |
New-Item -ItemType Directory -Force -Path C:\temp\Test
New-Item -ItemType File -Force -Path C:\temp\Test\test-success.txt
Expand Down

0 comments on commit 03c698d

Please sign in to comment.