Skip to content

null0000/compute-image-windows

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains Windows agents and scripts for Google Compute Engine.

This repository contains:

  • Latest Windows agent source code and binaries -- For handling user account and address management.
  • Latest version of the metadata scripts source code and binary -- For handling startup and shutdown scripts.
  • Latest sysprep scripts -- For running sysprep on new Windows virtual machines.

Installation

To install or update the Windows agent and metadata scripts on your virtual machine we recommend recreating your instance with the agent installation script hosted in this repository. With gcloud, you can recreate your instance as follows:

# Delete the instance
$ gcloud compute instances delete INSTANCE --keep-disks boot

# Restart the instance with the startup script
$ gcloud compute instances create NEW-INSTANCE --disk name=DISK boot=yes \
--metadata windows-startup-script-url=https://raw.githubusercontent.com/GoogleCloudPlatform/compute-image-windows/master/agent/install_agent.ps1

Alternatively, if you prefer not to recreate your instance, you can run the script from within the Windows virtual machine:

  1. Log into your Windows virtual machine.
  2. Download and save the agent installation script in any directory on your Windows instance.
  3. Run powershell as administrator:
  4. Click on the Start menu.
  5. Type "powershell" and right click on the first result.
  6. Select Run as administrator.
  7. In the command-line window, type Set-ExecutionPolicy Unrestricted and hit y when prompted.
  8. Run the agent install script.

For installing the latest sysprep scripts, follow the same instructions above but use the sysprep installation script:

https://raw.githubusercontent.com/GoogleCloudPlatform/compute-image-windows/master/gce/install_sysprep.ps1

Contribute

Have a patch that will benefit this project? Awesome! Follow these steps to have it accepted.

  1. Please sign our Contributor License Agreement.
  2. Fork this Git repository and make your changes.
  3. Create a Pull Request
  4. Incorporate review feedback to your changes.
  5. Accepted!

License

All files in this repository are under the Apache License, Version 2.0 unless noted otherwise.

Support

If you run into issues, email the Compute Engine team at gc-team@googlegroups.com or email the Compute Engine discussion board at gce-discussion@googlegroups.com.

About

Windows agents and scripts for Google Compute Engine images.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 63.4%
  • PowerShell 34.3%
  • Batchfile 2.3%