Skip to content

Commit 2d71cd6

Browse files
committed
fix
1 parent bf3bbf7 commit 2d71cd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

integrationtests/smb_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func randomString(length int) string {
3131

3232
func setupUser(username, password string) error {
3333
cmdLine := fmt.Sprintf(`set "PSModulePath="` +
34+
`;Import-Module Microsoft.PowerShell.Security -RequiredVersion 3.0.0.0` +
3435
`;$PWord = ConvertTo-SecureString $Env:password -AsPlainText -Force` +
3536
`;New-Localuser -name $Env:username -accountneverexpires -password $PWord`)
3637
cmd := exec.Command("powershell", "/c", cmdLine)

0 commit comments

Comments
 (0)