Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all 180923 articles
Browse latest View live

VMware DEM 9.10 FTA Import Error

$
0
0

Hello everyone,

 

I have a Windows 10 1809 with VMware DEM 9.10. The import of the FTA does not work. In the FlexEngine Log I see the following error message:

 

2020-04-22 14:40:28.387 [FATAL] FlexUtils::ExecuteCommand: '"C:\Windows\REGEDIT.EXE" /S "C:\Users\XXX\AppData\Local\Temp\FLXB5A9.tmp"' timed out

2020-04-22 14:40:28.389 [ERROR] Error 32 deleting file 'C:\Users\XXX\AppData\Local\Temp\FLXB5A9.tmp' (@IR2)

2020-04-22 14:40:28.389 [FATAL] Error importing archive '\\XXX\DEM-Profiles\Win10\XXX\Archives\Windows Settings\FTA_DEM 9.10.zip'

 

Within the session there is also the folder "FLXB5A9.tmp" under :\Users\XXX\AppData\Local\Temp\

 

When I try to unzip the folder with 7zip I get the error message:

 

"Can not open file as archive"

 

2. How can I define Outlook as my default e-mail program? The following did not work:

 

2020-04-22 14_57_57-HY-STD.png

 

Best regards,

Sascha


How to remove VMware Win10 apps from Mac Catalina Launchpad

$
0
0

I installed Win10 on VMware Fusion on my MacBook Pro (MacOS Catalina). In VMware, I clicked on Virtual Machines > Settings > Default Applications. Then I check "Run Windows applications from Mac's Applications folder".

 

As expected, Windows apps showed up in Launchpad.

 

But I would like now to remove Win10 apps from Launchpad and revert to Mac apps original list without Windows apps. I unchecked the box from menu above, but Windows apps are still in Launchpad.

 

My question. How can I delete Win10 apps on my Mac?

FYI. I'm comfortable with terminal if this is simpler.

 

Thank you.

vCenter 7.0 migration questions

$
0
0

Hi,

 

We have 3 x 6.5u3 vCenters all joined to the same external PSC. Looking to move up to 7.0, converge to an embedded PSC and rename vCenters.

2 vCenters (HQ and DR) can be down during the upgrade, however taking our VDI vCenter could preset a challenge as with it being down new VMs can't be provisioned.

 

Given our setup, should we bother going through the migration or just stand up new vcenters? I realize that starting from scratch would require recreating all scheduled jobs in vcenter, re-configuring vcenter access for users and touching many 3rd party apps (monitoring / backup) that connect to vCenter. I also realize that renaming vcenters would require going through all 3rd party apps to point them to the new vcenter names.

 

If we go the convergence  / migration path. Should we start with VDI vcenter or leave it for the last?

 

One of the road blocks I already see is we can't rename until we get away from the external PSC.

 

Thanks

vsphere 7 with kubenetes alway authorized fail

$
0
0

Hi

I set up a vSphere 7 and NSX-T enviroment, and enable workload, all the step is successfully, and after create a new name space and a dev01 user.

Then I try to login by the user dev01. I cannot login and the error as the following 192.168.50.1 is the control plane node IP address in the workload management page. 192.168.30.100 is the control plane vm mangement VIP )

 

[33mWARN [0m[0026] Error occurred during HTTP request: Post https://192.168.50.1/wcp/login: dial tcp 192.168.50.1:443:

connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or e

stablished connection failed because connected host has failed to respond.

[31mERRO [0m[0026] Login failed: Post https://192.168.50.1/wcp/login: dial tcp 192.168.50.1:443: connectex: A connectio

n attempt failed because the connected party did not properly respond after a period of time, or established connection

failed because connected host has failed to respond.

Logged in successfully.

 

You have access to the following contexts:

   192.168.30.100

 

If the context you wish to use is not in this list, you may need to try

 

I check the log of wcpsvc.log in vCenter, there is alway said that the seems the autorization is passed but the Security Context is missing.

 

Do you have any advice?

 

The wcpsvc.log is as the following:

 

 

2020-06-16T02:43:04.534Z debug wcp [opID=5edf0f6d] List workloads for dev01@VSPHERE.LOCAL

2020-06-16T02:43:04.534Z debug wcp [opID=5edf0f6d] User dev01@VSPHERE.LOCAL is authorized to access fred.

2020-06-16T02:43:04.534Z debug wcp [opID=5edf0f6d] Got list of user workloads: [{fred 192.168.50.1}]

2020-06-16T02:43:04.534Z debug wcp [opID=vapi] Validating output

2020-06-16T02:43:04.534Z debug wcp [opID=vapi] Request processing complete

2020-06-16T02:43:04.534Z debug wcp [opID=vapi] Sending response with output {"output":[{"STRUCTURE":{"com.vmware.vcenter.namespaces.user.instances.summary":{"master_host":"192.168.50.1","namespace":"red"}}}]}

2020-06-16T02:43:05.93Z debug wcp healthz for 192.168.30.100 = "ok"

2020-06-16T02:43:23.905Z debug wcp Attempting VAC stats push

2020-06-16T02:43:23.905Z debug wcp Pushing VAC data to endpoint: http://localhost:15080/analytics/telemetry/ph/api/hyper/send?_c=vsphere.gcm.1_0_0&_i=3ddbce68-1ffe-4ab7-9d52-42fd745bfaa7

2020-06-16T02:43:25.116Z debug wcp Rest client for vmodl2 API calls exists, checking session validity

2020-06-16T02:43:25.124Z debug wcp Rest client for vmodl2 API calls is still valid.

2020-06-16T02:43:25.169Z debug wcp Found appliance logging forwarding config: []

2020-06-16T02:44:05.934Z debug wcp healthz for 192.168.30.100 = "ok"

2020-06-16T02:45:05.939Z debug wcp healthz for 192.168.30.100 = "ok"

2020-06-16T02:45:36.959Z debug wcp [opID=vapi] opId was not present for the request

2020-06-16T02:45:36.959Z debug wcp [opID=vapi] Handling new request with input {"STRUCTURE":{"operation-input":{}}}

2020-06-16T02:45:36.959Z debug wcp [opID=vapi] Service specific authorization scheme for com.vmware.cis.session not found.

2020-06-16T02:45:36.959Z debug wcp [opID=vapi] Service specific authorization scheme for com.vmware.cis.session not found.

2020-06-16T02:45:36.959Z debug wcp [opID=vapi] Could not find package specific auth scheme for com.vmware.cis.session

2020-06-16T02:45:37.063Z debug wcp Got authz request for com.vmware.cis.session.create

2020-06-16T02:45:37.063Z debug wcp [opID=vapi] Searching for service com.vmware.cis.session

2020-06-16T02:45:37.064Z debug wcp [opID=vapi] Searching for operation create

2020-06-16T02:45:37.064Z debug wcp [opID=vapi] Validating input

2020-06-16T02:45:37.064Z debug wcp [opID=vapi] Invoking operation

2020-06-16T02:45:37.064Z info wcp [opID=5edf0f8a] Created session for dev01@%!s(*string=0xc0019b58f0)

2020-06-16T02:45:37.064Z info wcp [opID=5edf0f8a] Scheduling session cleanup in 2m26.935851009s

2020-06-16T02:45:37.064Z debug wcp [opID=5edf0f8a] Created session, returning session id

2020-06-16T02:45:37.064Z debug wcp [opID=vapi] Validating output

2020-06-16T02:45:37.064Z debug wcp [opID=vapi] Request processing complete

2020-06-16T02:45:37.064Z debug wcp [opID=vapi] Sending response with output {"output":{"SECRET":"*redacted*"}}

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Processing operation with opId wcp-authproxy-140706487955408

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Handling new request with input {"STRUCTURE":{"operation-input":{}}}

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Service specific authorization scheme for com.vmware.vcenter.namespaces.user.instances not found.

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Service specific authorization scheme for com.vmware.vcenter.namespaces.user.instances not found.

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Could not find package specific auth scheme for com.vmware.vcenter.namespaces.user.instances

2020-06-16T02:45:37.066Z info wcp Got session for dev01@VSPHERE.LOCAL

2020-06-16T02:45:37.066Z debug wcp Successfully validated session token.

2020-06-16T02:45:37.066Z debug wcp Got authz request for com.vmware.vcenter.namespaces.user.instances.list

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Searching for service com.vmware.vcenter.namespaces.user.instances

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Searching for operation list

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Validating input

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Invoking operation

2020-06-16T02:45:37.066Z debug wcp [opID=5edf0f8b] List workloads for dev01@VSPHERE.LOCAL

2020-06-16T02:45:37.066Z debug wcp [opID=5edf0f8b] User dev01@VSPHERE.LOCAL is authorized to access fred.

2020-06-16T02:45:37.066Z debug wcp [opID=5edf0f8b] Got list of user workloads: [{fred 192.168.50.1}]

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Validating output

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Request processing complete

2020-06-16T02:45:37.066Z debug wcp [opID=vapi] Sending response with output {"output":[{"STRUCTURE":{"com.vmware.vcenter.namespaces.user.instances.summary":{"master_host":"192.168.50.1","namespace":"red"}}}]}

2020-06-16T02:46:05.943Z debug wcp healthz for 192.168.30.100 = "ok"

2020-06-16T02:46:28.283Z error wcp [opID=vapi] Security Context missing in the request

2020-06-16T02:46:28.283Z debug wcp [opID=vapi] SecurityContext not passed in the request. Creating an empty security context

2020-06-16T02:46:28.283Z debug wcp [opID=vapi] opId was not present for the request

2020-06-16T02:46:28.283Z debug wcp [opID=vapi] Handling new request with input {"STRUCTURE":{"operation-input":{}}}

2020-06-16T02:46:28.283Z debug wcp [opID=vapi] Service specific authorization scheme for com.vmware.vapi.std.introspection.service not found.

2020-06-16T02:46:28.283Z debug wcp [opID=vapi] Service specific authorization scheme for com.vmware.vapi.std.introspection.service not found.

2020-06-16T02:46:28.284Z debug wcp [opID=vapi] Could not find package specific auth scheme for com.vmware.vapi.std.introspection.service

2020-06-16T02:46:28.284Z debug wcp [opID=vapi] Authn scheme Id is not provided but NO AUTH is allowed hence invoking the operation

2020-06-16T02:46:28.284Z error wcp [opID=vapi] SecurityCtx doesn't have property AUTHN_IDENTITY

2020-06-16T02:46:28.284Z error wcp [opID=vapi] Invalid authentication result

2020-06-16T02:46:28.284Z debug wcp [opID=vapi] Skipping authorization checks, because there is no authentication data for: com.vmware.vapi.std.introspection.service.list

Keyboard Indicators out of sync with RDSH App Sessions

$
0
0

Hello All,

We have recently ran into an issue where the Keyboard Indicators (num lock, caps lock, etc) are out of sync with RDSH App Sessions. In our environment we are running Windows 10 endpoints (1809 and 1909), and Horizon 7.10 on the agent side. We recently upgraded our Horizon Clients from 4.9 to 5.4.2, and this appears to be where the problem lies. Without making any changes on the Agent side (RDSH Farm), I uninstalled the 5.4.2 client and installed the 4.9 client again and then after launching an RDSH App the Keyboard Indicators were back in sync. From here I have by installing each version of the Horizon Client from 4.9 through 5.4.3, and what i found was that the Keyboard Indicators were in sync for the versions 4.9, 4.10, 5.0, 5.1, 5.2, and 5.3, but was out of sync on any 5.4.x version (5.4.0, 5.4.1, 5.4.2, and 5.4.3).

 

Has anyone else seen this issue after upgrading to any 5.4.x version of the Horizon Client? If so, were you able to find a workaround?

 

I do have a Support Case open for this, but figured I'd see if others were at least seeing the same. I've tried the various registry entries deployed via UEM\DEM within a test RDSH App Farm session with no luck:

 

[HKEY_CURRENT_USER\Control Panel\Keyboard]

"InitialKeyboardIndicators"="2147483650"

 

[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]

"InitialKeyboardIndicators"="2147483650"

Video is blurry since 11.5 update

$
0
0

Either my eyesight just changed, or the video quality in my Windows VMs got blurry. I am viewing them on a 5k display, with the client OS at 2560 x 1440, without full resolution. Acceleration makes no difference.

 

It seems that something is probably anti-aliasing or something like that, but given I used to like how sharp it was, something has changed. If anyone knows what that might be, I'd welcome getting the nice sharp display back. Thanks.

Full Screen Blurry

$
0
0

Hadn't used Fusion for a while, but running either 11.3 or 11.5 with a Windows 10 VM, the text is blurry in full screen mode. I use an external 3840x1600 non-retina display. Doesn't seem to matter if "Use full resolution for Retina display" is enabled or disabled - either way it's blurry in full screen. Windows scaling is set to 100%. Windowed mode is fine - text is crisp, it's just full screen mode that becomes blurry. Attached screenshots to show the difference.

 

Please fix!

VMware Workstation 15.5.6 has problems with SmartCard readers !!

$
0
0

 

With the latest update to version 15.5.6, VMware has changed the handling of 'Removable Devices' very unfavorably.

 

With older versions, e.g.: 15.5.1, USB devices can be redirected to the desired VM via 'Connect (Disconnect from Host) /' Disconnect (Connect to host), as far as everything is good.

 

From version 15.5.6 the item is now called 'Connect' / 'Disconnect' which actually means that the USB device is visible on the host AND the VM ....

For USB printers or scanners, etc., the new function may be quite nice, but SmartCard readers with PinPad are NOT working anymore !!!

 

SmartCard readers such as 'Chipdrive Pinpad Pro (SPR532)', 'Cherry Smart Terminal ST2100' and 'ReinerSCT CyberJack' establish a secure connection to their software, who doesn't like it at all if she is NOT the sole ruler of the USB connection !! (Similar to VPN tunnels)

 

Depending on the model, the readers are more or less recognized in the VM. But even if they are recognized, the software is unable to establish a secure connection, whereby the use of banking software in the VM is no longer possible !!

 

1.) Does anyone know a workaround to fix the problem?

 

2.) If someone has a hot line to VMware, please step in front of the developers to improve their function, or install BOTH variants in the future, so that the user can decide which USB redirection he needs.

 

My solution was to downgrade to version 15.5.1 and wait until another usable version appears.

 

Best Regards, G.Behne


Hardware Requirements for System Under Test

$
0
0

Hi Team,

 

I was reading through the VMMark 3.1 User's Guide and looking for a clarification regarding the VMmark Hardware Requirements for System Under Test.

 

I understood that the cluster for SUT should have minimum of 2 Hosts (to support Infrastructure operations as well). My question is - Are the CPU/Memory/Storage requirements mentioned in the document (47 vCPUs / 166 GB) per Host (or) cluster? Also, in case, if the CPU/Memory of SUT is lesser than recommended in the document, will there be any errors in the test run?

 

Thank you,

Krishna

Third Party usage of Horizon VDI infrastructure

$
0
0

Hi All,

We have recently engaged a overseas third party to perform some work for us long term and they will be using our Horizon infrastructure. One of our concerns is how we address any performance related issues that come up.

 

This is my first experience with supporting an externally connected overseas vendor and was wonder if anyone can share there experiences and what monitoring tools they implemented to limit the blame game?

 

TIA

Executing VMware Horizon Client on Raspbian Linux don't work!

$
0
0

Hello at all,

 

I have install the current Version of the VMware Horizon Client (5.2) on the current Raspbian Buster Distro.

The installation went smoothly.The subsequent scan was also error-free and the scan shows succesfull on all.

But now after the Installation I can not start the Client on the VMware Horizon Client Icon. I get only the hourglass which disappears after a short time.

I also tried to start the client  (vmware-view as command) via the console I there I will get this error:

 

/usr/bin/vmware-view: Zeile 167: /usr/lib/vmware/view/bin/vmware-view: Kann die Binärdatei nicht ausführen: Fehler im Format der Programmdatei

 

 

 

Does anyone have a Idee or Solution for that?

 

Thank you and Greetz!

Bloomberg: Apple looking at moving to ARM chips for Mac

$
0
0

What will be the VMware response to the Bloomberg report that Apple is seriously looking at a move to ARM for the Mac product line? Where will that leave VMware Fusion? Will Fusion be revamped to pretend to be an Intel chip so intel-compiled software can run? Or will Fusion just go away and we will be back to the Mac of the 1980's?

 

I realize that some folks may think this question a bit premature, but I would like to know the direction that VMware would plan on going if/when it happens.

"Not Enough Physical Memory" error on MacOS Big Sur Beta 1

$
0
0

On MacOS Big Sur Beta 1, receiving the following error when launching any VMs that worked fine prior to update:

 

"Not enough physical memory is available to power on this virtual machine with its configured settings."

 

Mac has a total of 16GB of RAM, VM has 4096MB allocated in preferences, and shows that there is still 12GB available for the Mac.  Same issue no matter how much memory is allocated to the VM.

 

Posting to report to devs as potential bug with new beta, but obviously any suggestions are welcome.

 

Thanks!

Add server to OU vRA8.1

$
0
0

Hi,

Is there any resource can helps with vRO embedded workflow to register a VM under the correct OU in Active Directory ?  Or if you can guide me to some basic configuration steps? in vRO 6 och 7.x I could add AD as an endpoint but I could not find this feature on embedded vRO

thanks

VMWare Workstation 15.5.6 Freezing on Windows 10 2004 (20H2)

$
0
0

Recently upgraded my host to Windows 2004 and after doing this. I have been experiencing Windows Workstation locking up/freezing on multiple VM's.  I have checked for updated drivers, etc.  But nothing has fixed it.  I ended up reverting back to Windows 10 1909 and the problems have gone away.

 

I am running:

Dell Precision 7530

Intel I9-8950 HK

64GB RAM

Windows 10 1909 64 Bit

Intel 630 UHD/NVIDIA P3200 Quadro Graphics Card

NVME Hard Drive


Could you let me know how to configure LBaaS via octavia with NSX-T in openstack train

$
0
0

I've written to the NSX Forum, but I'm writing to it here also.

 

I'm trying to configure Octavia in Openstack train with NSX-T.

 

I've configured it according to this guide, but the Octavia service doesn't work.

Configure OpenStack Octavia Load Balancer as a Service (LBaaS)

 

It occurred some errors in /var/log/octavia/api.log

2020-06-22 15:44:34.591 1114 ERROR octavia.api.drivers.driver_factory [-] Unable to load provider driver vmwareedge due to: Unable to open the driver agent socket: /var/run/octavia/status.sock: DriverAgentNotFound: Unable to open the driver agent socket: /var/run/octavia/status.sock

2020-06-22 15:44:34.594 1114 CRITICAL octavia [-] Unhandled error: ProviderNotFound: Provider 'vmwareedge' was not found.

2020-06-22 15:44:34.594 1114 ERROR octavia Traceback (most recent call last):

2020-06-22 15:44:34.594 1114 ERROR octavia   File "/usr/bin/octavia-api", line 10, in <module>

2020-06-22 15:44:34.594 1114 ERROR octavia     sys.exit(main())

2020-06-22 15:44:34.594 1114 ERROR octavia   File "/usr/lib/python2.7/site-packages/octavia/cmd/api.py", line 33, in main

2020-06-22 15:44:34.594 1114 ERROR octavia     app = api_app.setup_app(argv=sys.argv)

2020-06-22 15:44:34.594 1114 ERROR octavia   File "/usr/lib/python2.7/site-packages/octavia/api/app.py", line 51, in setup_app

2020-06-22 15:44:34.594 1114 ERROR octavia     _init_drivers()

2020-06-22 15:44:34.594 1114 ERROR octavia   File "/usr/lib/python2.7/site-packages/octavia/api/app.py", line 43, in _init_drivers

2020-06-22 15:44:34.594 1114 ERROR octavia     driver_factory.get_driver(provider)

2020-06-22 15:44:34.594 1114 ERROR octavia   File "/usr/lib/python2.7/site-packages/octavia/api/drivers/driver_factory.py", line 49, in get_driver

2020-06-22 15:44:34.594 1114 ERROR octavia     raise exceptions.ProviderNotFound(prov=provider)

2020-06-22 15:44:34.594 1114 ERROR octavia ProviderNotFound: Provider 'vmwareedge' was not found.

2020-06-22 15:44:34.594 1114 ERROR octavia

 

 

If you know how to configure octavia with NSX-T, please give me some advice.

I have installed the vRealize plugin and when importing catalog i get the errfor message "Exception caught inside VRASNAppUtil.parse: SyntaxError: Unexpected token:

$
0
0

We are currently on ServiceNow Newyork and vRA version is 7.6

 

I am using a service account as an integration user, when I click on import catalog items and cmdb i get the following messages in log

 

1. Exception caught inside  VRASNAppUtil.parse: SyntaxError: Unexpected token: <

2. Exception caught inside VRASNImportCMDB.preImportCMDB: TypeError: Cannot read property "metadata" from undefined

SRM 8.3 and vSphere HA - Recovery is stuck at "Delete file"

$
0
0

Hello,

I'm using SRM 8.3 with Stretched Storage from PureStorage (ActiveCluster) and vSphere HA Enabled on both sides but I encountered a problem, When I try to Recover VMs with vMotion Recovery enabled via SRM the recovery plan is stuck at step "19.1.2.1 Recover storage consistency group".

At this time Recovery plan/SRM tries to remove files from the protected datastore, to be exact, it tries to remove "vSphere-HA/FDM-stringoflettersandnumber-vcxx" folder but it's unable to since vSphere HA is enabled on both sides, when I disable vSphere HA SRM proceeds without a hassle and just continues to recover the VMs. I tried to select nonprotected, by SRM, datastores for heartbeats but vSphere HA still creates those folders on protected datastores and SRM is still unable to proceed with the recovery. I also tried to disable VM Monitoring in vSphere HA settings but to no avail. SRM just loops and tries to delete the files/folder. Anybody got any tips for this behaviour?

 

vCenter 6.5, SRM 8.3.02, PureStorage SRA 3.1

moving linked clones to another vcenter and off existing storage to a new storage

$
0
0

good afternoon.  i wanted to somewhat think out loud  with this question but  we have a storage array that is attached to our vdi environment that needs to be retired. to that end, there are multiple datastores attached to multiple hosts in more than one vcenter.  we have multiple vcenters due to the fact that we wanted some resiliency in how we did our clusters.   so my question is relatively simple:

 

what is the best, recommend, or preferred way to move non linked cloned vm's from one vcenter (Hosts and Storage) to a completely different vcenter(Hosts and Storage)?

 

a) the traditional power off, remove from inventory, migrate storage, register vm with new hosts\vcenter?

 

 

b) some other way?  example: cross vcenter utilization tool(vmware fling)

Error while getting output from invoke-VMScript

$
0
0

Hi,

 

I am getting the below error while I use the invoke command

 

Error

Cannot convert value ""CSName","OS_CPU"

,"2"

" to type "System.Int32". Error: "Input string was not in a correct format."

At D:\Processor_Info\Processor_Info_3.0.ps1:58 char:5

+     $report1 += $row | Add-Member -MemberType NoteProperty -Name 'OS_ ...

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [], RuntimeException

    + FullyQualifiedErrorId : InvalidCastFromStringToInteger

 

 

 

 

Script :

Get-Folder DEV | get-vm | Where{$_.'PowerState' -eq 'PoweredOn' -and $_.Guest.OSFullName -match 'windows'} | select 'Folder', 'Name',

@{N="IP_Address";E={@($_.guest.IPAddress[0])}},

@{N="OS"; E={@($_.guest.OSFullName)}},

@{N="VM_vCPU"; E={@($_.NumCPU)}},

@{N="VM_Memory(GB)"; E={@($_.MemoryGB)}} | Export-Csv -Path $reportlocation1 -NoTypeInformation -UseCulture

 

$code = @'

"### Output ###"

"" | Select @{n='OS_CPU';e={get-wmiobject Win32_ComputerSystem NumberOfLogicalProcessors | Select -ExpandProperty NumberOfLogicalProcessors}} | Select CSName,'OS_CPU' | ConvertTo-Csv -UseCulture -NoTypeInformation

"### Output ###"

"" | Select @{n='OS_Memory';e={(get-wmiobject Win32_ComputerSystem | select @{N="TotalPhysicalMemory(GB)";E={($_.TotalPhysicalMemory/1gb).tostring("N0")}}) | Select -ExpandProperty "TotalPhysicalMemory(GB)"}} | Select CSName, 'OS_Memory' | ConvertTo-Csv -UseCulture -NoTypeInformation

'@

 

 

$report1 = @()

Import-Csv -Path $reportlocation1 -UseCulture -PipelineVariable row |

ForEach-Object -Process {

    $sInvoke = @{

        VM              = $_.Name

        GuestCredential = $Creds

        ScriptTYpe      = 'powershell'

        ScriptText      = $code

    }

    $result = Invoke-VMScript @sInvoke

    $dummy, $out1, $out2 = $result.ScriptOutput -split '### Output ###'

    $out1 = $out1.TrimStart("`n`r")

    $out2 = $out2.TrimStart("`n`r")

    $report1 += $row | Add-Member -MemberType NoteProperty -Name 'OS_CPU' -Value ([int]$out1) -PassThru | Add-Member -MemberType NoteProperty -Name 'OS_Memory' -Value ([int]$out2) -PassThru

}

 

$report1 | Export-Csv -Force -Path $reportlocation1 -UseCulture -NoTypeInformation

Viewing all 180923 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>