pan_2: (Default)
Get all available information from iLO (version 3 and newer) of HP Server with HPiLOCmdlets

#get stored credentials from clixml file
$oiLOCredentials = Import-Clixml D:\Shares\Scripts\CredentialsStore\HP-iLO_hpautomation.clixml


foreach ($oiLO in "10.7.222.218")
{
#splat connection params
$hConnectParams = @{'Credential'=$oiLOCredentials; 'Server' = "10.7.222.218"}

#get commandlet list
$aCommandsList = Get-Command -Module HPiLOCmdlets Get-HPiLO*

#execute each commandlet against address
foreach ($oCommand in $aCommandsList)
{
Write-Host $oCommand.Name -fo Yellow
& $oCommand.Name @hConnectParams | fl
}

}#end foreach $oiLO
Tags:
pan_2: (Default)
Получить список всех почтовых адресов в организации Exchange, кроме .local
Get-mailbox | select alias, EmailAddresses -expand emailaddresses | select alias, SmtpAddress | where {$_.SmtpAddress -notmatch "local"} | Export-Csv email-addresses.txt -notype
Tags:

Profile

pan_2: (Default)
pan_2

June 2017

M T W T F S S
   1234
567891011
12131415161718
19202122232425
26272829 30  

Syndicate

RSS Atom
Page generated 2017-07-20 16:41

Expand Cut Tags

No cut tags