About 854,000 results
Open links in new tab
  1. How to create an USB flash drive that can run Powershell?

    Nov 11, 2024 · I need to create an USB flash drive specifically for loading OS images in new computers with DISM. And I would like to be able to run PowerShell scripts from that boot drive, because I can have more control over the system and extract more information before install the images. How can I do that?

  2. Start PowerShell script when USB drive is inserted

    Feb 15, 2014 · You can use Windows Management Instrumentation (WMI) events to detect when a USB flash drive is inserted. You can create a temporary event registration using the Register-WmiEvent cmdlet. Let's say that you have a script file called c:\test\script.ps1. This script will be used to respond to events when they occur.

  3. Automaticlly running a PS script when the USB drive is plugged in

    Oct 26, 2022 · I am writing a PS script to pull user files from C:\Users\ {User}\Some Files here to a USB drive. I am trying to all it to automatically start when the USB drive is plugged in. The PS script will be on the USB drive. Any update? Did this help?

  4. Execute a PowerShell script when USB is inserted : r/PowerShell - Reddit

    Jan 29, 2021 · PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules. I'm searching for ways to execute a .ps1 file from my USB (the .ps1 file is saved into that USB) as soon as I insert the USB into my computer.

  5. Powershell run msi setups from USB (when drive letter changes)

    Sep 18, 2018 · I have just run into a snag with office, when the script is run: $OfficeInstaller = '.\msi\o365\setup.exe' $OfficeArguments = '/configure .\msi\o365\configuration.xml' Start-Process -FilePath $OfficeInstaller -ArgumentList $OfficeArguments -Wait

  6. Create USB Flash Drive to Run PowerShell: A Guide for DISM OS …

    Nov 11, 2024 · Learn how to create a USB flash drive specifically for loading OS images using DISM and running PowerShell scripts. This guide provides step-by-step instructions for tech support professionals and enthusiasts.

  7. PowerShell Scripting - Create USB Install Media for Windows 10

    Sep 20, 2018 · Windows Media Creation Tool (tutorial) can create a USB install media but for instance users downloading Windows Insider ISO images or wanting a custom install media need to create USB install media by themselves. This tutorial contains a PowerShell script for creating a bootable USB Windows 10 install media.

  8. Run a task automatically to promt for admin credentials when usb

    Jun 30, 2022 · But now I want that when a user plug a USB derive to his system or laptop is plugged in, there should be a script run that promt for the administrator username and password as it promt when installing a software on user machines. Is there anyone who can guide me on this and help me achieve this goal?? thanks. regards, Safdar.

  9. powershell - Power Shell script on USB stick : how to determine drive

    Sep 17, 2017 · for making Power Shell open the file mytext.txt on the USB stick, by means of notepad. The problem is that the drive letter assigned for the USB stick changes from PC to PC. How can I use a power script command to find the drive letter assigned to my USB stick?

  10. Running script from flash drive : r/PowerShell - Reddit

    Mar 11, 2021 · So I have a powershell script that will install my apps and config after a fresh install of windows and I want to put it on a usb and make it run after the flash drive is plugged in. How can I achieve this?

Refresh