-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.ps1
33 lines (24 loc) · 885 Bytes
/
init.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<#
.SYNOPSIS
Gets your computer ready to develop the Carbon.Accounts module.
.DESCRIPTION
The init.ps1 script makes the configuraion changes necessary to get your computer ready to develop for the
Carbon.Accounts module. It:
.EXAMPLE
.\init.ps1
Demonstrates how to call this script.
#>
[CmdletBinding()]
param(
)
#Requires -Version 5.1
#Requires -RunAsAdministrator
Set-StrictMode -Version 'Latest'
$ErrorActionPreference = 'Stop'
$InformationPreference = 'Continue'
prism install
Import-Module -Name (Join-Path -Path $PSScriptRoot -ChildPath 'PSModules\Carbon' -Resolve) `
-Function 'Install-CUser', 'New-CCredential'
$username = 'CarbonTestUser1'
Install-CUser -Credential (New-CCredential -UserName $username -Password 'P@ssw0rd!')
Install-CUser -Credential (New-CCredential -UserName 'CarbonTestUser2' -Password 'P@ssw0rd!')