Vmware Horizon Default Printer keeps changing.

This post was originally published on this site

HI,

 

I have been working on this issue for about 3 months. I did every suggestion and option on this forum but none of them worked for me.

 

The problem is;

 

I have some GPOs that maps network printers to the users and they all use different printers so they set the closest one( or which one they want to print) as default. But next logon the default printer turns back to print to pdf.

 

What i tried;

 

UEM network printer

 

[IncludeRegistryTrees]

 

HKCUPrinters

 

HKCUSoftwareMicrosoftWindows NTCurrentVersionDevices

 

HKCUSoftwareMicrosoftWindows NTCurrentVersionPrinterPorts

 

 

[IncludeIndividualRegistryValues]

 

HKCUSoftwareMicrosoftWindows NTCurrentVersionWindowsDevice

 

HKCUSoftwareMicrosoftWindows NTCurrentVersionWindowsUserSelectedDefault

 

Disabled TP Services

Export default printer and import on next logon

Disabled printer redirection

Tried all reg fixes on this forum

 

I didnt tried all the options at the same time.

 

I dont have any default printer push policy or anything like that.

 

I dont want to use gpo or uem printer mapping to set the default printer bc i have to many users in the same department use different printers. I need to create 12-13 printer map policy or uem printer mapping.

 

There must be a easy thing to do this. I already have Horizon 6 with linked clones and we use windows 7. We never had this issue.

 

 

Environment

 

Horizon 7.7

Uem 9.7

App Volumes 2.16 (Profile only)

Linked Clones (Refresh)

Windows 10 Ent. 1809 / OS Build 17763.504

Clients use teradici zero clients

 

 

I am out of options. Any help will be really appreciated.

 

 

Thank you

VMware ESXi 6.7 applied CIS benchmark

This post was originally published on this site

Dear VMware team,

 

My security team wants to apply CIS benchmark in each ESXi host.

 

we are using below products.

  1. ESXi 5 node cluster Primary site
  2. ESXi 4 node cluster Secondary site.
  3. 1 vCenter is primary and 1 vcenter is secondary site, connected with embedded link mode.
  4. VRA both sites.
  5. SRM both sites.
  6. NSX is boths sites.
  7. Active active data centers.

 

Please advise the CIS benchmark is recommended to apply on ESXi host. Please advise.

 

Thanks,

Muhammad Ameer Hamza

Introducing PowerShell as .NET Global Tool

This post was originally published on this site

PowerShell is very suitable for CI/CD scenarios due to its easy and well understood scripting paradigm,
and its cross-platform support makes it great for building and testing cross-platform applications.
A .NET Global Tool is a special NuGet package that contains a console application.

A .NET Core application can be developed for various platforms like Windows, various distributions of Linux and macOS, while the same PowerShell scripts can be used for building, testing and deployment across all platforms.

Installing PowerShell Global tool

If you already have the .NET Core SDK installed, it’s easy to install PowerShell as a .NET global tool!

dotnet tool install --global PowerShell

Once installed, you can run it with pwsh.

PowerShell in .NET SDK docker containers

PowerShell has already been included as a global tool within the .NET Core 3.0 Preview Docker images since Preview.4.
These images are a great starting point for building a .NET Core CI/CD image
(you can find some awesome samples
over at the dotnet-docker repo.)

Docker files with PowerShell syntax

As PowerShell comes pre-installed, Docker files can have PowerShell syntax.
This allows you to run scripts or cmdlets as part of your Docker file.

FROM mcr.microsoft.com/dotnet/core/sdk:3.0
RUN pwsh -c Get-Date
RUN pwsh -c "Get-Module -ListAvailable | Select-Object -Property Name, Path"

Build scenarios in Docker

In addition to enabling PowerShell syntax, PowerShell scripts in the container can be easily invoked through Docker:

docker run -it -v c:myrepo:/myrepo -w /myrepo mcr.microsoft.com/dotnet/core/sdk:3.0 pwsh ./build.ps1

The NuGet package for the global tool can be found at: https://www.nuget.org/packages/PowerShell/

Please report issues or suggestions at: https://github.com/PowerShell/PowerShell/issues/new/choose

Thank you!

Aditya Patwardhan
Senior Software Engineer
PowerShell Team
@adityapatward13

The post Introducing PowerShell as .NET Global Tool appeared first on PowerShell.

Remote Control Software User not able to use Keyboard and Mouse under Workstation Pro 15

This post was originally published on this site

Remote control software user (Citrix WebEx or Zoom) is not able to use their keyboard and mouse under Workstation Pro 15.  Able to view the screen but not able to pass keyboard and mouse control to remote control software user.  Is there a VMware setting that needs to be changed?  Using Windows 10 Pro as OS.

Preparing of Migration to 6.5 U2

This post was originally published on this site

Hello Experts ,

 

I have some questions about our Migration from 5.5 to 6.5 .we will replace  our virtuel datacenter equipements with new ones .

 

our Vcenter 5.5  is in our old domain x.local and the new one will be in our new domain y.com.

our ESXi 5.5 are not joined to the Domain .the authentication is locally and they use the DNS of our old domain x.local

 

before migrating to 6.5 with new Domain y.com , i would migrate our Vcenter 5.5 from x.local to y.com

 

Could you tel me the steps please ? i’m afraid if there will an impact to our VMS

 

Regards

Updates tab – Unexpected Error

This post was originally published on this site

ESXi 6.7.0 Build 13981272

 

On the web client, when I click the Updates tab on one of the hosts, or the cluster, the expected behavior is present.  However, when I highlight a VM and click the Updates tab, I get “An unexpected error has occurred”.  This happens on every VM when it is selected.  I can scan/remediate from the host or the cluster level, I just cannot do so from the VM level.  Any ideas?

 

I’ve attached a screenshot of the updates tab from both the host, and the VM to illustrate the issue I am having. 

PowerCLI Script to capture Cluster Utilization with Performance Averages (v2)

This post was originally published on this site

Hi,

 

Id like to take the script used for quickly analyzing and exporting cluster utilization data to include historical average as well using Get-Stat as recommended by LucD.  I’ve modified the final script version from the previous thread located https://communities.vmware.com/thread/596563 to the following:

 

$hosts = “192.168.0.1”

 

 

$a = “<style>”

$a = $a + “BODY{background-color:white;}”

$a = $a + “TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}”

$a = $a + “TH{border-width: 1px;padding: 1px;border-style: solid;border-color: black;background-color:PaleGoldenrod}”

$a = $a + “TD{border-width: 1px;padding: 1px;border-style: solid;border-color: black;background-color:white}”

$a = $a + “</style>”

 

 

if($global:defaultviservers){

    Disconnect-VIServer -Server $global:defaultviservers -Force -Confirm:$false

}

 

 

$output = foreach($vc in $hosts){

    Write-Host “Getting Cluster Information from $vc”

    Connect-VIServer -Server $vc | Out-Null

    Get-Cluster -Server $vc | where{$_.ExtensionData.Host.Count -ne 0} | ForEach-Object -Process {

        Write-Host “Looking at cluster $($_.Name)”

        #$ds = Get-Datastore -RelatedObject $_ | where{$_.ExtensionData.Summary.MultipleHostAccess}

        $esx = Get-VMHost -Location $_

        $vm = Get-VM -Location $_ | where{$_.PowerState -eq “PoweredOn”}

        $cpuTot = ($esx | Measure-Object -Property CpuTotalMhz -Sum).Sum

        $cpuUse = ($esx | Measure-Object -Property CpuUsageMhz -Sum).Sum

        $memTot = ($esx | Measure-Object -Property MemoryTotalGB -Sum).Sum

        $memUse = ($esx | Measure-Object -Property MemoryUsageGB -Sum).Sum

        $obj = [ordered]@{

            #vCenter = $global:defaultviserver.Name

            Cluster = $_.Name

            ‘Total CPU Ghz’ = [math]::Round($cpuTot/1000,0)

            ‘CPU Usage’ = “{0:P0}” -f ($cpuUse/$cpuTot)

            ‘CPU Free’ = “{0:P0}” -f (($cpuTot – $cpuUse)/$cpuTot)

            ‘Total RAM GB’ = [math]::Round($memTot,0)

            ‘RAM Usage’ = “{0:P0}” -f ($memUse/$memTot)

            ‘RAM Free GB’ = “{0:P0}” -f (($memTot – $memUse)/$memTot)

            #’Total Capacity GB’ = [math]::Round(($ds.CapacityGB | Measure-Object -Sum).Sum,0)

            #’Used Capacity GB’ = [math]::Round(($ds | %{$_.CapacityGB – $_.FreeSpaceGB} | Measure-Object -Sum).Sum,0)

            #’Free Capacity GB’ = [math]::Round(($ds.FreeSpaceGB | Measure-Object -Sum).Sum,0)

            ‘N° Hosts’ = $_.ExtensionData.Host.Count

            ‘N°VMs’ = &{

                $esxVM = Get-View -Id $_.ExtensionData.Host -Property VM

                $vm = @()

                if($esxVM.VM){

                    $vm = Get-View -Id $esxVM.VM -Property Summary.Config.Template |

                    where{-not $_.Summary.Config.Template}

                }

                $vm.Count

                }

            ‘vCPU’ = ($vm.NumCpu | Measure-Object -Sum).Sum

            ‘pCPU’ = ($esx.NumCpu | Measure-Object -Sum).Sum

            ‘vCPU/pCPU’ = “{0:P0}” -f (($vm.NumCpu | Measure-Object -Sum).Sum / ($esx.NumCpu | Measure-Object -Sum).Sum)

            ‘vMem’ = [math]::Round(($vm.MemoryGB | Measure-Object -Sum).Sum)

            ‘pMem’ = [math]::Round(($esx.MemoryTotalGB | Measure-Object -Sum).Sum)

            ‘vMem/pMem’ = “{0:P0}” -f (($vm.MemoryGB | Measure-Object -Sum).Sum / ($esx.MemoryTotalGB | Measure-Object -Sum).Sum)

        }

        New-Object PSObject -Property $obj

   }

   Disconnect-VIServer $vc -confirm:$false

}

 

 

$output | ConvertTo-Html -Head $a | Out-File C:ClusterReport.htm -width 400

 

I’ve commented out various storage related items, and added columns for the vCPU, pCPU, vMem, and pMem components, as well as changed the original script to only count poweredOn VMs where relevant.  Is it possible to change CPU usage and RAM usage to display the clusters overall average usage for 7 days or even a month? Can anyone think of a way to subtract the largest host from the values calculated for pCPU?

 

Thanks in advance,

carias593

Scheduler not running

This post was originally published on this site

Not sure if this was upgrade related or what, but just noticed that the scheduled jobs do not seem to be running. So things like getting the latest version of an existing app from Apple or devices being queried from time to time are not happening. All the jobs show last successful completion as blank and as an example this is the details:

Name MDM Application List Sample

Frequency Every 2 Minutes

Last Start Time 1/1/0001 12:00 AM

Last Successful Completion 1/1/0001 12:00 AM

Number Of Times Run 0 time(s)

Status Waiting

 

Funny enough in this job it says the minimum frequency should be 10 minutes so not sure if they changed that and left the defaults and if it’s then still working or not. All services show running on all the servers. Any thoughts? This is 1902 Thanks. Steve

Can't connect to vsphere web client with "503 Service Unavailable" error

This post was originally published on this site

Hello everyone,

 

I have vsphere 6.5 run on HP DL380 G10, everything is ok in the first 1 month.

 

At Wednesday I can’t access vsphere web client with “request time out” error after click on “Login” button, i try to restart management agent services with command “services.sh restart” and after that i got error “503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http16LocalServiceSpecE:0x01bc5f78] _serverNamespace = / action = Allow _port = 8309)“.

 

VMs in host still runing and accessable, I has been try “esxcli” and got error “Connection failed”.

 

Anyones have idea for this error?, pls help me.

 

Thanks you so much.