Search found 22 matches

by Nillth
Sun Feb 16, 2020 4:05 pm
Forum: Windows PowerShell
Topic: Passing Switch parameters to packaged executable
Replies: 4
Views: 1663

Re: Passing Switch parameters to packaged executable

Interesting,
The packager did not previously support [switch] options as per the section "Change Parameter Values to Strings" in the URL https://www.sapien.com/blog/2015/11/30/ ... able-file/
by Nillth
Sun Feb 09, 2020 2:00 am
Forum: PowerShell GUIs
Topic: squeeze multiple files (.dll and .xaml) into an one .exe package
Replies: 8
Views: 799

Re: squeeze multiple files (.dll and .xaml) into an one .exe package

Not trying to hide the DLL's just trying to have a single, portable exe, that does not need to be installed to run
by Nillth
Fri Feb 07, 2020 1:56 am
Forum: PowerShell GUIs
Topic: squeeze multiple files (.dll and .xaml) into an one .exe package
Replies: 8
Views: 799

Re: squeeze multiple files (.dll and .xaml) into an one .exe package

Alexander Riedel wrote:
Fri Feb 07, 2020 12:09 am
Just make sure you don't install your scripts in any protected folder like "Program Files" or below, as the extract will fail without elevation.
this is true, however they can be run in memory if you are not extracting to disk...
by Nillth
Thu Feb 06, 2020 11:35 pm
Forum: PowerShell GUIs
Topic: squeeze multiple files (.dll and .xaml) into an one .exe package
Replies: 8
Views: 799

Re: squeeze multiple files (.dll and .xaml) into an one .exe package

Actually, I found a way to do exactly this... :) I have a little script I use that compresses dll's, files, etc into a self extracting ps1 file... you point it at all of your required extra files, and it will compress them all to ps1's. then its just a matter of adding them to the project and callin...
by Nillth
Thu Feb 06, 2020 11:15 pm
Forum: Windows PowerShell
Topic: Displaying AD groups where a user account is member of?
Replies: 7
Views: 1650

Re: Displaying AD groups where a user account is member of?

try this one out... one additional benefit of this, is that it can be run on any domain joined system without the need to install the AD PowerShell tools, just need appropriate read access to the DC And should support wild cards on both the user and group values. #region Supporting Functions #https:...
by Nillth
Thu Feb 06, 2020 10:24 pm
Forum: PowerShell GUIs
Topic: Powershell job: you cannot call a method on a null-valued expression..Exception.Message at
Replies: 4
Views: 1103

Re: Powershell job: you cannot call a method on a null-valued expression..Exception.Message at

The chances are that it is going to be caused by something in either the .ps1 file or the functions
"$ScriptDirectory\CM.ps1", Logging-Output, Add-JobTracker
are you able to share the full project?
PowerShell_Studio_bFATnZaLLV.png
PowerShell_Studio_bFATnZaLLV.png (15.27 KiB) Viewed 881 times
by Nillth
Thu Feb 06, 2020 10:15 pm
Forum: Windows PowerShell
Topic: Passing Switch parameters to packaged executable
Replies: 4
Views: 1663

Passing Switch parameters to packaged executable

I was looking for a way to pass switch parameters to a packaged exe and came across the following article. https://www.sapien.com/blog/2015/11/30/passing-parameters-to-a-script-in-an-executable-file/ While this is a clean workaround for not being able to handle [switch]'s, it still requires a value ...
by Nillth
Tue Oct 08, 2019 3:57 pm
Forum: PrimalXML
Topic: Missing Icon in Context Menu
Replies: 1
Views: 3204

Missing Icon in Context Menu

Product: PrimalXML (64 Bit)
Build: v4.5.58
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.18362

Nothing important but in windows when Right Clicking on a XML file, the "Edit with PrimalXML" context menu option is not displaying the Primal XML logo.

2019-10-09 09_19_30-.png
2019-10-09 09_19_30-.png (7.35 KiB) Viewed 3204 times
by Nillth
Tue Oct 08, 2019 3:42 pm
Forum: Windows PowerShell
Topic: PowerShell - Expirate the Program
Replies: 4
Views: 2766

Re: PowerShell - Expirate the Program

Example Project Attached, Super simple addition to your code required... I also have a more advanced version Where you can use the creation date (signing time stamp) +x days, So each build expires after a defined period of time... [System.IO.FileInfo]$Filename = $($hostinvocation.MyCommand.path) #re...
by Nillth
Wed Jun 26, 2019 8:00 am
Forum: Windows PowerShell
Topic: MSI - Service - Load Group
Replies: 3
Views: 2288

Re: MSI - Service - Load Group

Thanks Brittney,
Are you able to provide a link to any documentation for the options for the packager?

Cheers!!