We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3bbf7 commit 2d71cd6Copy full SHA for 2d71cd6
integrationtests/smb_test.go
@@ -31,6 +31,7 @@ func randomString(length int) string {
31
32
func setupUser(username, password string) error {
33
cmdLine := fmt.Sprintf(`set "PSModulePath="` +
34
+ `;Import-Module Microsoft.PowerShell.Security -RequiredVersion 3.0.0.0` +
35
`;$PWord = ConvertTo-SecureString $Env:password -AsPlainText -Force` +
36
`;New-Localuser -name $Env:username -accountneverexpires -password $PWord`)
37
cmd := exec.Command("powershell", "/c", cmdLine)
0 commit comments