Slow mac/nic/fqdn VM with powercli report...

Hello

I made this script to get all the VMs, full name, mac address, generating type

It takes about 5 minutes to run when I run it on 250 virtual machines on a single vCenter, anyway to make it go faster?

The customer wanted to get the name of the virtual machine and the host name of the virtual machine itself because they could defer incase someone doesn't not the installation procedures.

The customer has a u1 4.1 vSphere environment

# Get the virtual network adapter
#
# Niklas Åkerlund / RTS

$VMs = get - VM *.
$Data = @)

{foreach ($VM to $VMs)
$VMGuest is get-view $VM. ID
$NICs = $VM.NetworkAdapters
{foreach ($NIC to $NICs)
$into = new-Object PSObject
Add-Member - InputObject $into - MemberType NoteProperty-Name VMname $VM. Name
Add-Member - InputObject $into - MemberType NoteProperty-name VMfqdn $VM. Guest.HostName
Add-Member - InputObject $into - MemberType NoteProperty-name NICtype $NIC. Type
Add-Member - InputObject $into - MemberType NoteProperty-Name $NIC MacAddress. MacAddress
Add-Member - InputObject $into - MemberType NoteProperty-name AddresType $NIC. ExtensionData.AddressType
$Data = $into

}

}
$Data | Export-Csv-path C:\VMNICinfo2.csv - NoTypeInformation

Hello, niklasak-

Yes, you can do it faster by using just the Get-views, instead of use Get-VM as well.  Not too different from your script in appearance (you have already used Get-view some), but much faster:

&{Get-View -ViewType VirtualMachine -Property Name, Guest.HostName, Config.Hardware.Device | %{    $viewThisVM = $_    $viewThisVM.Config.Hardware.Device | ?{$_ -is [VMware.Vim.VirtualEthernetCard]} | %{        New-Object -Type PSObject -Property @{            VMname = $viewThisVM.Name            VMfqdn = $viewThisVM.Guest.HostName            NICtype = $_.GetType().Name            MacAddress = $_.MacAddress            AddressType = $_.AddressType        } ## end new-object    } ## end foreach-object} ## end foreach-object} | Select VMname,VMfqdn,NICtype,MacAddress,AddressType | Export-Csv -Path C:\VMNICinfo2.csv -NoTypeInformation -UseCulture

In a test with about 350 VM environment, it took about five seconds.  The previous path took 7.5 minutes (447 seconds) in this environment.  Thus, it was about ninety 90 times more fast - not bad.  Should be a little lighter on the memory consumption, too.  If you are looking for speed, stick to Get - view (and specifying only the properties necessary) is a great way to go.

How does he for you?

Tags: VMware

Similar Questions

  • Need help with powercli report - thin disk

    Hello

    As always, the forums here have given me what I need, and I learned a lot. However my knowledge of script is still not at the level where I can combine all I learned. I would appreciate help.

    Basically, I want to write a report that shows the configuration of each computer drive virtual MORE stocked the size of the disc if the disc is thin.

    Currently, I have the following two pieces of code that run completely separately.

    1 - show me the size committed

    $report = @)
    #$allvms = get - VM
    {foreach ($vm to $allvms)
    $vmview = $vm | Get-View
    foreach ($disk in $vmview. Storage.PerDatastoreUsage) {}
    $dsview = (get-view $disk. Data store)
    $dsview. RefreshDatastoreStorageInfo()

    $row = "" | Select VMNAME DATASTORE, VMSIZE_GB, VMUSED_GB %
    $row. VMNAME = $vmview. Config.Name
    $row. DATA store is $dsview. Name
    $row. VMSIZE_GB = (($disk.Committed+$disk.Uncommitted)/1024/1024/1024)
    $row. VMUSED_GB = (($disk.Committed)/1024/1024/1024)
    $row. P = [int] (($row.)) VMUSED_GB / $row. (VMSIZE_GB) * 100)
    $report += $row
    }
    }
    $report | Out-GridView

    2nd - produces the majority of the report

    $report = @)
    $report = {foreach ($vm to $ALLVMs)
    Get-disk hard $vm | Select @{N = 'The virtual computer name'; E = {$vm. Name}},
    @{N = "RDM Name"; E = {($_ | where {"RawPhysical", "RawVirtual"-contient $_.)} DiskType}). File name}}.
    @{N = 'Data store name'; E = {($_ | where {"RawPhysical", "RawVirtual"-notcontains $_.)} DiskType}). Filename.Split(']') [0]. TrimStart('[')}},
    @{N = 'Name of the HD'; E={$_. Name}},
    @{N = 'Size of HD GiB'; E={$_. CapacityKB/1 MB}},
    @{N = "Format"; E={$_. StorageFormat}},
    @{N = "Clerk disk"; {E = {$_.Committed}}.
    @{N = 'Memory'; E={ }},
    Get - VM $vm | Select @{N = 'Memory'; E = {$vm. MemoryMB}}

    }

    $report | Out-GridView

    Thanks to those who submitted the code above, I changed a bit!

    Ideally, the 2nd report would contain a "Committed disk" column which shows the < committed > according to code 1.

    Any help or pointers gladly accepted.

    Unless you have a 1 vdisk in line with the strategy of the data (as already mentioned Conrad) store, I'm afraid, it's impossible

  • Operation of slow Mac after El Capitan! Report EtreCheck

    Anyone can identify possible issues, causing my macbook run ridiculously slow after upgrade! Same opening new tabs in safari take ages and gets the same turns beach ball by typing this message now Im getting gel between the words!

    EtreCheck version: 3.0.3 (307)

    Report generated 2016-09-01 22:06:39

    Download EtreCheck from https://etrecheck.com

    Time 06:02

    Performance: Below average

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Problem: Computer is too slow

    Hardware Information:

    MacBook Pro (13-inch, mid-2012)

    [Data sheet] - [User Guide] - [warranty & Service]

    MacBook Pro - model: MacBookPro9, 2

    1 2.5 GHz Intel Core i5 CPU: 2 strands

    8 GB of RAM expandable - [Instructions]

    BANK 0/DIMM0

    OK 4 GB DDR3 1600 MHz

    BANK 1/DIMM0

    OK 4 GB DDR3 1600 MHz

    Bluetooth: Good - transfer/Airdrop2 taken in charge

    Wireless: en1: 802.11 a/b/g/n

    Battery: Health = Normal - Cycle count = 285

    Video information:

    Graphics Intel HD 4000

    Color LCD 1280 x 800

    Software:

    OS X El Capitan 10.11.6 15G (31) - since the start time: about 3 days

    Disc information:

    HTS545050A7E362 disk HARD APPLE disk0: (500,11 GB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    Macintosh HD (disk 1) /: 498,88 (Go 115,67 free)

    Storage of carrots: disk0s2 499.25 GB Online

    HL-DT-ST DVD - RW GS41N)

    USB information:

    Apple Inc. Apple keyboard / Trackpad

    Computer, Inc. Apple IR receiver.

    Apple Inc. BRCM20702 hub.

    Apple Inc. Bluetooth USB host controller.

    Apple Inc. FaceTime HD camera (built-in)

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    Configuration files:

    / etc/hosts - Count: 15

    Guardian:

    Mac App Store and identified developers

    Kernel extensions:

    / Applications/Toast Titanium/Spin Doctor.app 11

    [no charge] com.hzsystems.terminus.driver (4-2014-11-15) [Support]

    / Applications/Toast Titanium/Toast Titanium.app 11

    com.roxio.BluRaySupport [no charge] (1.1.6 - 2015-03-23) [Support]

    com.roxio.TDIXController [no charge] (2.0 - 2015-03-23) [Support]

    / Library/Extensions

    [loading] com.avira.kext.FileAccessControl (1.2.2 - SDK 10.9-2016-08-28) [Support]

    / System/Library/Extensions

    com.leapfrog.codeless.kext [no charge] (2.0 - 2016-08-28) [Support]

    com.leapfrog.driver.LfConnectDriver [no charge] (1.11.1 - SDK 10.10 - 2016-08-28) [Support]

    Launch system officers:

    [no charge] 6 tasks Apple

    [loading] 154 jobs Apple

    [running] Apple 78 jobs

    Launch system demons:

    [no charge] 47 Apple jobs

    tasks of Apple 152 [loading]

    Apple tasks 91 [performance]

    Launch officers:

    [loaded] com.adobe.AAM.Updater - 1.0.plist (2014-07-22) [Support]

    [cannot] com.adobe.CS5ServiceManager.plist (2014-07-22) [Support]

    [loading] com.avira.antivirus.general.agent.plist (2016-01-21) [Support]

    [loading] com.avira.antivirus.ipm.ui.plist (2016-01-21) [Support]

    [loading] com.avira.antivirus.notifications.agent.plist (2016-01-21) [Support]

    [loading] com.avira.antivirus.odscan.default.plist (2016-08-22) [Support]

    [loading] com.avira.antivirus.scheduler.agent.plist (2016-01-21) [Support]

    com.Avira.antivirus.Systray.plist [running] (2016-01-21) [Support]

    [loading] com.avira.antivirus.telemetry.agent.plist (2016-01-21) [Support]

    com.Avira.antivirus.update.default.plist [running] (2016-01-21) [Support]

    com.Avira.helper.avstats.plist [running] (2016-01-21) [Support]

    [loading] com.oracle.java.Java - Updater.plist (2014-07-22) [Support]

    Launch demons:

    [loading] com.adobe.SwitchBoard.plist (2014-07-22) [Support]

    [loading] com.adobe.fpsaud.plist (2016-06-29) [Support]

    [loading] com.avira.antivirus.dbcleaner.plist (2016-01-21) [Support]

    [loading] com.avira.antivirus.ipm.loader.plist (2016-01-21) [Support]

    com.Avira.helper.watchdox.plist [running] (2016-01-21) [Support]

    [loading] com.leapfrog.connect.authdaemon.plist (2015-01-05) [Support]

    [loading] com.microsoft.office.licensing.helper.plist (2010-08-25) [Support]

    [loading] com.oracle.java.Helper - Tool.plist (2014-07-22) [Support]

    User launch officers:

    com.leapfrog.connect.monitor.plist [running] (2015-01-05) [Support]

    com.spotify.webhelper.plist [running] (2016-08-19) [Support]

    [loading] com.valvesoftware.steamclean.plist (2015-01-26) [Support]

    Items in user login:

    iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

    Photo Stream URL SMLoginItem (/ Applications/iPhoto.app/Contents/Library/LoginItems/PhotoStreamAgent.app)

    Plug-ins Internet:

    FlashPlayer - 10.6: 22.0.0.209 - SDK 10.9 (2016-08-14) [Support]

    QuickTime Plugin: 7.7.3 (2016-07-09)

    Flash Player: 22.0.0.209 - SDK 10.9 (2016-08-14) [Support]

    Default browser: 601 - SDK 10.11 (2016-07-09)

    SharePointBrowserPlugin: 14.0.0 (2010-08-25) [Support]

    Silverlight: 5.1.30514.0 - SDK 10.6 (2014-08-27) [Support]

    JavaAppletPlugin: Java 8 update 101 build 13 (17 / 08 / 2016) check the version of

    Safari extensions:

    AdBlock - BetaFish, Inc. - https://getadblock.com (2016-07-24)

    3rd party preference panes:

    Flash Player (2016-06-29) [Support]

    Growl (2014-07-22) [Support]

    Java (2016-08-17) [Support]

    Perian (2011-07-23) [Support]

    Time Machine:

    Time Machine not configured!

    Top of page process CPU:

    13% worker avbackendproxy (updated)

    7% kernel_task

    4% WindowServer

    1% AV_Scheduler

    1% avguard-ondemand-mgmt

    Top of page process of memory:

    680 MB kernel_task

    582 MB update_dyld_shared_cache

    Savapi 434 MB

    270 MB mdworker (19)

    Avguard.bin 246 MB

    Virtual memory information:

    633 MB free RAM

    used 7.38 GB RAM (3.96 GB being cached)

    156MO used Swap

    Diagnostic information:

    1 September 2016, /Library/Logs/DiagnosticReports/firefox_2016-09-01-215632_[redacted].hang 21:56:32

    /Applications/Firefox.app/Contents/MacOS/Firefox

    Uninstall your anti-malware software and quit (crushed) Firefox first.

    Ways to help make a slow Mac faster

    1. 17 reasons why your Mac runs slower than expected
    2. Slow performance of Mac? This Article addresses!
    3. Difficulty of slow start in OS X | MacFixIt - CNET Reviews
    4. How to fix the slow down time and start. | MacTip.net
    5. 6 easy tips to speed up OS X Yosemite on your Mac.

    Avoid using third-party cleaning software. This software does more harm than good. You don't need it. All computers become slower over time even in normal conditions of use. Experienced users erasing the hard drive and do a clean install from scratch, from time to time; or every time that the installation of a major update of the OS. Do means if you must maintain regular and several backups.

    Add more RAM or reduce the number of simultaneously executed from applications and utilities. Delete unnecessary anti-malware software and any software that promises to clean your Mac. Look for the runaway process: Runaway applications can shorten the battery life, affect performance and increase the heat and fan activity. Also, visit The FAQ XLab and read the FAQ on the treatment with The Spinning Beach Ball of Death.

    The ultimate solution

    Back up everything, wipe the drive, reinstall OS X and restore your data from backup. Reinstall the third-party software of original/zero media.

    You should look over the Etrecheck report and see if you notice anything.

  • Override the port NIC teaming with powercli group?

    Hi all

    Any chance you could lend a hand?

    I have a powercli script that goes out to all of my ESX 4.0 host and add a new port group to vswitch1 with a new VLAN ID. That works well, but I also need to override the NIC teaming on this port group, to set an active NIC and the other to be the backup. (we put NIC failover port groups not the vswitches).

    I see ways to change NIC vswitches grouping settings, but am yet to find a way to change the settings of the NIC collection for groups of ports themselves with powercli?

    Can someone shine a light?

    Thank you

    Try something like:

    Get-VirtualPortGroup-name '' | Get-NicTeamingPolicy | Game-NicTeamingPolicy - MakeNicActive "vmnic1" - MakeNicStandby "vmnic0".

    I hope this helps!

  • Average throughput of the network to a virtual machine with PowerCLI

    I would get average network throughput for a virtual machine with PowerCLI including all e-cards, the virtual machine has for the last week (not including NFS or storage of traffic-related).

    How best should add this report:

    Get - vm myvm | Select name, numcpu

    Thank you!

    Try like this

    Get-VM | Select Name, @{N="Avg Network Throughput MBPs";E={    [math]::Round((Get-Stat -Entity $_ -Start (Get-Date).AddDays(-7) -Stat "net.throughput.usage.average" |    where {$_.Instance -eq ""} |    Measure-Object -Property Value -Average | Select -ExpandProperty Average)/1KB,2)}}
    

    The script takes the aggregate value for all NICs for (the one where the Instance is an empty string).

    Then we take the average and converts the Kbps, Mbps.

  • I'm on a macbook pro, and without knowing it, I turned to the vault of fire during a software update. The encryption process has begun. If I can't decipher, which will make my slow mac? or encryption is slow mac anyway?

    Hello

    I'm on macbook pro 13-inch (mid-2012), and without knowing it, I turned on the Arch of fire during a software update (El Capitan 10.11.5). The encryption process has started and if I don't want to read more, which will make my slow mac? or encryption is slow mac anyway?

    or at the end of the encryption process, my mac is slow?

    waiting for a quick response.

    Thank you

    Prosunkanti Sengupta

    I have a MacBook Air with active FileVault 2012. There is no significant difference in performance. Note, however, that there will be a performance impact until the original encryption is complete and that it doesn't have a way to stop it.

  • PowerCLI reporting CPO

    Hi all

    I am a novice user of CPO and I'm currently loaded with some of my scripts powershell/powercli reporting converting CPO process.

    Current configuration: CPO central server running on the Windows at various locations management servers. CPO allows me to perform tasks PowerCLI against these servers (hooray!), but I really have no idea how to do to get the results of this activity powercli in something else.

    To clarify, one of the objectives is to recover some data (for example, get - vm) and which records in a database of trend following. So far, I got the powercli activity to run on the destination windows server and successfully run against its respective vCenter server. But my lack of knowledge within the OHC is limiting me to do great thing else!

    Is it possible to pass the objects recovered activity powercli to another activity within the CPO process? Or will I have to dump all the data in CSV format on the windows management server and then use another activity to read this file and send it to SQL? I notice that the powercli activity has an 'exit' tab, but I can't find any documentation on the use of this activity.

    Thank you!

    I'm not quite sure what VMware powershell CLI version. I was talking to the generic run powershell CLI which also seems to be used in a little of the solution of the IAC. However, I think that Derek Evans or Warren Ackerman would have an idea / some experience to draw from and help.

    -shaun

  • count the number of targets, devices and paths by hba for each host with powercli 5.5

    Hi all

    I'm writing this Question again in the community, was not able to found the answer I was looking for in the nets:

    https://communities.VMware.com/thread/516226?start=0 & tstart = 0

    https://communities.VMware.com/thread/293531

    I went through the scripts provided in the community, but seems that t not work on powercli 5.5.

    ///

    # The target account, devices and paths for each host

    Get-Cluster $cluster | Get-VMHost | Sort-Object-property name. {ForEach-Object

    $VMHost = $_

    $VMHost | Get-VMHostHba-type FibreChannel | Sort-Object-property device | {ForEach-Object

    $VMHostHba = $_

    $ScsiLun = $VMHostHba | Get-ScsiLun

    If {($ScsiLun)

    $ScsiLunPath = $ScsiLun | Get-ScsiLunPath | `

    Where-Object {$_.} Name - like "$($VMHostHba.Device) *"} ".

    $Targets = ($ScsiLunPath |) »

    Group-object - property SanID | Measure - Object). County

    $Devices = ($ScsiLun |) Measure - Object). County

    $Paths = ($ScsiLunPath |) Measure - Object). County

    }

    Else {}

    $Targets = 0

    $Devices = 0

    $Paths = 0

    }

    $Report = "" | Select-Object - property VMHost, HBA, target devices, paths

    $Report.VMHost = $VMHost.Name

    $Report.HBA = $VMHostHba.Device

    $Report.Targets = $Targets

    $Report.Devices = $Devices

    $Report.Paths = $Paths

    $Report

    }

    }

    ///

    I went through the script LucD posted below: but it's not exactly what I'm looking for.

    LucD : can you please change the same for me please.   to count the number of paths per hba for each host with powercli 5.5, devices and targets.

    //

    $esx = get-VMHost < host name >

    foreach ($hba to (VMHostHba Get - VMHost $esx - type "FibreChannel")) {}

    $target = ((get - see $hba. VMhost). Config.StorageDevice.ScsiTopology.Adapter | where {$_.} Adapter - eq $hba. Key}). Goal

    $luns = get-ScsiLun - Hba $hba - LunType 'disk '.

    $nrPaths = ($target | % {$_.}) Lun.Count} | Measure - Object - sum). Sum

    Write-Host $hba. Device ' target: ' $target. County "devices:" $luns. County ' path: ' $nrPaths

    }

    //

    I'll be grateful for any help.

    Tarun Gupta

    Try something like this

    {foreach ($esx in Get-VMHost)

    foreach ($hba to (VMHostHba Get - VMHost $esx - type "FibreChannel")) {}

    $target = ((get - see $hba. VMhost). Config.StorageDevice.ScsiTopology.Adapter | where {$_.} Adapter - eq $hba. Key}). Goal

    $luns = get-ScsiLun - Hba $hba - LunType "disk" - ErrorAction SilentlyContinue

    $nrPaths = ($target | % {$_.}) Lun.Count} | Measure - Object - sum). Sum

    $props [ordered] = @ {}

    VMHost = $esx.name

    HBA = $hba. Name

    Target = $target. County

    Device = $luns. County

    Path = $nrPaths

    }

    New-object PSObject-property $props

    }

    }

  • To connect to vCenter using the same Session with PowerCLI

    Hi all

    Is it possible that we can establish multiple connections to vCenter using the same session with Powercli.

    As connect-viserver-Server "vcenter1" - domain\domainacnt of the username-password "Password".

    is to establish several connections and we want to limit, because we are in the process of report generation based on the web developing using Powercli with IIS.

    Please suggest.

    You can use the Session parameter on the cmdlet Connect-VIServer .

    I use this for the PowerShell Workflows, see workflow of PowerShell and PowerCLI

  • List of places scrape with powercli

    Hello

    I'm trying to script with powercli, but I'm not very good

    My goal is to list the location of the scratch for all my esx servers, and to link this information with the

    name of data store if possible. I want a file html with the following information:

    Get-VMHost-name * | Get-VMHostAdvancedConfiguration-name of the "ScratchConfig.ConfiguredScratchLocation".

    Get-VMHost-name * | Get-VMHostAdvancedConfiguration-name 'ScratchConfig.CurrentScratchLocation ' |

    ConvertTo-HTML | Out-file C:\myfile.html

    I don't see this script.

    If someone can help me...

    Thank you

    Try something like this

    $scratch="ScratchConfig.ConfiguredScratchLocation"&{foreach($esx in Get-VMHost){  Get-AdvancedSetting -Entity $esx -Name $scratch |  Select @{N="ESXi";E={$esx.Name}},Value}} | ConvertTo-Html | Out-File C:\report.html
    
    Invoke-Item c:\report.html
    
  • Complete the VI Client with PowerCLI Script idle Sessions

    Hello gurus PowerCLI

    I searched the net for a script PowerCLI that would end all the VI client sessions that have been inactive for x period of time.  I found a post on the forums of VMware (http://communities.vmware.com/message/914858?z=zI0r8n) but had no luck with it.  I also found a script created by A.Mikkelsen, to http://www.amikkelsen.com/?p=384 , but that one does not work either.

    Here's the actual script by A.Mikkelsen that is based on code by LucD in the forum mentioned previously.

    BEGINNING

    ##################################################################################
    # The script terminates all sessions if idle idle user for more than xx #.
    #                             #
    # Created by: Anders Mikkelsen, 2010 #.
    ##################################################################################
    Claire
    # Add - PSSnapin VMware.VimAutomation.Core

    # $server = "vcenter server.
    # $user = "vcenter username.
    # $pwd = "password of vcenter.

    # Add 1 extra hour when, due to the difference of timestamp between MSSQL and Windows.
    # slow down time 5 hours = 360
    # 10 hours slowed = 660
    $intOlderThan = 60

    # Connect-VIServer $server - user $user-password $pwd
    # Connect-VIServer $server

    $svcRef = new-object VMware.Vim.ManagedObjectReference
    $svcRef.Type = 'ServiceInstance.
    $svcRef.Value = 'ServiceInstance.
    $serviceInstance = get-views $svcRef

    $sessMgr = get-view $serviceInstance.Content.sessionManager
    $oldSessions = @)
    {foreach ($sess in $sessMgr.SessionList)}
    If (($sess.)) (LastActiveTime) .addminutes ($intOlderThan) - lt (Get-Date)) {}
    $oldSessions += $sess. Key
    #write "$($sess.)". User name)'
    }
    }

    # Session terminal that are inactive for more than approved ($intOlderThan)
    $sessMgr.TerminateSession ($oldSessions)

    Disconnect-VIServer *-confirm: $false

    END

    The error message I get is:

    BEGINNING

    Exception calling 'TerminateSession' with '1' or the arguments: "it was not correct to specified parameters.

    "

    D:\Scripts\vc_terminate_idle_sessions.ps1:36 char: 26

    + $sessMgr.TerminateSession < < < < ($oldSessions)

    + CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)

    + FullyQualifiedErrorId: DotNetMethodException

    END

    I should mention that my knowledge of PowerCLI is almost nothing, so any help in tweaking this script to make it work with PowerCLI 5.1 Release 2 and VC 5 U2 would be much appreciated.

    The error is caused by the fact that you are trying to kill your own session (if it was started long time ago).

    Apparently in vSphere 5. they included a security mechanism integrated to avoid this.

    You can take this by adding a simple test.

    ## max number of idle minutes for sessions to keep$intOlderThan = 60$serviceInstance = Get-View 'ServiceInstance'## get the session manager object$sessMgr = Get-View $serviceInstance.Content.sessionManager## array to hold info about stale sessions$oldSessions = @()foreach ($sess in $sessMgr.SessionList){    if (($sess.LastActiveTime).addminutes($intOlderThan) -lt (Get-Date) -and          $sess.Key -ne $sessMgr.CurrentSession.Key){        $oldSessions += $sess.Key    } ## end if} ## end foreach
    
    ## if there are any old sessions, terminate them; else, just write message to the Warning streamif (($oldSessions | Measure-Object).Count -gt 0) {    ## Terminate sessions than are idle for longer than approved ($intOlderThan)    $sessMgr.TerminateSession($oldSessions)} ## end ifelse {Write-Warning "No sessions that have been idle for more than '$intOlderThan' minutes; no action taken"}
    
  • How I check my Mac, applications are compatible with the Sierra?

    How can I ensure that my Mac, applications are compatible with Sierra FRONT update?

    I read that some applications may not work more on macOS Sierra abandoned because of the garbage man.  Only thing I found was to use the command terminal otool - oV Applications/PROGRAMMNAME.app/Contents/MacOS/PROGRAMMNAME | tail - 3 to verify an application but I'd have to type that in hundreds of applications - is not good.

    You can see http://roaringapps.com/apps?platform=osx.

    If you want to check your applications manually, you can run this AppleScript:

    paragraphs of the allApps value (the shell script ' find/Applications / - name \"*.app\ '-maxdepth 2 |" ") SED EI \"s/\\(.*\\)\\/\\([^\\/]*\\).app/\\2/g\" ")

    Set compatibleApps to {}

    Set incompatibleApps to {}

    Repeat with PAP in allApps

    set this to the script ' otool - oV "shell & city form of (' / Applications /" PAP ".app/Contents/MacOS/" & PAP) & "|" tail - 3"

    If this contains "OBJC_IMAGE_SUPPORTS_GC" then

    Copy at the end of incompatibleApps PAP

    on the other

    Copy at the end of compatibleApps PAP

    end if

    end repeat

    -If you want a dialog box to view the compatible/incompatible applications

    compatibleString the value «»

    incompatibleString the value «»

    Repeat with theItem in compatibleApps

    "the value compatibleString compatibleString & item &"

    "

    end repeat

    Repeat with theItem in incompatibleApps

    "the value incompatibleString incompatibleString & item &"

    "

    end repeat

    Tell me to display the dialog box "compatible apps:

    "& compatibleString

    Tell me to display the dialog box "incompatible apps:

    "& incompatibleString

  • The bluetooth MAC keyboard also works with a PC?

    The bluetooth MAC keyboard also works with a PC?

    Maybe, but there are disadvantages > http://www.tomshardware.com/forum/193169-28-does-apple-wireless-keyboard-work

  • What Mac Mini for use with Adobe CC?

    Hello

    I thought about getting a Mac Mini to use with a Wacom Cintiq Display(either 22HD or 27QHD) and I was wondering what would be best for the execution of the Adobe programs.

    It seems that most of the people prefer the 2012 Mac mini with the quad core as opposed to the current gen using two hearts.

    This brings me to two questions:

    I see a huge difference between the quad core and dual core in the adobe programs?

    8 GB RAM is enough or should I opt for 16 GB?

    Otherwise, the mac mini may be a poor choice for what I would do, so any feedback is appreciated!

    Thank you!

    What Adobe suggest to their CC minimum specifications in OS X, it

    should not be necessary to buy a quad-core (they say that it would use all the cores).

    A set of Photoshop CC system requirements suggest higher specs than one

    Another help page for Adobe. This page shows the highest specifications, but can

    not reflect the version that you are considering:

    •Photoshop CC 2015.x system requirements and languages

    https://helpx.Adobe.com/Photoshop/system-requirements.html

    If for some reason you happen across a 2012 end i7 2.3 or 2.6 GHz quad with

    two 1 TB hard drives, they would be more easily upgraded to run an SSD and

    keep a rotating disc; or install two SSDs. between that and 16 GB of RAM, these

    should do a quick little computer. Rotational hard drives are the bottleneck.

    But probably not necessary for Adobe photoshop CC. The graphics processor

    is a limitation if you use intense graphic applications. GPU shares

    standard memory with the system; From memory, there is little or no dedicated graphics.

    Although I have a Late 2012 Mac Mini i7 2.3 GHz quad-core (server) with double 1 TB

    5400 RPM hard drive and RAM upgraded to 16 GB total rotation. It can

    Use at least one drive upgraded to 7200 rpm or SSD drive more efficient.

    The Mac Mini which is online store (check to see if there is an official refurb)

    in the middle to upper technical version may be OK. The top level because of the upgrade

    options in the configuration page (select to buy it, then see what options exist)

    might be OK. The lower spec Mini doesn't seem to be viable for serious users.

    New versions available now, because, you choose the configuration when

    you order the computer: you buy an upgrade level you think you might need.

    Memory is affixed, then exercise your ESP skills to look ahead, before buying.

    The new Mac Mini 'top model' has better graphics than model end 2012.

    An advantage for the Mini is you can choose monitors, peripherals, etc. An old

    new stock Mini would have some OS X who was active as a base level.

    Since none of these units have a system backup media. Is online recovery there.

    My Mini comes with the Mavericks 10.9; 10.9.5 functioning properly. Partitioned,

    the discs could dualboot mulitple systems and their applications more recent specifications.

    (You can pay like nine awards for the end of 2012 Mini i7 quad, used clean-shaped).

    I had considered to be a non - retina MacBook Pro 13 inch 2.5 GHz for once.

    It was the time when they were more common in the 'special offers' Apple

    refurb store page online at decent price; then buy RAM upgrade later.

    In any case, this has become a long rant a few detours or details were

    omitted for the sake of clear path back to the main topic. Since I was late

    2012, mac Mini and it's more of the half upgraded for most all that he can do

    I would probably say try a. If you can find a new one at a fair cost.

    If the cost is too high, you can get a new Mac Mini to higher specification

    the Apple Store. They are dual-core. Adobe applications do not seem to need

    the advantage of the use of quad-core processors or. (these run virtual cores, too;)

    so if you have the appropriate application, the quad core turn eight - virtual.)

    The option AppleCare extended warranty covers to buy new equipment.

    It would have supplied with El Capitan, if the current new stock. This fall, there may be macOS

    Sierra - if you happen to get that stock again - at the end of the year. Not sure

    If or when the hardware upgrade version configurations may appear.

    Anyway, it's more a kind of letter. Sorry about that...!

  • My mac don't pair with Bose speaker

    MY Mac don't pair with Bose speakers.

    Bluetooth won't discover the device

    Hi Pmacsix,

    Welcome to the communities of Apple Support! I'm sorry to hear you're having these problems with your MacBook Pro and Bose speakers. If you have any question of pairing a Bluetooth audio device to your Mac, you can find information and troubleshooting procedures described in the following articles useful:

    OS X El Capitan: Configure Bluetooth audio devices

    OS X: Bluetooth devices no longer - Apple Support

    Concerning

Maybe you are looking for