Machine Setup Automation

Huntman102
Huntman102 Member, Managed Service Provider CHOCOLATE MILK
edited October 2022 in Request

We are trying to create/implement agent procedures to automate the setup process for new machines.

List of procedures to be automated:

-Change power & sleep settings

(Screen turns off after 10 min on battery / 1 hr when plugged in)

(pc goes to sleep after 30 min on battery power / Never when plugged in)

-Update windows 10 to the latest version

-Run Microsoft store and fully update all apps

-Run HP Support Assistant (if applicable) and fully update all drivers (several restarts required)

-change HP Support update settings to never check for updates

-Uninstall non-essential programs *To be determined*

-Install Google Chrome

1
1 votes

Active · Last Updated

Comments

  • KaseyaKatie
    KaseyaKatie Member, Administrator, Kaseyan, Kaseya Staff

    COMMUNITY MANAGER

    Can you provide more details, please?

  • Datalyst
    Datalyst Member DECAF

    @Huntman102 , @KaseyaKatie We have built several scripts to provision computers automatically and to create a log for future reference. Running stage 1 script then runs stage 2 and then stage 3. After several reboots, the computer is provisioned to our standards.

    Stage 1 script

    Stage 2 Script

    Stage 3 script

    Log example placed in temp directory

    === New Windows Workstation and Server Machine Build started at 12:12:52 on 05-24-2021 ===

    .

    === Starting Stage 1 - .NET and Powershell Configuration on machine mts-cin17 at 12:12:52 on 05-24-2021 ===

    [OK] Power Scheme - Disabled Sleep and Hibernate when running on AC Power.

    [OK] Chocolatey was installed.

    [OK] Windows Enforce User Account Policies have been set.

    === Completed Stage 1 - .NET and Powershell Configuration on machine mts-cin17. at 12:12:52 on 05-24-2021 ===

    .

    Recorded REBOOT at 12:13:11 on 05-24-2021 

    .

    === Starting Stage 2 - Base Configuration on machine mts-cin17 at 12:14:40 on 05-24-2021 ===

    [OK] Time set to NTP 0.north-america.pool.ntp.org,1.north-america.pool.ntp.org,2.north-america.pool.ntp.org,3.north-america.pool.ntp.org

    [OK] Set Energy Saver - Battery Set Display Sleep 15 Mins

    [OK] Set Energy Saver - Battery Set Computer Sleep 30 Mins

    [OK] Set Energy Saver - Power Adapter Set Display Sleep 15

    [OK] Set Energy Saver - Power Adapter Set Computer Sleep 60 Min

    [OK] WOL has been enabled for Dell BIOS (DCCU)

    [OK] WOL has been enabled for HP BIOS

    [OK] WOL has been enabled for Lenovo BIOS

    [OK] WOL Windows Fast Boot has been disabled

    [OK] WOL has been enabled for all NICs

    [OK] RDP has been Enabled in Windows Firewall

    [OK] Windows Remote Registry Service has been disabled

    [OK] The Windows Media Player Network Sharing Service has been disabled on machine

    [OK] Display My Computer Icon on Desktop has been successfully set on machine

    [OK] Disable IEFirstRun has been successfully set on machine

    [OK] ICMP (Ping) is enabled inbound on machine firewall

    [OK] NoAutoRebootWithLoggedOnUsers has been set on

    [OK] Disable Windows Action Center has been successfully set on machine

    [OK] Disable AutoReboot on BSOD has been set

    [OK] Enabled Crash Debug Settings

    === Completed Stage 2 - Base Configuration on machine mts-cin17 at 12:14:40 on 05-24-2021 ===

    .

    Recorded REBOOT at 12:16:13 on 05-24-2021 

    .

    === Starting Stage 3 - Uninstall Software at 12:17:36 on 05-24-2021 ===

    [OK] Completed removal Energy Star)

    [OK] Completed removal Microsoft Security Essentials

    [OK] Completed Removal of PDF Complete

    [OK] Completed removal of Power DVD Complete

    [OK] Completed removal of HP Connection Manager Completed

    [OK] Completed removal of HP Documentation

    === Completed Stage 3 - Uninstall Software at 12:17:36 on 05-24-2021 ===

    .

    Recorded REBOOT at 12:17:36 on 05-24-2021 

    .

  • KaseyaKatie
    KaseyaKatie Member, Administrator, Kaseyan, Kaseya Staff

    COMMUNITY MANAGER

    Thanks @Datalyst for sharing!

    @Huntman102 - Do @Datalyst's automations achieve what you're looking for?