Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vendors:microsoft:powershell [2021/05/07 14:42] – [Stop / Start ECE Email Dispatcher Instance] gerardorourkevendors:microsoft:powershell [2024/09/10 12:28] (current) – [Handy Powershells Commands] gerardorourke
Line 1: Line 1:
 ====== Windows PowerShell ====== ====== Windows PowerShell ======
  
 +==== Self Signed Certs====
 +  *[[https://learn.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps|Creating Self Signed Certs]]
 +<code>
 +$params = @{
 +    DnsName = 'www.fabrikam.com', 'www.contoso.com'
 +    CertStoreLocation = 'Cert:\LocalMachine\My'
 +}
 +New-SelfSignedCertificate @params
 +</code>
 +  * Creates a SHA 256 Self Signed Cert with 
 +      * two Subject Alternative Names, DNS names as per above
 +      * Client and Server Authentication
 +
 +==== Other ====
   *https://www.itprotoday.com/powershell/powershell-contains   *https://www.itprotoday.com/powershell/powershell-contains
  
   *https://davidhamann.de/2019/04/12/powershell-invoke-webrequest-by-example/   *https://davidhamann.de/2019/04/12/powershell-invoke-webrequest-by-example/
   *https://4sysops.com/archives/powershell-invoke-webrequest-parse-and-scrape-a-web-page/   *https://4sysops.com/archives/powershell-invoke-webrequest-parse-and-scrape-a-web-page/
 +  * https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee692794(v=technet.10)?redirectedfrom=MSDN
 +
 +
 +==== Handy Powershells Commands ====
  
 +  * Retrieve the Hash of the files in a directory
 +      * <code>ls | get-Filehash</code> 
 =====CCE-WinServer-GatherSoftwareInfo.ps1===== =====CCE-WinServer-GatherSoftwareInfo.ps1=====
   *Install uninstall_view - https://www.nirsoft.net/utils/uninstall_view.html   *Install uninstall_view - https://www.nirsoft.net/utils/uninstall_view.html
  • vendors/microsoft/powershell.1620394978.txt.gz
  • Last modified: 2021/05/07 14:42
  • by gerardorourke