почему нет инфы по VLAN на интерфейсах?
или это надо включать?
хочу смотреть на каком интерфейсе какой VLAN
или это надо включать?
хочу смотреть на каком интерфейсе какой VLAN
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu$Session = New-Object -ComObject "Microsoft.Update.Session"
$Searcher = $Session.CreateUpdateSearcher()
$historyCount = $Searcher.GetTotalHistoryCount()
$a=$Searcher.QueryHistory(0, $historyCount) | Select-Object Title, Description, Date,
@{name="Operation"; expression={switch($_.operation){
1 {"Installation"}; 2 {"Uninstallation"}; 3 {"Other"}
}}} | where {$_.operation -eq "Installation"} | Select-Object -First 1
$datetimestring = Get-Date $a.Date -Format "yyyy-MM-dd hh:mm:ss"
New-Item 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update' -Name Results
New-Item 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results' -Name Install
Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install' -Name LastSuccessTime -Value $datetimestring