jchambers777
Active member
- Local time
- 11:31 AM
- Posts
- 4
- OS
- windows 10
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:

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.
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:

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.
Attachments
My Computer
System One
-
- OS
- windows 10

fflineImage cpi:source="wim://sources/install.wim#Windows 11 Pro"



