Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New-SelfSignedCertificate will not run on Windows 7

Tags:

powershell

On a Windows 7 Professional system, it seems not possible to run New-SelfSignedCertificate. I could on a Windows 10 system.

Yes, the shell was started with "Run As Administrator."

PS C:\> new-selfsignedcertificate
new-selfsignedcertificate : The term 'new-selfsignedcertificate' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1
+ new-selfsignedcertificate
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (new-selfsignedcertificate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  117
like image 309
lit Avatar asked Apr 24 '17 15:04

lit


2 Answers

As stated in the comments above, this isn't available in Windows 7.

However, if you're looking for something with a similar API and capability, then I have used & can recommend this from Microsoft Script Centre:

https://gallery.technet.microsoft.com/scriptcenter/self-signed-certificate-5920a7c6

like image 168
Stu Avatar answered Nov 16 '22 01:11

Stu


Have to install AzureRM module to use azure commands through powershell. You can use below command to do it.

Install-Module -Name AzureRM -AllowClobber
like image 30
kalaivani Avatar answered Nov 16 '22 00:11

kalaivani