You are not logged in.

#1 13 Apr 2016 20:44

netlord
New Member
Registered: 13 Apr 2016
Posts: 1

Search Driveletter which includes an wellknown File

Hi there

in Batch quite easy, but I would like (I have to) use PS wink

How to translate this Code in PS?

for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set SOURCE=%%i:

Set the variable Source for the drive which contains install.wim

Thanks

Offline

#2 14 Apr 2016 01:25

Shadow Thief
Member
Registered: 12 Jul 2012
Posts: 205

Re: Search Driveletter which includes an wellknown File

No idea. The Powershell board is here: https://ss64.org/viewforum.php?id=14

Offline

Board footer

Powered by