Is it possible to hook a custom dialog into the new PowerShell ISE (Integrated Scripting Environment) that replaces the existing .NET WinForms dialog. I am talking about the dialog that the Read-Host cmdlet launches to request for user input.
...
I'm writing a PowerShell script to manipulate some Windows Installer XML (WiX). I'm using the new XML APIs in .NET 3.5 to do this, as I find it an easier API to work with than the DOM. The following script fragment is flatly refusing to work:
[System.Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq") | Out-Null
# Basic ide...
How to read the below xml file and write its content into a plain text file?
<!--
< config >
< compare >
< source >d:\demo\< /source >
< destination >e:\demo\< / destination >
< parameters >
< parameter >FileName< /parameter>
< parameter >Size< /parameter>
< parameter>Date< /parameter>
< /parameters >
< /compare >
< ...
I'm attempting to override and implement my own TabExpansion. In the function I want to parse the contents of $psise.CurrentFile.Editor.Text when a certain $lastword criteria is matched. The issue I have is that the variable $psise.CurrentFile.Editor.Text is resolved to the contents of my TabExpansion function rather than whatever text i...
I have written a script which is basically a small wysiwyg signature generator for Outlook. We want our signatures to be in corporate colours, and semi-standardised - hence the requirement for this.
I did the development work in Powershell ISE and all looked good. However, when I run the script just using powershell (as the users will) ...
Hi all, is possible to load the $psise object in the console?
I want to open several files in ISE but doing
>ise filename
>ise filename2
just open the first one. Inside ISE i don't have that problem because i use the $psise object to open the file
function qwe($file){
if(-not (Test-Path $file)){
New-Item -Name $file -ItemType fil...
I'm development a Cmdlet and using Powershell-ISE to test. ISE is keeping my DLL locked and preventing from rebuilding and then reloading.
I've tried call remove ps-snappin, but the DLL remains locked.
...
Hi all,
I'm working on a automated script for deploying sharepoint projects. I'm using a sandbox level webtemplate that must be applied when de site is created. I had a lot of troubles doing that because it seems like sharepoint caches the list of webtemplates and get-spwebtemplate doens't find the new added one. The way I made it work i...