Solved

Running powershell scripts in a preboot eg.winpe environment

Posted on 2010-11-23
2
2,098 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 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