[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Running powershell scripts in a preboot eg.winpe environment

Posted on 2010-11-23
2
Medium Priority
?
2,209 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 2000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Screencast - Getting to Know the Pipeline

834 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