@@ -292,63 +292,63 @@ if ($noGui.IsPresent) {
292292 Write-Host " [+] Checking if PowerShell version is compatible (mandatory)..."
293293 $error_info = Test-PSVersion
294294 if ($error_info ){
295- Write-Host " `t [!]$error_info " - ForegroundColor Red
295+ Write-Host " `t [!] $error_info " - ForegroundColor Red
296296 $mandatoryChecksPassed = $false
297297 }
298298
299299 # Ensure script is ran as administrator
300300 Write-Host " [+] Checking if script is running as administrator (mandatory)..."
301301 $error_info = Test-Admin
302302 if ($error_info ) {
303- Write-Host " `t [!]$error_info " - ForegroundColor Red
303+ Write-Host " `t [!] $error_info " - ForegroundColor Red
304304 $mandatoryChecksPassed = $false
305305 }
306306
307307 # Ensure execution policy is unrestricted
308308 Write-Host " [+] Checking if execution policy is unrestricted.. (mandatory)."
309309 $error_info = Test-ExecutionPolicy
310310 if ($error_info ) {
311- Write-Host " `t [!]$error_info " - ForegroundColor Red
311+ Write-Host " `t [!] $error_info " - ForegroundColor Red
312312 $mandatoryChecksPassed = $false
313313 }
314314
315315 # Check if Windows < 10
316316 Write-Host " [+] Checking Operating System version compatibility..."
317317 $error_info = Test-WindowsVersion
318318 if ($error_info ) {
319- Write-Host " `t [!]$error_info " - ForegroundColor Yellow
319+ Write-Host " `t [!] $error_info " - ForegroundColor Yellow
320320 $script :checksPassed = $false
321321 }
322322
323323 # Check if host has been tested
324324 Write-Host " [+] Checking if the Operating System has been tested..."
325325 $error_info = Test-TestedOS
326326 if ($error_info ) {
327- Write-Host " `t [!]$error_info " - ForegroundColor Yellow
327+ Write-Host " `t [!] $error_info " - ForegroundColor Yellow
328328 $script :checksPassed = $false
329329 }
330330
331331 # Check if system is a virtual machine
332332 Write-Host " [+] Checking if the system runs on a Virtual Machine..."
333333 $error_info = Test-VM
334334 if ($error_info ) {
335- Write-Host " `t [!]$error_info " - ForegroundColor Yellow
335+ Write-Host " `t [!] $error_info " - ForegroundColor Yellow
336336 $script :checksPassed = $false
337337 }
338338
339339 # Check for spaces in the username, exit if identified
340340 Write-Host " [+] Checking for spaces in the username... (mandatory)"
341341 $error_info = Test-SpaceUserName
342342 if ($error_info ) {
343- Write-Host " `t [!]$error_info " - ForegroundColor Red
343+ Write-Host " `t [!] $error_info " - ForegroundColor Red
344344 $mandatoryChecksPassed = $false
345345 }
346346
347347 # Check if host has enough disk space
348348 Write-Host " [+] Checking if host has enough disk space..."
349349 $error_info = Test-Storage
350350 if ($error_info ) {
351- Write-Host " `t [!]$error_info " - ForegroundColor Yellow
351+ Write-Host " `t [!] $error_info " - ForegroundColor Yellow
352352 $script :checksPassed = $false
353353 }
354354
0 commit comments