Public Files

Info about this page https://wiki.enlogic.gr/Customers/EnLogic/AboutPublicFiles

(You need to ask ndemou to add or update the attachments)

Example of how to download and use some scripts

In case of error "cannot be loaded because running scripts is disabled on this system"

Default windows policy is to not allow execution of PowerShell scripts. You can overide it like this:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted

For mazars-prepare-laptop-code.ps1 (ProcedurePrepareLaptopForNewUser)

Open an Admin PowerShell and run these commands (they allow execution of PowerShell scripts, install PowerShell windows update module, and download code from our wiki)

Set-ExecutionPolicy -ExecutionPolicy Unrestricted
powershell -exec bypass -c ". {iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/Install-PrepLapCode.ps1}|iex"


For libraries like monitor-tcp-port-conns.ps1 (Watch-PortConnectionsLive)

$fname="monitor-tcp-port-conns.ps1"; mkdir C:\it\bin -force > $null; iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/$fname -out c:\it\bin\$fname
. C:\it\bin\$fname # dot-source it to have access to the commands/functions it provides
$output = Watch-PortConnectionsLive; $output | ft

For self-contained scripts like server-QC-checks.ps1 & Run-DismSfc.ps1

$fname="server-QC-checks.ps1"; mkdir C:\it\bin -force > $null; iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/$fname -OutFile c:\it\bin\$fname; . "c:\it\bin\$fname"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force; $fname="Run-DismSfc.ps1"; mkdir C:\it\bin -force > $null; iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/$fname -OutFile c:\it\bin\$fname; . "c:\it\bin\$fname"
$fname="WindowsUpdatesHelper.ps1"; mkdir C:\it\bin -force > $null; iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/$fname -OutFile c:\it\bin\$fname
& c:\it\bin\WindowsUpdatesHelper.ps1 -Download # you may add -Reboot if you don't mind rebooting to finish installations

& c:\it\bin\WindowsUpdatesHelper.ps1 -ShowHistory -IncludeAV | ft # show updates history
$fname="Test-ForCpuRamDiskStress.ps1"; mkdir C:\it\bin -force > $null; iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/$fname -OutFile c:\it\bin\$fname

# Run once
& "c:\it\bin\$fname" -LogDir c:\it\log -LogBaseName 'CpuRamDiskStress'

# Always run on startup
New-ScheduledTaskForPSScript `
-ScriptPath "c:\it\bin\Test-ForCpuRamDiskStress.ps1" `
-ScheduleType Startup `
-ScriptArguments "-LogDir","c:\it\log"

Health tests code

# Download (or Update) all code related to Health Testing
$fname="Update-ServerHealthCode.ps1"; mkdir C:\it\bin -force > $null; iwr -useb https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles/$fname -OutFile c:\it\bin\$fname; . "c:\it\bin\$fname"
c:\it\bin\Test-WorkstationHealth.ps1 # the easy way to run it for WORKSTATIONS
C:\it\bin\Run-TestServerHealthForThisHost.ps1 # the easy way to run it for SERVERS
$out = C:\it\bin\Test-ServerHealth.ps1 -OutputConsoleMessages -Hide DIP # the HACKER'S way

Other

...

-
Topic revision: r234 - 17 Dec 2025, NickDemou
Copyright © enLogic