|
We can use [Windows.Markup.XamlReader]::Load to load XAML file in PowerShell, but is there some way to specify some PowerShell script as code behind?
Started by alex2k8 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
PowerShell regarding using ....
As languages to use to build WPF applications, that implies that work needs to be done at the tool "for free", it's doubtful that PowerShell has the ability to be the code behind for a WPF UI.
|
|
Is there a way to bundle PowerShell such that I don't have to install it on the OS? Ideally I'd like to use it in my build process, but I want something that's self-contained; I don't want to rely on each client computer installing PowerShell. I'm thinking...
Started by Peter Seale on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can host a powershell runtime inside a .net application using the System.Management.Automation dll, but I believe to run this you still need to have access to the powershell runtime does not seem possible, you will need to install....
|
|
Can I use powershell as the shell, in shell mode for emacs?
How?
Started by Cheeso on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
powershell" "Run powershell as a shell within emacs." t)
Once done, use M-x powershell to openA quick Google reveals this Emacs plugin for Powershell
The quickest way to find out would be to run shell-mode, and then....
|
Ask your Facebook Friends
|
Is there a way to use PowerShell to view the contents of the GAC?
Started by GuyBehindtheGuy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Another option is that the....
I don't know of a managed interface to inspect the GAC .
Rather use windows explorer (gui) or gacutil (cli)
To list entries in the GAC;
gacutil -l
In powershell you could parse the text output of the above.
|
|
I'm trying to use powershell to configure the account credentials, but I need to grant the account "Log on as a service" right in order for it to work. How can I do this in powershell?
Started by Jesse Weigert on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at stackoverflow):
Doesn't mean it can't be done, though, but you'll probably be looking outside the realm of PowerShell.
PowerShell doesn't have any native means of doing this, which means you'd probably be looking.
|
|
How can I execute a program on a remote machine using powershell?
Started by Hasan Khan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
The not so to invoke it via powershell....
Cool (or new) way to do this is to use psexec , which isn't powershell, but I'm sure there's some way, although there is a download with powershell v2 & WinRM for other windows operating systems.
|
|
Has anyone tried installing powershell on a Windows 2000 server? I realize its not supposed to be installed on windows 2000 server and therefore not supported; however the vbscript that runs on it takes 3.5 days to complete which powershell could probably...
Started by phill on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To the Windows 2000 server in question, you could run PowerShell on a supported machine in the same domain and use set-location to change your working directory to the remote server
cd \\remoteserver\<drive>$\path\to\folder\you\want....
|
|
How can I view my reputation with a PowerShell function ?
Started by Andy Schneider on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The following ....
I am sure you could use some nifty library to convert JSON to a PSobject within PowerShell (including V1).
You can use the following function
Function Get-StackOverFlowReputation { param($userID) $client and dirty.
|
|
There are many scenarios where it would be useful to call a Win32 function or some other DLL from a PowerShell script. to Given the following function signature:
bool MyFunction( char* buffer, int* bufferSize )
I hear there is something that makes this...
Started by Scott Saad on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You could of course write a C# or VB.NET helper class to do... .
ManagingINIFilesWithPowerShell.aspx
To call unmanaged code from Powershell, use the Invoke-Win32There isn't any mechanism in PowerShell 1.0 to directly call Win32 API's.
|
|
Hi,
How can I remove the ReadOnly attribute on a file, using a PowerShell (version 1.0) script?
Thanks, MagicAndi
Started by MagicAndi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
PowerShell, one can still use the simple Attrib command for this:
attrib -R file.txt
" if ($file.IsReadOnly -eq $true) { $file.IsReadOnly = $false }
If you happen to be using the PowerShell Community alias sro PS> dir ....
|