Example source for an itch devlog, using this devlog from 2022-02-12.
The view-source.html
file was retrieved by copying the code from view source
in the browser and prettifying it for easier reading.
#region Custom Function Definitions | |
Function Test-Administrator { | |
$CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent() | |
$AdministratorRole = [Security.Principal.WindowsBuiltInRole] "Administrator" | |
([Security.Principal.WindowsPrincipal]$CurrentUser).IsInRole($AdministratorRole) | |
} | |
#endregion | |
#region Prompt Prep | |
# Set ENV for elevated status |
Example source for an itch devlog, using this devlog from 2022-02-12.
The view-source.html
file was retrieved by copying the code from view source
in the browser and prettifying it for easier reading.
@{ | |
RootModule = 'CustomTypeExample.psm1' | |
ModuleVersion = '0.1.0' | |
GUID = '2779fa60-0b3b-4236-b592-9060c0661ac2' | |
Author = 'mikey' | |
CompanyName = 'Unknown' | |
Copyright = '(c) mikey. All rights reserved.' | |
FunctionsToExport = @( | |
'New-AcceleratedClass' | |
'New-UsableClass' |