Sollicitatievraag bij Geotab

Part 2 Create a Powershell script, newGceInstance.ps1 which will do the following: Create a new GCE instance from the Windows 2012 R2 base Image Create a local admin account on the server Create a remote powershell session to the instance Copy svrInfo.ps1 from your local machine onto the instance Run the svrInfo.ps1 script on the instance and write the output to the user's screen Configure a scheduled task on the instance which will run svrInfo.ps1 on server startup and direct output to a local text file. Close the Remote PS session and write a message to the user’s console indicating that the script completed successfully. This script must take the following parameters from the user: InstanceName - Name of the GCE instance to create GceProject - Name of the GCP project where the instance is created GceZone - Name of the GCP zone where the instance is created Script - Location of svrInfo.ps1 on the user’s local machine The script should gracefully fail and output a clear message to the user in the event that the instance already exists in the project.

Antwoord op sollicitatievraag

Anoniem

17 dec 2018

Another much longer script. You will need a GCP account to do this.