Azure / ArcEnabledServersGroupPolicy

Guidance and sample code to perform at-scale onboarding of servers to Arc via Group Policy
MIT License
9 stars 15 forks source link

Make sure copy-item works with single quotes, changed workfolder to env:systemdrive/temp instead of C:/temp #17

Closed justinytchen closed 1 year ago

justinytchen commented 1 year ago

Changed a few minor things

  1. Escaped the Enable path with single quotes, problems are caused if the path has special characters like {}
  2. Use env:systemdrive/temp to store logging instead of C:/temp, not all machines will have one
  3. Additional error checking when sending data to report server, will now err if not enough permissions
rcarboneras commented 1 year ago

LGTM, but I would change the path to this notation with a backslash character:

$workfolder = "$env:SystemDrive\temp"