How to deploy a startup script for Windows on SMA?
We have been having an issue with some Windows settings for some time. The "Random hardware addresses" parameter is checked without explanation. Thus, the PC displays another MAC address which is no longer recognized on the wifi network. This has the effect of blocking the PC. The only way for us to solve this problem is to physically get there, which is a huge waste of time.
It is not known whether the activation is performed by a user, by software or due to instability of Windows. Therefore, we have created a script that fixes the setting if it changes.
For this to be effective, this script must be executed each time the PC is started, before the user is identified. If the parameter is tampered with, the connection to the network will not be able to take place, which also requires having the PowerShell remediation script on the machine. In addition, this script requires administrator rights.
To deploy this script and its event, we want to use Kace's SMA software.
We have found many workarounds to do this without Kace. However, for the majority, this requires physical intervention from the administrator which we do not want. Indeed, we have a fleet of 1200 Windows workstations, which would take forever. Likewise, we don't want to use group policies.
That's why we would need your help. We are looking for a solution to allow a PowerShell script (already produced) to be:
- Launched on each startup before identification,
- Executed in administrator mode,
- Deployed with Kace SMA silently,
- Stored on the computer.
Of course, we also take alternatives with other software / methods as long as a mass deployment can be achieved (if possible with SMA).
Thank you in advance !