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"
$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"
Other
$url="https://wiki.enlogic.gr/pub/KnowledgeBase/PublicFiles"; @("Test-ServerHealth.ps1","lib-write-log-objects.ps1","Run-TestServerHealthForThisHost.ps1") | %{ iwr -useb "$url/$_" -OutFile "c:\it\bin\$_"}
C:\it\bin\Run-TestServerHealthForThisHost.ps1
-