Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Error during Import-Module PSRR

$
0
0

I have the below specified in my Microsoft.PowerShell_profile.ps1 file

Import-Module PSRR

and I get the below error when launching PowerShell

At C:\Users\user\Documents\WindowsPowerShell\Modules\PSRR\Set-RegMultiString.ps1:16 char:4
+         []
+          ~
Missing type name after '['.
At C:\Users\user\Documents\WindowsPowerShell\Modules\PSRR\Set-RegMultiString.ps1:15 char:39
+         [Alias('CN','__SERVER','IPAddress')]
+                                             ~
Parameter declarations are a comma-separated list of variable names with optional initializer expressions.
At C:\Users\user\Documents\WindowsPowerShell\Modules\PSRR\Set-RegMultiString.ps1:15 char:39
+         [Alias('CN','__SERVER','IPAddress')]
+                                             ~
Missing ')' in function parameter list.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : MissingTypename


I can Import-Module PSRR manually without any errors. Any idea?

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>