Skip to content

Instantly share code, notes, and snippets.

View Siddharaj6010's full-sized avatar

Siddharaj Solanki Siddharaj6010

View GitHub Profile
@Siddharaj6010
Siddharaj6010 / fixphotoshopmem.ps1
Created February 16, 2018 16:23 — forked from mavaddat/fixphotoshopmem.ps1
Powershell script to fix Adobe Photoshop CC memory issue #2416657
# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the Administrator role
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running "as Administrator"
if ($myWindowsPrincipal.IsInRole($adminRole))