PowerShell Script to Restrict Application to a Single Instance

Here is a simple Powershell code that checks if a specified process is already running and launches second instance of the application if it’s not already running. [code language=”powershell”] $process = "mspaint" $ret = Get-Process -Name $process -ErrorAction SilentlyContinue if ($ret) { Write-Host "INFO: $process already running, skipping start of another instance of the same process" } else { Write-Host "VERBOSE: Starting $process now" Invoke-Item "$process.exe" } [/code] .

Read more

Verifying Client Redirection of Citrix “HDX MediaStream For Flash” is working and fine-tuning the Client Devices for improved performance.

Requirement: You enable “HDX MediaStream Flash Redirection on the User Device” setting in Citrix Policies and would like to verify the effect of the policy on the client system/device Verifying “HDX MediaStream Flash Redirection on the User Device” on User Device: On the user device connect to the Citrix Session and open any of the Flash video content, say play a video on Youtube.  This will cause your session policy to redirect the Flash video play to the client device.  Requirements on Client Device:  User device should have any of the supported version of Flash Player installed. When Flash content […]

Read more

Viewing and Analyzing the Executables (.exe)/Console Applications developed in .Net without Source Code

Most of the .Net developers would probably know, how to view or analyze a third party console application that is developed in .Net.  This capability/skill would be required for various other roles like application re-packagers/integrators and Security Analysts/Researchers, etc.,.  Here I’d be briefing about how to view the compiled Intermediate Language (IL) (Microsoft calls as a managed code) code of any executable (.exe application) that is developed in .Net. Microsoft provides a tool named Ildasm.exe (Microsoft Windows Intermediate Language (IL) disassembler).  This tools shipd along with the .Net developer IDE Visual Studio and you can have this downloaded from Microsoft.  […]

Read more