Jump to content
  • 0

Powershell script used to install software after os installation


meebers

Question

Hi,

I was needing some assistance in trying to get a powershell script to run right after os installation. The way I have it setup is the typical first login that's when the powershell script runs and installs the programs. The programs that are getting installed is: 7zip, chrome, adobereader and notepad++. The way this setup runs is this is what I have in my folder structure:

K:\Winbuild\Base\sources\$OEM$\$$\Setup\Scripts:
1762272758215.webp

This has proven to work as I ran the iso on a virtual machine it worked flawlessly. All programs got installed and shortcuts got created. However, when I create the usb flash drive in rufus with this same iso, for some reason it doesn't run the powershell script. I even split the .wim file and was able to create the flash drive as fat32. One thing I had read is because probably since it was ntfs could be why powershell wasn't running. Perhaps to creat the flashdrive as fat32 could help in running the powershell script. I tried still didn't work, but hey you will try anything to see if it works. I am not understanding why this is happening. This is on a dell pro 14 using UEFI and secure boot enabled. I have even cleared the partitions to let the autounattend file to recreate the partitions with a clean install. Still not working. It's just the powershell script not running at all and I am bashing my head on trying to figure that out. Any suggestions ahead of time would be very appreciated.
 
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • AD
  • Recent Status Updates

    No Recent Status Updates
  • Most Solved

    Nothing has been solved this week.

×
×
  • Create New...