UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 594bdfe6 authored by Gregory Westover's avatar Gregory Westover Committed by Brandon Begley
Browse files

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

parent acd0a0ad
1 merge request!39Resolve "Uncomment the user creation code on the win-ops"
......@@ -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