Cannot create host profiles. "

Just started a new job and I'm trying to clean up the mess...

When you create profiles of the host, I get this message and the creation of host profile fails.

Call 'HostProfileManager.CreateProfile' of object "HostProfileManager" on vCenter Server 'vcentername.domain.com' failed.

Configuration of the parameter cannot be an empty string

The VPXD. Table of NEWSPAPER reports:

2014 11-15 T 09: 29:24.100 - 05:00 [09188 info "Default" opID = A1964820-00002139-3 a] [VpxLRO] - ERROR task-943884 - host-5858 - vim.profile.ProfileManager.createProfile: vmodl.fault.SystemError:

-> Result:

-> (vmodl.fault.SystemError) {}

-> dynamicType = < unset >

-> faultCause = (vmodl. NULL in MethodFault),

-> faultMessage = (vmodl. [LocalizableMessage)

-> (vmodl. LocalizableMessage) {}

-> dynamicType = < unset >

-> key = "com.vmware.vim.profile.host.UpdateError.ParameterEmptyString.label"

-> arg = (vmodl. [KeyAnyValue)

-> (vmodl. KeyAnyValue) {}

-> dynamicType = < unset >

-> key = "paramName",.

-> value = "config."

-->             }

-->          ],

-> message = 'config parameter cannot be an empty string.

-->       }

-->    ],

-> right = ""

-> msg = «»

->}

-> Args:

->

Neither the messages seem to be very useful...

Found the problem... I had been watching this walk and stop for a few weeks in the middle of all my other tasks and finally decided to take this weekend to resolve. Thought I'd share what I found while others might benefit from...

list of vib /etc/init.d # esxcli software | grep-i qlogic

Brocade-esx55-bcu-plugin 3.2.5.0 - 03 QLogic PartnerSupported 2014-11-15

hostprofile-bfaConfig 3.2.5.0 - QLogic VMwareAccepted 2014-11-15 1OEM.1331820

IMA-qla4xxx 500.2.01.31 - 1vmw.0.3.040121 QLogic VMwareCertified 2014-02-14

NET-bna 3.2.5.0 - QLogic VMwareCertified 2014-11-15 1OEM.550.0.0.1331820

NET-qlcnic 5.5.164 - 1OEM.550.0.0.1198611 QLogic VMwareCertified 2014-02-14

qlnativefc 1.1.7.0 - 1OEM.550.0.0.1198610 QLogic VMwareCertified 2014-02-14

SCSI-qla4xxx 634.55.20.0 - 1OEM.550.0.0.1198610 QLogic VMwareCertified 2014-02-14

Both modules highlight seem to be used for the FC interfaces (we use iSCSI...) are so more than likely is not necessary. the Hostprofile-bfaconfig module is to extend the host configuration for the CF settings profiles, which would of course empty in our case since we use only.

Detective Conan.

Tags: VMware

Similar Questions

  • Profiles of the host cannot create, license error.

    I tried to right click on a host, or just create a new profile and select a host and I get the same rror.

    License not available to perform the operation.

    The Vsphere 4 enterprise license for host XXXXX does not include profiles of the host.  Update the license.

    Then it is said in the recent tasks: license not available to perform the operation?

    I thought that the enterprise license came with host profiles?  I didn't liked company was necessary.

    You must have Enterprise more than license for the host profiles

    http://KB.VMware.com/kb/1010579

  • Server 2008, XP roaming profiles and "cannot create a file when that file already exists"...

    Hi all

    I'm working on a Server 2008 domain with XP SP3 clients.  The question is: create a new user, their profile is \\server\profiles\%username% [where %nom user % is their new username!].  Security on the profile folder is set so that the administrators have full access and the user has read & execute, list folder content, read and write access.

    The user is able to login ok there is no problem with roaming profiles [otherwise, they would get a message on with a temporary profile loading] which suggests, but when they disconnect they get a message saying that some files could not be created [it varies], followed by "cannot create a file when that file already exists".

    Any help would be greatly appreciated!

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the Windows server on TechNet forum. Please ask your question in the Forums in TechNet Windows Server.

  • Cannot create a new profile in Windows 7

    I can't create any user profile on my PC.

    -J' I create a standard user, when I try to log in. I have an error message "" the user profile service has not the logon cannot load user profile ".

    -J' I create user administrator, I can connect, then I have an error message

    I already try go to the safe mode and windows repair. the problem can not be solved yet.

    Help, please. Thank you.

    Hello

    I suggest you to enable the hidden administrator account that you are able to connect partially and follow method 2 in the article link provided in the message above.

    Refer to the steps below to activate the hidden administrator:

    1. Click the Start button.

    2. Type CMD in the search box.

    3. Right-click on command prompt and click on run as administrator.

    4. Type the following command to enable the built-in Administrator account: net user administrator /active: Yes

    Hope this solves the problem, get back to us if you need further assistance for Windows.

  • Is impossible to turn on the guest account. Cannot create new user account. "The service user profile Service has no logon. User profile cannot be loaded. »

    Is impossible to turn on the guest account.  Cannot create new user account.  After to try one of those and reboot, the icons of account appear, but when you try to use, the following instructions of error present when you try to log in with the new account or comments: "the user profile Service service has no logon.  User profile cannot be loaded. "I looked at the answers to all the previous ones (including the KB947215) and no not to address specifically.  For the most part, they seem to assume that there is a guest or a new profile in the first place...

    The system is Win 7 Pro 64-bit with all available updates.  I can't say when the last time that the guest account has worked (rarely used) and just found out I can't do new additional user, accounts trying to solve the problem of account of comments... so I have not tried to enter Safe Mode and do a system restore , because I can't yet identify a useful restore point...

    There are no entries in the registry for a guest or a new standard user account.  The registry entries for the three accounts normal-quickly (2 x admin, 1 x level) seem to be appropriate.  Watch register computer/HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

    S-1-5-18 = system profile

    19 = local service,

    20 = network service,

    21 long numbers + 1004 plus User1 (admin),

    22 long + 1005 plus 2 user (admin),

    23 plus long + 1006 is user3 (standard,

    and no comments or additional profiles appear.

    C:\Users includes

    All users,

    User1,

    User3,

    By default,.

    Default user (which is inaccessible for me, even as an administrator),

    Public,

    User2,

    No guest or additional profile appear.

    All except the default user (I can't open) seem to have the appropriate, NTUser.DAT files although I don't know how to check for corruption.  Having both a default value

    and a default user folder seems hokey.

    I think I understand instructions how to fix or remove a corrupted profile, but that does not apply to the guest account or profiles that do not exist.

    Help?  Ideas?

    This message contains the strange solution.

    [Plan B - I found one thread where one user said that the same symptoms of the problem that you experience this problem solved]

    - - - - - - - - - - -

    Plan h - while another user said that it was caused by a file Windows Live problem

    This is the thread I can not create a new user account (Windows 7): the user profile service service doesn't have the logon

    You find it difficult to follow the thread as it's long and reported problem by different people to confuse it and there is also a bit of bickering [long filaments often end up being quite incomprehensible].

    ..., See references to the event viewer in the middle of page 4 and Windows Live we [at the bottom of page 2 more on page 3].

    I see not the logic of the any of those things, but if one of them do things long enough that you are trying to create new accounts that works, you will know how in the future until a proper solution is found.

    This is the useful part where this user has tested the solutions proposed in this thread linked above: -.

    This has proved to contain leads to a difficulty.  Have to admit, when I read everything the first time, several days, I did indeed find it confusing and even the parts that I "heard" (sorta) does not appear to be related to my symptoms.

    It turns out that the answer of JDMICHAL May 17, 2011 contained this:

    (1) C:\Users\Default\AppData\Local\Microsoft\Windows open live
    (2) this directory has two subdirectories with a single file of each. Go into each directory and apply the following:
    (a) make a right click on the file, open the properties.
    (b) click the Security tab.
    (c) it will issue a message: "to continue, you must be an administrative user with permission to view this object's security properties. Would continue you? ». Click on the button continue.
    (d) click on the Add button...
    (e) ' everyone' type in the box at the bottom of the dialog box. Click on "check names"; It should be emphasized the "everyone". Click OK.
    (f) ensure that the new "Everyone" entry "read" and "read & run" check under the column "allow".

    After doing this for two files, attempt to connect to the account. He must undergo.

    The procedure (bascially) worked... Although the different answers on my system differed slightly along the way (perhaps due to the slightly different versions of Win 7?, because I was already logged in as an administrator?).

    In any case, "Everyone" with the read and read/execute permissions adding to these two files seems to have done the trick:

    C:\Users\Default\AppData\Local\Microsoft\Windows Live\Bici\Bici1_00.sqm

    and

    C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm

    Thank you for leading me to this!

  • Cannot create ColorChecker Passport profiles in Lightroom

    I don't know what changed, but now I am unable to create ColorChecker profiles in Lightroom. Error message is:

    The profile could not be created. Could not generate illuminant DNG image. Images must be created using a bulb supported and the correct exposure. For more information, please click the button to learn more.

    I've clicked on the button more, but was unable to find a solution to this problem.

    I use LR CC 2015.5.1 and camera raw 9.5.1. Any help would be greatly appreciated.

    People - thank you all for your help; I really appreciate it. This that I found myself doing so, that solved the problem, is to download and reinstall the software. I don't know what version of the software I had, so the answer of BKKDon might be the solution because now I have the plus version and, and it works!. In any case, thanks again. I would now like to go back to being a photographer and not a bit PC head.

  • "General system error" when you try to create a host profile

    I have a cluster including 3 ESXi 5.5 knots. I'm trying to implement the compliance of the profile on this cluster, but I am not able to generate the host profile, use one of the nodes in the reference host.

    The error on nodes 1 and 2 is:

    A general error occurred:

    Call "HostProfileManager.CreateProfile" to "HostProfileManager" object on the server vCenter Server '< vcenter server >' failed.

    The error on node 3 is slightly different:

    A general error occurred:

    Call "HostProfileManager.CreateProfile" to "HostProfileManager" object on the server vCenter Server '< vcenter server >' failed.

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 1 to 256

    Specified value is out of range. Range: 0 to 16

    Anyone has an idea why I am unable to generate these profiles? I added the other stand-alone hosts (in other data centers) to test and I am able to generate profiles of those without problem. I tried to take one of the above 3 nodes in the cluster to generate the profile, but I got the same errors as above.

    I was getting exactly the same problem in my environment who you are. Here's a knockout that help me solve the problem.

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2065692

  • Cannot migrate my profile from XP to Windows 7

    I want to migrate my Firefox profile (bookmarks, passwords, latest sites visited, installed extensions/applications settings etc.) of my Win XP 64 machine to my new Win 7 machine. Firefox is updated (34.0 5) on my XP 64 and Windows 7 machines (I manually installed the active apps/extensions on Win 7). However Firefox was originally installed on my XP machine (at least 6) years ago so what counts.

    I have read and tried everything I can think of but * nothing * works.

    On my XP machine, I have only the default profile (to run Firefox with the - P option). It is located in C:\Documents and Settings\TexasTim65\Application Data\Mozilla\Firefox\Profiles\1f2yd5bq.default

    On my Win 7 machine, I find the default profile in C:\Users\TexasTim65\AppData\Local\Mozilla\Firefox\Profiles\bjy0sgis.default.

    Try #1) I copied the folder 1f2yd5bq.default for Win 7. I run Firefox - P, but the profile manager sees only the default profile. So apparently, it cannot detect new profiles randomly added to the profiles folder. So that's a no-go.

    Try #2) I open the folder bjy0sgis.default on Win 7. I delete everything in this folder. I can copy and paste into all kinds of 1f2yd5bq.default. I start Firefox and got nothing. No favorites, no sites are visited and I guess no password information or anything else. If this doesn't work for me either even if MANY people claim that this is what they had to do.

    Try #3) using the Manager of profiles on Win 7, I added a new profile called hand. I just copied once again 1f2yd5bq.default in the new profile. I put in hand as default profile used (I know works because it uses different extensions/plugins) but of course I have nothing of my copied profile.

    So I'm puzzled. Something is different about my setup which is not allowing me to move on in a simple way.

    TIA,

    Tim

    P.S. is there something I can do to get Firefox to create EXACTLY the same name profile under Win 7 as I had in XP? I would have thought the same username would produce the same default profile, but apparently it does not.

    "On my Win 7 machine, in the fact that I find the default profile

    C:\Users\TexasTim65\AppData\Local\Mozilla\Firefox\Profiles\bjy0sgis.default. "

    There is another folder 'Profile' to C:\Users\TexasTim65\AppData\Mozilla\Firefox\Profiles\bjy0sgis.default - without the \Local in the path. This is the folder you need to copy your old profile files in.

  • Component ActiveX cannot create object wrong when VB script call a dll

    Hello

    I'm new to VB and .NET. We have a SQL job in our application (developed by someone else) hosted on Win Server 2003, who calls the VB script and this script inturns calls a DLL.

    When I run this job, I get the error - component ActiveX cannot create object.

    I tried to print the source of the error (by Err.Source and it gives me 'Microsoft VBScript runtime error').

    Any help would be appreciated. Let me know if I could extract more information.

    Thanks in advance.
    ME

    Hi SenLady,

    The question you have posted here is related to Visual Basic and would be better suited on MSDN forum. I suggest you post your question on the following link.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • I tried to look at my device manager and go this message MMC cannot create a snap

    I wasn't at the root droid to my husband, to see if the installation of the driver, have been, to my horror, saw NO Device Manager, just MMC cannot create a snap.

    I think I'll probably have to do a clean re install to get this and a few other problems I've seen lately. Any suggestions?

    Hi beckyandac

     

    1. what other issues do face you?
    2. for how long have you been faced with this problem?
    3. did you of recent changes on the computer?
    4. do you get error messages when you try to open Device Manager?

     

    Method 1:

    Try opening the Device Manager by following the steps mentioned.
    Click the Start button, then click on control panel - system and Maintenance, then select Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    Method 2:
    You can perform a scan of the SFC (System File Checker). It lists all the issues and will also retrieve all files if necessary. Follow the steps below to perform a Scan SFC -

    a. click Start, click programs, on Accessoriesprincipally made, right click guestand then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click Allow
    b. type the following command and press ENTER:
    sfc/scannow
    A message appears indicating that "the system scan will start. Be patient because the scan can take some time.
    c. If all files require a SFC replace will replace them. You may be asked to insert your Win7 DVD for this process to continue.
    d. If everything is correct you should, after the scan, see the following message "resource protection Windows not found any breach of integrity".
    e. once the scan is finished, close the command prompt window, restart the computer and check.

    See the link for further directions on scan SFC - below
    http://support.Microsoft.com/kb/929833

     

    Method 3:
    If the problem persists, you can check if you are facing the same question in the user account new or different administrator account.  You can create a new user account on your computer, and then check.

    Create a new user account-
    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If you are not faced with the same question in a new user account, you can view the link below and use the steps provided to fix a corrupted - user profile
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

     

    I hope this helps.

  • Can I create a profile user account on one separate hard disk other than 'C' or can I move an active profile to another hard drive?

    Can I create a profile user account on one separate hard disk other than 'C' or can I move an active profile to another hard drive?

    No, you cannot create profile on something other than the system drive. You cannot move the entire profile, but you can move directories in sketch.

    http://www.edbott.com/weblog/?p=1371

    MS - MVP - Elephant Boy computers - don't panic!

  • Cannot create a new account

    * Original title: cannot create a new account - gives me the default profile for the system

    I used to be able to create accounts before, but now whenever I try to do, I get the message "you have been logged with the default for the system profile, please see the the event log for more information or contact your administrator." the only administrator account works fine if I can connect with no problem , she just does not allow to create me a new user. Help, please.

    Hello

    Did you of recent changes to the computer?

    Click on the link below and check the suggestions of Tadasha Mishra replied on 2 September 2013

    Just reply to the State of the question to get help.
  • Binds two ISP ASA to remote VPN Client to connect to instead of creating two profiles on the remote client

    Hello

    just a quick,

    TOPOLOGY

    ASA isps1 - 197.1.1.1 - outside

    ASA ISP2 - 196.1.1.1 - backup

    LAN IP - 192.168.202.100 - inside

    I have configured Tunnel on the interfaces (external and backup), but is to link both legs public to serve a thare as redundancy for vpn users and users of the vpn tunnel leave pointing inside IP whenever they want to establish vpn sssion, we want it to be one, so if an interface fails vpn users will not know , but he will try the second for the connection. instead of creating the profile for the two outside of the leg on the vpn client.

    is this possible?

    Hi Rammany.

    In your case, you have only an ASA that connects with 2 ISP in another segment IP... 196.x.x.x (Link1) & 197.x.x.x (Link2). What your condition is you want to have the VPN client who must be consulted with backup. If 196.x.x.x link fails, it should automatically take 197.x.x.x link. That too we should not have the config set in the VPN client backup server. You don have the possibility of having standby active also in asa single.

    I think n so it will work with your current design.

    This option is if your VPN client supports host name resolution (DNS). You can have the VPN created for both the public IP address share the same host name keeping the bond as the primary address 1 and 2 a secondary address. It will work alone.

    Hope someother experts in our forum can help you with that.

  • I cannot create new user accounts and have tried all the steps listed in all of the current discussions, does not

    Good people you've heard of this one before:

    I can connect to my basic admin account, but not others.  I tried to create new user accounts after you delete the old user accounts but system would not apparently carry out process.  I get the following warning:

    Service user profile Service failed to connect
    User profile cannot be loaded.

    I tried all of the recommended patches (see list below)

    1 ran all appropriate steps as stated in the article: http://support.microsoft.com/kb/947215 - no joy
    There is not other profiles listed in the register except the administrator account on the basis and since I couldn't connect successfully to a user apparently newly created accounts, the profile has not completed the process of generation.

    2. I have not ran the SFC system - no joy.  He replied with the following: Windows Resource Protection did not find any breach of integrity.

    Then... of other big ideas?

    Oh
    Running Win 7 with all latest updates (login problem is not a new problem according to my children - I just got back from the extended learning this persistent problem)
    I am on an Intel machine running dual quad core which is only 6 months old.
    I run MS Office 2010

    Hello

    I suggest you to consult the steps mentioned in the link and check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/i-cannot-create-a-new-user-account-Windows-7-the/dee340f7-5da9-402b-9e99-293dbd249a53

    Hope this information is useful.

  • Alarm to monitor the deviation from host profile

    So, I used the creation of Luc alarm script and massacred to create (hopefully) an alert when a host deviates from his profile.  However while I first thought I cracked, I clearly do not have.

    Can we see something glaring by the following:

    # Variables

    $vc = "vcsa.lab.mdb - Lab.com.

    $credential = get-Credential

    $mailto = " " [email protected] "" "

    # Connect to vCenter

    SE connect-VIServer $vc - credential $credential

    $alarmMgr = get-view AlarmManager

    $dc = "London".

    $entity = get-data center $dc | Get-View

    # Create the AlarmSpec object

    $alarm = new-Object VMware.Vim.AlarmSpec

    $alarm. Name = "Violation of the host profile.

    $alarm. Description = "home deviation of profile screens.

    $alarm. Enabled = $TRUE

    # Alarm action

    $alarm.action = new-Object VMware.Vim.GroupAlarmAction

    $trigger1 = new-Object VMware.Vim.AlarmTriggeringAction

    $trigger1.action = New-Object VMware.Vim.SendEmailAction

    $trigger1.action.ToList = $mailTo

    $trigger1.action.Subject = "not compatible with the host profile.

    $trigger1. Action.CcList = «»

    $trigger1. Action.Body = «»

    # 1A - yellow transition-> red

    $trans1a = new-Object VMware.Vim.AlarmTriggeringActionTransitionSpec

    $trans1a. StartState = "yellow".

    $trans1a. FinalState = "red".

    # Transitional 1 b - red-> yellow

    $trans1b = new-Object VMware.Vim.AlarmTriggeringActionTransitionSpec

    $trans1b. StartState = "red".

    $trans1b. FinalState = "yellow".

    $trigger1. TransitionSpecs += $trans1a

    $trigger1. TransitionSpecs += $trans1b

    $alarm.action.action += $trigger1

    # 1 compatible host expression: profile

    $expression1 = new-Object VMware.Vim.EventAlarmExpression

    $expression1. EventType = $null

    $expression1.eventTypeId = "Host" compatible with the profile

    $expression1.objectType = 'HostSystem.

    $expression1.status = "yellow".

    # 2 expression - Profile non-compliant host

    $expression2 = new-Object VMware.Vim.EventAlarmExpression

    $expression2. EventType = $null

    $expression2.eventTypeId = "not compatible with the host profile.

    $expression2.objectType = 'HostSystem.

    $expression2.status = "red".

    $alarm.expression = new-Object VMware.Vim.OrAlarmExpression

    $alarm.expression.expression += $expression1

    $alarm.expression.expression += $expression2

    $alarm.setting = new-Object VMware.Vim.AlarmSetting

    $alarm.setting.reportingFrequency = 0

    $alarm.setting.toleranceRange = 0

    # Create the alarm.

    $alarmMgr.CreateAlarm($entity.) MoRef, $alarm)

    # Disconnect the vcenter

    Disconnect-VIServer $vc - confirm: $false

    I tried first with a green status instead of yellow... but then the script will not yet create.  In its current form, I get a load of the SOAP faults page...

    Any help would be (as always) greatly appreciated.

    -Mark

    With the help of Oynx I have it fixed.  Here's what it is today:

    # Variables

    $vc = "vcsa.lab.mdb - Lab.com.

    $credential = get-Credential

    $mailto = "[email protected]".

    # Connect to vCenter

    SE connect-VIServer $vc - credential $credential

    # Get the data center

    $dc = "London".

    $entity = get-data center $dc | Get-View

    # Create the alarmspec object

    $spec = new-Object VMware.Vim.AlarmSpec

    $spec.name = 'Deviation from host profile.

    $spec.description = 'home deviation of profile screens.

    $spec.enabled = $true

    # 1 expression: profile host is non-compliant

    $spec.expression = new-Object VMware.Vim.OrAlarmExpression

    $spec.expression.expression = new-Object VMware.Vim.AlarmExpression [] (1)

    $spec.expression.expression [0] = new-Object VMware.Vim.EventAlarmExpression

    $spec.expression.expression [0] .eventType = "HostNonCompliantEvent".

    $spec.expression.expression [0] .objectType = "HostSystem.

    $spec.expression.expression [0] .status = "red".

    # Create the alarm action

    $spec.action = new-Object VMware.Vim.GroupAlarmAction

    $spec.action.action = new-Object VMware.Vim.AlarmAction [] (1)

    $spec.action.action [0] = new-Object VMware.Vim.AlarmTriggeringAction

    $spec.action.action [0] .Act = new-Object VMware.Vim.SendEmailAction

    $spec.action.action [0].action.toList = $mailto

    $spec.action.action [0].action.ccList = «»

    $spec.action.action [0].action.subject = "not compatible with the host profile.

    $spec.action.action [0].action.body = «»

    $spec.action.action [0] .transitionSpecs = new-Object VMware.Vim.AlarmTriggeringActionTransitionSpec [] (1)

    $spec.action.action [0] .transitionSpecs [0] = new-Object VMware.Vim.AlarmTriggeringActionTransitionSpec

    $spec.action.action [0] .transitionSpecs [0] .startState = "yellow".

    $spec.action.action [0] .transitionSpecs [0] .finalState = "red".

    $spec.action.action [0] .transitionSpecs [0] .repeats = $false

    $spec.action.action [0] .green2yellow = $false

    $spec.action.action [0] .yellow2red = $false

    $spec.action.action [0] .red2yellow = $false

    $spec.action.action [0] .yellow2green = $false

    $spec.setting = new-Object VMware.Vim.AlarmSetting

    $spec.setting.toleranceRange = 0

    $spec.setting.reportingFrequency = 0

    _this $ = get-view-Id "AlarmManager-AlarmManager.

    # Create alarm

    _this $. CreateAlarm($entity.) MoRef, $spec)

    # Disconnect the vcenter

    Disconnect-VIServer $vc - confirm: $false

    I am now writing a block to edit the task scheduled every hour.

    -Mark

Maybe you are looking for