Skip to content

Instantly share code, notes, and snippets.

View PhoeniixMan's full-sized avatar
💭
Learner

Phoenix Man PhoeniixMan

💭
Learner
  • Narayanganj, Bangladesh
View GitHub Profile
@mavaddat
mavaddat / fixphotoshopmem.ps1
Last active June 20, 2020 20:00
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))