-
thank you very much! and when i used certutil.exe to export certificate, the certificate works well.
-
I have used x509certificate2 to export certificate success, but i don't know where setting the "Personal Information Exchange-PKCS #12" option values using Powershell. thanks very much!
-
thanks for your reply, i mean how to set follow option in powershell command when i export certificate .
-
add my script. $certs=dir cert:\localmachine\my|where {$_.Subject -eq "CN=scxcmt-rhel5-06.scx.com, CN=scxcmt-rhel5-06"} $certType=[System.Security.Cryptography.X509Certificates.X509ContentType]::Pfx; $certExt="pfx"; $password=read-host -AsSecureString; $certByets=$certs.export($certType,$password); $path="C:\paul\$($certs.Thumbprint).$certExt"; [System.IO.File]::WriteAllBytes($path,$certByets);
-
hi Aleksandar, I can't received powertip since 17th Oct, could you help me? thanks! Email: jack5596@gmail.com
-
hi bader, for the JoinDomainOrWorkgroup parameter you can check follow link http://msdn.microsoft.com/en-us/library/windows/desktop/aa392154%28v=vs.85%29.aspx $null means null in powershell, and 3 means 1 + 2 . Parameters Name [in] Specifies the domain or workgroup to join. Cannot be NULL . Password [in] If the UserName parameter specifies an account name, the Password parameter must point to the password to use when connecting to the domain controller. Otherwise, this parameter must be NULL . UserName
-
Thank you very much, I modify my script as below,it's works fine. (Get-WMIObject -NameSpace "Root\Cimv2" -Class "Win32_ComputerSystem").JoinDomainOrWorkgroup("DomainName","AdminPassword","Domain\Admin",$null,3) I change the last parameter to 3 from 1, but I don't know what's mean of this number? I cannot find in technet. Could you help me ? thanks very much!
-
got it, and thank you very very much!!!!
-
thanks marco, but It not works, return code 1332.
-
I using follow script to join domain , it's failed, can anybody help me? thanks very much! (Get-WmiObject -NameSpace "Root\Cimv2" -Class "Wind32_ComputerSystem").JoinDomainOrWorkgroup("DomainName","AdminPassword","domain\Administrator",null,1)