Once everything is filled out (only the source file is mandatory), click Compile.Ĭonvert a PowerShell script into an EXE with PS2EXE WIN PS2EXE With a fairly simple interface, the user can select the location of the saved source file (which is the PowerShell script), create a target file name, and even select an icon for the soon-to-be-created EXE. This module allowed me to take my tiny PowerShell script and convert it to an executable that could be placed on a network share for the help desk user. However, it hadn't been updated in more than five years, so I chose to use a new version: WIN-PS2EXE, by Markus Scholtes. PS2EXE was created by Ingo Karstein several years ago to convert a PowerShell script to a "standalone" EXE. Compiling a PowerShell script with PS2EXE and WIN-PS2EXE ^ Next, we can use PS2EXE and WIN-PS2EXE to turn this PowerShell script into a self-contained EXE file that the business user can use. Now that we have the script, we can save it as test.ps1. Write-host "To copy the results, highlight the text you want to copy and right-click with your mouse. Get-ADGroupmember $ADGroup -Recursive|Get-ADUser -Properties \* | FT GivenName, Surname, name, displayname -AutoSize Write-host -nonewline "Type or paste the name of the AD group you want look up: "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |