UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 9ffd655d authored by Brandon Begley's avatar Brandon Begley
Browse files

Merge branch '22-uncomment-the-user-creation-code-on-the-win-ops' into 'master'

Resolve "Uncomment the user creation code on the win-ops"

Closes #22

See merge request !39
parents acd0a0ad 594bdfe6
1 merge request!39Resolve "Uncomment the user creation code on the win-ops"
Pipeline #94834 passed with stages
in 13 seconds
......@@ -139,12 +139,12 @@ resources:
# Invoke-Expression $c
#}
####
#if ("$user" -ne "student"){
# New-LocalUser -Name "$user" -Password (ConvertTo-SecureString -AsPlaintext -String "$pass" -Force)
# Add-LocalGroupMember -Group "Administrators" -Member "$user"
# #Remove-LocalUser -Name "student"
#}
# ---- Allows for creating alternate users other than student
if ("$user" -ne "student"){
New-LocalUser -Name "$user" -Password (ConvertTo-SecureString -AsPlaintext -String "$pass" -Force)
Add-LocalGroupMember -Group "Administrators" -Member "$user"
Remove-LocalUser -Name "student"
}
#### Purge at next image cycle ####
#Rename-Computer win-ops
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment