Getting error- the string is missing the terminator: “.

Edit: Here is the module

https://pastebin.com/Y19NA3dg

Here is the error

https://pastebin.com/vU07Z4f5

I trying to make this module and having an issue with a function. This is more of a learning experience on functions/modules. Whenever I import the module I get this error:

the string is missing the terminator: “.

Here is the function code in the module:

Function reset-apwd ([String]$uname) {

$newpwd = Read-Host “Enter the new password” -AsSecureString

Set-ADAccountPassword $uname -NewPassword $newpwd –Reset

Write-Host “$uname password reset”

}

I have googled the hell out of it and keep trying different ” or ( combinations. Nothing is working.

submitted by /u/solidcore87
[link] [comments]

Leave a Reply