Quantcast
Channel: PS2EXE
Viewing all 87 articles
Browse latest View live

New Post: Extracts the PowerShell script with parameter -extract:”Filename”

$
0
0
Can someone make a statement?
Perhaps a developer?

New Post: Extracts the PowerShell script with parameter -extract:”Filename”

$
0
0
Hi!

open ps2exe.ps1. search for this code:
if (!string.IsNullOrEmpty(extractFN))
{
System.IO.File.WriteAllText(extractFN, script);
return 0;
}
Remove these lines complety. Than "extract" will not work anymore! - That's it!

Changing the execution policy is more difficult. No time implementing it. But anyway you should set the execution policy outside.

Regards
Ingo

New Post: Convert back from executable to Powershell script

$
0
0
Hi,

I have lost original powershell script and need to convert back the executable to powershell script.

Is this possible?

Regards,
Paresh

New Post: Convert back from executable to Powershell script

$
0
0
Hi!

No problem! You could you the -extract parameter! - There are other ways too...

Ingo

New Post: Convert back from executable to Powershell script

$
0
0
Hi,

Thanks for quick reply. May I get the syntax for -extract parameter? I cant see it in help as well.

I tried following and it didn't work.

ps2exe.ps1 -inputfile 'path to exe' -outputfile 'path to ps1' -extract

Paresh

New Post: Convert back from executable to Powershell script

$
0
0
NM. I've got it from the home page.

It was executable.exe -extract:"Filename.ps1"

Thanks.

New Post: Icon support

$
0
0
Hi,

Do you have any plans to add Icon Support, that I can change the default icon to something else?

Best,
Kaido

New Post: Specifying Credential with password fails

$
0
0
I've a script which sends a job to server and receive-job if job status is blocked due to permissions. It does prompt for username and password when I run it through ISE however after converting to executable it doesn't let me enter a password and that results in following error and stops script from working.

Can someone please advice?

Windows PowerShell Credential Request : Specify Credential
Warning: This credential is being requested by a script or application on the XXXXXXX remote computer. Enter your credentials only if you trust the remote comp
uter and the application or script requesting it.

Please specify server credential
User name: XXXXXX\XXXXXXX
Status of Job1 is Completed
Cannot process argument because the value of argument "password" is null. Change
the value of argument "password" to a non-null value.

New Post: Specifying Credential with password fails

$
0
0
Also when I tried get-credential, it fails with following error.

Please enter credentials that has access to Vcenter
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential: XXXXXXX\XXXXXXX
The '=' operator failed: Exception in ik.PowerShell.PS2EXEHostUI.Prompt*2.

Created Unassigned: Virus Detected when compiling to Exe ? [1773]

$
0
0
Strangely enough, when i compile a PS script to an exec, our Symantec Virusscanner thinks there is a virus in it ?

When i compile the same script with Primalscript, i don't get a warning..

Commented Unassigned: Virus Detected when compiling to Exe ? [1773]

$
0
0
Strangely enough, when i compile a PS script to an exec, our Symantec Virusscanner thinks there is a virus in it ?

When i compile the same script with Primalscript, i don't get a warning..
Comments: ** Comment from web user: ikarstein **

Interesting ;-) - I've no idea what to do here...

Commented Issue: relative path don't work [1387]

$
0
0
i tested to compile a script using relative path like ps2exe.pl ..\src\test.ps1 ..\src\test.exe
The Script the look for the script in H:\src\test.ps1 H: is my startfolder
/A
Comments: ** Comment from web user: ikarstein **

For some reasons PowerShell does not like relative paths in some cases. You should use absolute paths - or modify PS2EXE...

New Post: Icon support

$
0
0
There is icon support in it. Does it not work for you??

Created Unassigned: I'm able to compile an exe but it doesn't do anything [1818]

$
0
0
I get the loading circle, a quick cmd prompt opens and closes and that's it.

I ran the following:

.\ps2exe.ps1 -inputfile c:\ps\test.ps1 -x86 -runtime30 -noconsole -outpfile c:\ps\test.exe

I also tried

.\ps2exe.ps1 -inputfile c:\ps\test.ps1 -outputfile c:\ps\test.exe -x86 -runtime30 -noconsole

Suggestions? I'm really new at this. I wrote a simple Powershell script to find your external IP and I want to be able to share it with people without them having to figure out how to use powershell. Is what I'm trying to do even possible?

New Post: Runtime Error

$
0
0
Hello,
I'm trying to compile a ps1 file that contains the following PS code:
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
Get-MailboxFolderStatistics MyUsername | ft Name
but have the following error:

An unexpected error has occurred and a Watson dump is being generated: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and ca
nnot be loaded in the 4.0 runtime without additional configuration information.
An unexpected error has occurred and a Watson dump is being generated: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and ca
nnot be loaded in the 4.0 runtime without additional configuration information.

what should I do?

New Post: Unhandled Exception

$
0
0
I am able to create the exe but it will not execute, this is the error;

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKey Token=31bf3856ad364e35 or one of its dependencies. The system cannot find the file specified.
 at ik.PowerShell.PS2EXE.Main(String[] args)
This is the ps1;

Set-Location C:\windows\system32\wbem\repository
Set-Service -Name tmlisten -StartupType Disabled
Stop-Process -Name TmListen -Force
Wait-Event -SourceIdentifier "Service Control Manager" -Timeout 5
Stop-Service -Name Winmgmt -Force
Get-ChildItem * -Recurse | Remove-Item -Force
Start-Service -Name Winmgmt
Set-Service -Name tmlisten -StartupType Automatic

Any help is appreciated.

-Judical

New Post: Icon support

$
0
0
Hi IKarstein,

I have recently downloaded ps2exe and have had great success with it.
I also am unable to change the icon.
Also, on certain systems (e.g. Windows 2008 R2), the compiled EXE stops with a Windows Script Host 'error'. The box is empty though (i.e. no message).
The ps1 file runs perfectly on the same system.
Can you perhaps offer some assistance.
Your help is greatly appreciated.

New Post: Icon support

New Post: PowerShell 4.0 Support

$
0
0
Please add support for PowerShell 4.0 :-)

New Post: Suppress Import-Module Messages

$
0
0
Hi,

I recently used your lovely script to create an exe, but I get a lot of this messages:

parent = -1 id = 0 act = Das Active Directory-Modul für Windows PowerShell mit dem Standardlaufwerk "AD:" wird geladen. stat = cur = pct = 0 sec =
-1 type = Processing

Also these:
parent = -1 id = 0 act = Abgeschlossen. stat = Abgeschlossen. cur = pct = -1 sec = -1 type = Completed

Is it possible to suppress them? Or just supress all of these in general?

Thank you!
Viewing all 87 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>