Solved

Running powershell scripts in a preboot eg.winpe environment

Posted on 2010-11-23
2
1,976 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
Comment Utility
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
Comment Utility
Thanks so much Sajen, really appreciate it.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now