PowerShell.Reddit.Support
ProcessEx
PowerShell.Reddit.Support | ProcessEx | |
---|---|---|
66 | 5 | |
0 | 30 | |
- | - | |
7.7 | 3.0 | |
over 1 year ago | 7 months ago | |
PowerShell | C# | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PowerShell.Reddit.Support
-
Could someone please help me with this !
Head over to this repo to check the scripts.
-
Best way to self destruct a script?
This script will kill any specific pwsh.exe instances that is running a specific script.
-
String output to console vs variables / winform
You can run this script to view the example.
-
Script to test the state of certain ports on your firewall from the outside
FirewallExternalTest Script on Github
-
Search a list
Hi again, I made a function to list the HP Bios Settings and apply a filter on the settings names or settings values. Check it here.
-
How to go about implementing this feature of ImageMagick Inside a powershell function?
ImageMagickSwatchesCard.ps1
-
Please rate my script
You can use robocopy directly, make sure to read available documentation , or use this powershell script I made as a wrapper for robocopy's usage in PowerShell ... Have fun!
-
robocopy - excluding a directory and its subdirectories
Better yet, use this script wrapping robocopy.
-
Remove all folders and keys in registry containing a particular word
SearchRegistry.ps1 with the script
-
CRC16 Modbus calculation
Heres a C# Version that is 8,5x faster than the one above. script updated
ProcessEx
-
Run process without elevation from a powershell script running with elevation
If it's as another user then using Start-Process ... -Credential $cred will give you a process that is not elevated. If you want to start it as the current user there isn't really an easy way to do so with the cmdlets builtin and what dotnet offers you. If you are open to using a custom module I have ProcessEx which exposes the ability to start a new process with a custom parent. With this you can set the parent as explorer.exe which will be unelevated and the process inherits the same access token.
-
Run PowerShell command NOT as admin
There are a few ways you can spawn a sub process as the limited token but it's not something you can easily do with the builtin cmdlets and dotnet APIs available. The simplest option I know is to spawn a new process with a custom parent that is not elevated. For example I can use my ProcessEx module to spawn a limited process with the parent of explorer.exe.
-
Start-Process doesn't work with -credential parameter on Windows Server Core
Using Start-ProcessWith with a -Credential object should work for both running in session 0 (Enter-PSSession) and using the -Wait parameter to wait for it to complete. Unfortunately it will spawn in a new window (which you can hide though). If you want it to run the new process as another user but in the same window you essentially need Start-ProcessEx with a -Token. This allows you to spawn a process in the current terminal but unfortunately the -Token side requires privileges that not even normal Administrators typically have, thus would need to be run as SYSTEM.
-
Executable that only returns stdout and defies all redirection
For Windows, the only thing you can do with an exe like this is to rely on the ConPTY APIs Windows provides and reads from that. Unfortunately there is no builtin way to do this with PowerShell so you are reliant on either writing the PInvoke code yourself or using a 3rd party module. I have one called ProcessEx which can be used to spawn a new process under a ConPTY and capture that as a string with the following:
What are some alternatives?
Fido - A PowerShell script to download Windows or UEFI Shell ISOs
Invoke-CommandAs - Invoke Command As System/Interactive/GMSA/User on Local/Remote machine & returns PSObjects.
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
getfosshub - getfosshub GET FOSSHUB FILES
HtmlAgilityPack - Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a .NET code library that allows you to parse "out of the web" HTML files.
PowerShell.Module.InvokeWinGet - Powershell Module to Invoke WinGet and parse the output in PSObjects
ITextSharp - [DEPRECATED] .NET port of the iText library, only security fixes will be added — please use iText for .NET
nbfc - NoteBook FanControl
PowerShell.CustomProgressBar - CustomProgressBar