Add test for Creating Account in Windows

This commit is contained in:
Swelc
2018-06-22 15:57:16 -05:00
parent 28321845a4
commit 2f828a08a1
+32
View File
@@ -45,3 +45,35 @@ atomic_tests:
dscl . -create /Users/#{username} UniqueID "1010"
dscl . -create /Users/#{username} PrimaryGroupID 80
dscl . -create /Users/#{username} NFSHomeDirectory /Users/#{username}
- name: Create a new user in a command prompt
description: |
Creates a new user in a command prompt
supported_platforms:
- windows
input_arguments:
username:
description: Username of the user to create
type: String
default: Evil Account
executor:
name: command_prompt
command: |
net user /add #{username}
- name: Create a new user in PowerShell
description: |
Creates a new user in PowerShell
supported_platforms:
- windows
input_arguments:
username:
description: Username of the user to create
type: String
default: Evil Account
executor:
name: powershell
command: |
New-LocalUser -Name #{username} -NoPassword
net user /add #{username}