Skip to content

Instantly share code, notes, and snippets.

@rosberglinhares
rosberglinhares / Enable-Privilege.ps1
Created March 17, 2018 13:23
PowerShell script to change the type of the passed services to 'Own Process'. In this way, it is possible to check how much memory is specifically allocated to each service.
<#
.SYNOPSIS
Enables privileges in the access token of the current process. This allows the process to perform system-level actions that it could not previously.
This code was adapted from the following link: https://msdn.microsoft.com/en-us/library/windows/desktop/aa446619(v=vs.85).aspx.
.PARAMETER Privilege
Specifies, as a string array, the privileges to be enabled. More information about privileges can be found at
https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx.
.NOTES
@attachmentgenie
attachmentgenie / build.xml
Last active August 1, 2022 18:44
simple script to package files into a bootable iso
<?xml version="1.0" encoding="UTF-8"?>
<project name="Package" default="help" basedir=".">
<!--
Ant Build file to run package tasks.
-->
<property file="config/application.properties"/>
<!--