1

I'm building a setup script for new computers on the company.

Some settings are set by registry, but some can only be changed with the windows API, such as (example only, I need to run many other API methods too):

Windows.System.UserProfile.LockScreen.SetImageFileAsync(file);

What is a very simple/straighforwad way to run a simpler script / powershell script that calls an API method without having to build/compile an application that calls it?

sigmaxf
  • 1,607
  • 2
  • 13
  • 21
  • 1
    Possible duplicate of [How do I change my lock screen picture automatically?](https://superuser.com/questions/1343623/how-do-i-change-my-lock-screen-picture-automatically) – LotPings Mar 24 '19 at 16:57
  • You'll need to determine how make the same calls using .NET. Here is a good resource: [Use PowerShell to Interact with the Windows API](https://devblogs.microsoft.com/scripting/use-powershell-to-interact-with-the-windows-api-part-1/) – Glenn Apr 08 '19 at 01:45

0 Answers0