Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I don't want to show my code so i want to encrypt the script which is difficult to decrypt.
If possible i want to run my encrypted script through power shell script.
I use PS2EXE to pack scripts as exe's. here is the link to the code link.
The code needs to be updated to account for newer version of powershell. Where the script checks for PSVerion.Major for version 4 change the -eq to -gt.
It can be a little tricky to use at first but the code is solid minus the update listed above.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have PowerShell script which required PowerShell version 4.0 so i want to write PowerShell script to upgrade version of PowerShell to 4.0 so client can use easily.
When you download the zip with WMF5.1 from Microsoft Website, it already includes a Powershell install script. No need to reinvent the wheel.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
This is my first question here in StackOverflow, so if this question has already been made or is in the wrong topic, please excuse me.
I'm studying C using Windows and I'm looking for a list/book/manual of usable parameters for the system() function. Stuff like system("pause"), system("cls"), system("color 1f"), etc...
Thanks for the help in advance.
The purpose of system() API is to execute an external command, the parameters are the arguments of the command that you are trying to execute, just like if you were typed in shell prompt, there is not anything special to pass, just put into the string.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have create an Windows Application in .net. I need to execute the exe generated by the application using powershell.
I would usually use the call operator (&):
$args = #('arg1', 'arg2', 'arg3')
& app.exe $args
A complete list of your available options are detailed here.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm looking to create a console app that spits out a sql script with my updates to the database so i can run this in production/test.
Is there a way of accessing the powershell commands in code?
So I want it to generate my migration files and then a script to update the relevant db i.e. either prod or test. This will be passed in as an argument, so it needs to compare against the prod db or the test db depending on what parameter is passed in.
This blog post shows how to write code that does migrations. The code is C# but if you really want, you should be able to port it to PowerShell.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to write a script that writes (appends) data to an internal wiki that isn't public (needs username and password but unencrypted, http not https). The script can be a shell script, a Perl script, or even a Java application (last resort). Any help would be appreciated. Let me know if any additional information is needed.
Right now, I'm only able to read from the wiki using LWP Perl library using the getprint($url) function.
Thanks
If it's truly MediaWiki, then just use MediaWiki::API.