Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
DeploymentBunny committed Apr 2, 2017
1 parent 7d4d400 commit acea065
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tools/Create-ADUserDemo/ImportUsers.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#Read data from Bootstrap XML
$settings = "C:\setup\Files\Tools\Create-ADUserDemo\settings.xml"
[xml]$settings = Get-Content $BootstrapFile -ErrorAction Stop

$Users = $settings.Settings.Users.User | Where-Object -Property Active -EQ $True
Foreach($User in $Users){
$User
}
14 changes: 14 additions & 0 deletions Tools/Create-ADUserDemo/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Settings>
<Users>
<User Name="admminy">
<Active>False</Active>
<FirstName>Mikael</FirstName>
<LastName>Nyström</LastName>
</User>
<User Name="admmala">
<Active>True</Active>
<FirstName>Markus</FirstName>
<LastName>Lassfolk</LastName>
</User>
</Users>
</Settings>

0 comments on commit acea065

Please sign in to comment.