Skip to content

Commit

Permalink
Update test.ps1
Browse files Browse the repository at this point in the history
Add security policy and sql secuirty
  • Loading branch information
zadj authored Jul 19, 2018
1 parent ac86fb6 commit a70a2fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ New-LocalUser `
-Password $password `
-PasswordNeverExpire


# add to logon as service local policy
GrantServiceLogon -username ("{0}\{1}" -f $env:USERDOMAIN, "svc1")

# set clr to sql
Invoke-Sqlcmd -Query "EXEC sp_configure 'show advanced option', '1'; RECONFIGURE; EXEC sp_configure 'clr strict security', '1';RECONFIGURE; EXEC sp_configure; "


# Declare Functions
Expand Down

0 comments on commit a70a2fd

Please sign in to comment.