Skip to content

Instantly share code, notes, and snippets.

View JanLenoch's full-sized avatar

Jan Lenoch JanLenoch

View GitHub Profile
$Paths = @("C:\inetpub\wwwroot\Kentico9InVirtualApplication\CMS\;1;/Kentico9App", "C:\inetpub\Kentico9InSite\CMS\;2")
[filesystem path];[ID];[virtual path]
@JanLenoch
JanLenoch / Precompile-KenticoInstancesAdvanced.ps1
Created September 26, 2016 11:39
Get Near-Zero Load Time in Both Development and Production (Advanced)
$Paths = @("C:\inetpub\wwwroot\Kentico9InVirtualApplication\CMS\;1;/Kentico9App", "C:\inetpub\Kentico9InSite\CMS\;2")
$ScriptBlockBase = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -m LM/W3SVC/"
$JobNamePrefix = "KenticoPrecompilationJob"
$ConfirmPreference = "none"
# The self-elevaing logic was developed by Jonathan Bennett: https://www.autoitscript.com/forum/topic/174609-powershell-script-to-self-elevate/
# Test if admin
@JanLenoch
JanLenoch / Precompile-KenticoInstances.ps1
Created September 26, 2016 11:36
Get Near-Zero Load Time in Both Development and Production
$Paths = @("C:\inetpub\wwwroot\Kentico9InVirtualApplication\CMS\;1;/Kentico9App", "C:\inetpub\Kentico9InSite\CMS\;2")
$ScriptBlockBase = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -m LM/W3SVC/"
$JobNamePrefix = "KenticoPrecompilationJob"
$ConfirmPreference = "none"
# The self-elevaing logic was developed by Jonathan Bennett: https://www.autoitscript.com/forum/topic/174609-powershell-script-to-self-elevate/
# Test if admin