How to deploy a startup script for Windows on SMA?

Hi all,

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 !

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: rock_star 2 years ago
4th Degree Black Belt

Top Answer

Schedule task 

Run key 

Could be area of interest 

  • Yes you are right !
    Using powershell's ScheduledTask commands, this can be done very easily.
    I found this resource after digging deeper which seems pretty comprehensive to me: https://blog.netwrix.com/2018/07/03/how-to-automate-powershell-scripts-with-task-scheduler/.
    Thank you ! - superdada 2 years ago
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ