[Powershell] Users inlezen Poliforma hardcoded

Met onderstaande code kun je de gebruikers voor poliforma uit het boek netwerkbeheer met Smets inlezen. Wijzig de variabele indien nodig in jouw eigen domeinnaam. Zorg dat het pad bestaan en de OU’s bestaan. Import-Module ActiveDirectory #Domain name $Domain =...

Toevoegen SPL harddisk VMware workstation

Een bestaande harddisk van SPL toevoegen binnen VMwarwe workstation Kies Custom installatieHarddisk → keep existing format. (niet formateren)Netwerkaart VMnet toevoegen bij server 1 (ip instellingen → 192.168.101.11)Netwerkkaart VMnet toevoegen bij server 2 (ip...

Install Self-Signed Certificate in IIS

elow is a description on how to install and activate a Self-Signed Certificate in Microsoft’s webserver IIS. One should of course install the webserver role first before a certificate can be created. Step 1 – Create Certificate Open...

[PowerShell] Check if file exists

The script below reads an input file from the command line and then checks if it exists. If not found it keeps prompting for a correct filename. FileToRead = Read-Host “Please enter the filename” $Found = “N” Do { if (Test-Path -LiteralPath...