Home > OS >  Localmachine certificate in the directory delete (powershell)
Localmachine certificate in the directory delete (powershell)

Time:09-29

Consult a great god
$datet2='2117/1/1
'The Get - ChildItem cert: \ localmachine \ SMS | where - object {$_. Notafter - ge $datet2} | remove - item
To delete the SMS directory above the certificate of operation after 2117, powershell3.0 above perform no problem, but in 2.0 environment, will be prompted to remove - item this command has a problem, should be powershell2.0 does not support this command, powershell2.0 inside how to achieve this, please delete the certificate,

CodePudding user response:

Powershell2.0 does not support this command? Want to see this command in a directory,,,
  • Related