I have been looking for a method for running as (because many programs run scripts as System on endpoints) to update third party applications on computers. This is a commonly requested feature by and there are a number of discussions surrounding the desire and potential issues related to changing how winget is packaged to allow it to run using the System account (github.com/microsoft/winget-cl).

After reading github.com/microsoft/winget-cl and github.com/microsoft/winget-cl, I came up with a method to have winget run as System.

```$exeFilename = get-childitem -Path "C:\program files\windowsapps\" -filter winget.exe -Recurse | %{$_.FullName}
New-Alias -Name sysget -Value $exeFilename

sysget upgrade --all -e --accept-package-agreements --accept-source-agreements```

#winget #system #remotemonitoringandmanagement #itdepartments

Last updated 3 years ago

I have been looking for a method for running as (because many programs run scripts as System on endpoints) to update third party applications on computers. This is a commonly requested feature by and there are a number of discussions surrounding the desire and potential issues related to changing how winget is packaged to allow it to run using the System account (github.com/microsoft/winget-cl).

After reading github.com/microsoft/winget-cl and github.com/microsoft/winget-cl, I came up with a method to have winget run as System.

$exeFilename = get-childitem -Path "C:\program files\windowsapps\" -filter winget.exe -Recurse | %{$_.FullName}
New-Alias -Name sysget -Value $exeFilename

sysget upgrade --all -e --accept-package-agreements --accept-source-agreements

#winget #system #remotemonitoringandmanagement #itdepartments

Last updated 3 years ago

I have been looking for a method for running as (because many programs run scripts as System on endpoints) to update third party applications on computers. This is a commonly requested feature by and there are a number of discussions surrounding the desire and potential issues related to changing how winget is packaged to allow it to run using the System account (github.com/microsoft/winget-cl).

After reading github.com/microsoft/winget-cl and github.com/microsoft/winget-cl, I came up with a method to have winget run as System.

```
$exeFilename = get-childitem -Path "C:\program files\windowsapps\" -filter winget.exe -Recurse | %{$_.FullName}
New-Alias -Name sysget -Value $exeFilename

sysget upgrade --all -e --accept-package-agreements --accept-source-agreements```

#winget #system #remotemonitoringandmanagement #itdepartments

Last updated 3 years ago

I have been looking for a method for running as (because many programs run scripts as System on endpoints) to update third party applications on computers. This is a commonly requested feature by and there are a number of discussions surrounding the desire and potential issues related to changing how winget is packaged to allow it to run using the System account (github.com/microsoft/winget-cl).

After reading github.com/microsoft/winget-cl and github.com/microsoft/winget-cl, I came up with a method to have winget run as System.

```
$exeFilename = get-childitem -Path "C:\program files\windowsapps\" -filter winget.exe -Recurse | %{$_.FullName}
New-Alias -Name sysget -Value $exeFilename

sysget upgrade --all -e --accept-package-agreements --accept-source-agreements```

#winget #system #remotemonitoringandmanagement #itdepartments

Last updated 3 years ago