Solved

Running powershell scripts in a preboot eg.winpe environment

Posted on 2010-11-23
2
2,036 Views
Last Modified: 2012-05-10
Hi guys, i hope you are all well and can help.
Id like to start using powershell in our build process for Windows 7.
Is there a way to "activate" or run powershell scripts during the build process of Windows 7 in the winpe environment?
Any help greatly appreciated.

0
Comment
Question by:Simon336697
2 Comments
 
LVL 4

Accepted Solution

by:
Sajen_Jose earned 500 total points
ID: 34203999
Hi,

As far as my understanding goes the standard Win PE does not have dot net support available and hence running powershell scripts without dot net might not be possible. (There might be ways to customize the PE Environment to support dot net / powershell).

I found this link which describes a tool for creating a portable powershell
(http://www.powershellcommunity.org/Default.aspx?tabid=55&EntryID=97)

Portable PowerShell is software that allows you to run PowerShell on machines that don’t have PowerShell installed that you can run from a Machine that doesn’t have PowerShell on it, from a USB stick, on a machine that has a different version of PowerShell, a preinstall environment like BartPE, or WinPE or when booted to a windows 7 recovery DVD.
0
 
LVL 1

Author Comment

by:Simon336697
ID: 34228429
Thanks so much Sajen, really appreciate it.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question