Solved

Running powershell scripts in a preboot eg.winpe environment

Posted on 2010-11-23
2
2,068 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
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 antispam), the admini…

738 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