Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2020-08-13 21:12:41
Size: 1066
Editor: PieterSmit
Comment:
Revision 7 as of 2020-09-26 23:37:29
Size: 1752
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
   * Load context {{{
foreach($server in (get-content 'C:\Downloads\pilot_dev_servers.txt')){Get-ADComputer -Identity $server | select -ExpandProperty DistinguishedName}
}}}
Line 4: Line 8:
 * e.g. get-content missing, search https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/Get-Content?view=powershell-7
   * its in {{{ Import-Module Microsoft.PowerShell.Management }}}
Line 23: Line 30:

= PowerShell view user certificates =
 * {{{
> Get-ChildItem -Path "Cert:\CurrentUser\My"


   PSParentPath: Microsoft.PowerShell.Security\Certificate::CurrentUser\My

Thumbprint Subject
---------- -------
...
}}}

Windows/PowerShell Notes

  • Load context

    foreach($server in (get-content 'C:\Downloads\pilot_dev_servers.txt')){Get-ADComputer -Identity $server | select -ExpandProperty DistinguishedName}

Missing powershell commands

PowerShell view user certificates

  • > Get-ChildItem -Path "Cert:\CurrentUser\My"
    
    
       PSParentPath: Microsoft.PowerShell.Security\Certificate::CurrentUser\My
    
    Thumbprint                                Subject
    ----------                                -------
    ...

Windows/PowerShell (last edited 2022-01-26 21:34:01 by PieterSmit)