How to set Business Hours with script?

I have a single SCCM 2012 SP1 CU4 server running on Windows Server 2012.
My business has multiple locations and some of them have different hours of operation.  I am wanting to change the "Business Hours" for some of these sites and looking for the best way to do it.
I found this guide that uses PowerShell, but I get a "Script is not signed" error:
http://powersheller.wordpress.com/2012/11/20/sccm-2012-setting-software-center-business-hours-with-a-compliance-configuration-item/
I saw Torsten's example using a VBscript, but I get an "Incorrect function" error:
http://www.mssccmfaq.de/2012/03/26/software-center-business-hours-auslesen-setzen/
Both of those web pages look like they were done a couple years ago so I hope everything still applies.
Any help would be great!
Thanks

For the Powershell one... make sure you have two things. In the ConfigItem, for the Compliance test, you did check the box about "run the specified remediate script ..." right?
for the Baseline, when you assigned it, you did check the box about remediate when you deployed it to the collection?
If either or both of those are missing, what you are doing is monitor only... so the remediation script won't ever actually run, so it's monitoring only.  So it would make sense that you are getting non-compliants back.  You aren't ever asking
it to really run the remediation piece.
EDIT:  Just referencing this here... just in case: 
http://blogs.technet.com/b/server-cloud/archive/2012/03/28/business-hours-vs-maintenance-windows-with-system-center-2012-configuration-manager.aspx  Sometimes people misunderstand what a business hours definition means vs. what a Maintenance Window
(Service Window) means in Configmgr 2012.  If you aren't 100% positive what the difference is, read through that blog just to get it straight.
Standardize. Simplify. Automate.

Similar Messages

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • How to set up SAPconnect with email server

    Hi,
    Does any one know <b>how to set up SAPconnect with email server</b>
    We are using workflow and when it fails it we are sending the notification mail to the user on his company mail id, i.e. [email protected]
    This is working in the current production system. We are doing the new development which will replace the current production system. The existing Basis team does not know how it was setup in production system and how to set it up in the new system.
    When we send any mail notification from workflow we can see the mail in SCOT transaction but it is not received at the specified mail address.
    Can any one provide the configuration steps or any document for this.
    Thanks in advance..
    Pratik

    Hi Pratik,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SMTP.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • How to set page numbers in scripts

    Hi,
        i want page numbers at bottom of page,
      please tell me how to set page numbers in scripts?

    Hi,
    In footer
    use this
    &PAGE& / &SAPSCRIPT-FORMPAGES&
    &PAGE& of &SAPSCRIPT-FORMPAGES&
    reward if it helps..
    regards,
    Omkar.

  • How to link Business Place with plant

    Dear Expert,
    We are getting Business Place wise FBL3N report for Vat Payable GL code.
    We have created Business Place under Extended Witholding Tax tab.
    We are generating tax invoice in different plant.
    But how to link Business Place with plant so that FBL3N report will show Business place.
    Regards,
    Alok

    You can't make an entry directly to production server.
    You have to make the changes in Dev server then transport it to production server.
    Try the follow path
    SPRO-IMG-Cross-Application Components-General Application Functions-Place of Business-Assign Business Places to Plants.

  • HT3546 So i recently bought an Apple AirPort Extreme BaseStation (the mushroom shaped one) and was wondering if someone could tell me where and how to find a power cord and how to set it up with my Macintosh (2011 edition with 1.7.5) Thankyou! :)

    So i recently bought an Apple AirPort Extreme BaseStation (the mushroom shaped one) and was wondering if someone could tell me where and how to find a power cord and how to set it up with my Macintosh (2011 edition with 1.7.5) Thankyou!

    Welcome!
    Last question first, as we need to know what operating system that the Mac is using.
    If you are not sure, click the Apple icon in the upper left corner of the screen, then click About This Mac, and post back with the OS X Version number that you see there.
    Two possible solutions on the power cord
    ORIGINAL OEM APPLE AIRPORT EXTREME BASE STATION POWER SUPPLY AC ADAPTER A1202 if you want a white power supply and white power cord to match up with the Apple device
    AC adapter for Apple AirPort A1034 Extreme B... if you don't care what color the supply and cord might be
    If you don't already have a Setup Guide.....look here:
    AirPort Extreme Base Station Setup Guide v4.2 (Manual)

  • How to set this filters with 'or' relationship

    Hi Pros,
          I have a query as follows, rows and columns are all in structures.
                                                       regular_employees
                 active_employees
                 lay_off_employees
         I want to set up filter as ' employ_status = 0 or employ_subgroup =2' for this query, please tell me how to set this filters with 'or' relationship.

    Hi Yifei,
    Create a formula and enter this (let's name this FORMULA_KF):
    ((EMPLOY_STATUS = 0) OR (EMPLOY_SUBGROUP = 2)) * enter value IF_TRUE + enter value IF_FALSE
    Then create the condition to HIDE the rows having those values to be filtered (if this is your purpose)..
    Like,
    FORMULA_KF <> 1
    Is this what you want mate?
    Regards,
    Loed

  • How to set task description with paragraphs at runtime

    Hi Experts, How to set task description with paragraphs at runtime. Now, i can set single content in task description.however, not sure, how to set content which have paragraphs.

    Hi,
    You can use HTML tags in the Task descritption.
    Open the task not the workflow and there you can provide
    <p> content/containers </>
    You can use even <u>- Underlined text.
    <h> for bold text
    Thanks,
    Sarayoodharan.K

  • (Bash) How to set a variable with text from a file? [SOLVED]

    I'm having a little problem.
    I have textfile with a single line of text. What I want to do is set a variable with that line of text. How do I go about doing that?
    A simple var="text" wont work in this case, since the text in the file changes with another script of mine.
    Thanks in advance.
    Last edited by Aziere (2007-03-27 09:07:03)

    if you have a file with more than one line but you only want the first line you could use 'head'
    VAR=`head -n 1 file`
    Last edited by SiD (2007-03-27 05:58:33)

  • How to setup Business Group with Global Legislation?

    Hi All,
    We are exploring possibility of creating International Business Group with no Legislation Code for our client. The client has operations in multiple geographies.
    I found following document in Metalink
    How an International Business Group be created with no Legislation Code? [Doc ID 851711.1] It mentions "Global legislation must be installed in order to set up a Global Business Group. The business group is created just like any other, but with Global legislation selected. You will need to use Global responsibilities to access it."
    When we tried to create a business group with Legislation Code as 'Global" we did not find any such Legislation Code in dropdown of *Business Group Info classification.
    Has anybody implemented Global Legislation before? Any information on Setup Steps, Challenges faced, bugs and issues faced with other modules especially OTL would be appreciated.
    Thanks in Advance,
    Amit
    Edited by: user10450466 on Jan 22, 2010 12:23 AM

    I wasn't aware there's any such thing as 'Global Legislation' in HRMS and I think the Metalink Note you mention is misleading. There are multiple concepts here being mixed up.
    hrglobal and Data Installer
    Oracle deliver legislative seed data through hrglobal and Data Installer. When a DBA runs this they pick the legislations they wish to install. That includes legislations such as US, GB and all legislations where Oracle HRMS deliver seed data (Fast Formulas, balances, etc). One of the options here is 'Global', which ensures that common seed data used across multiple legislations is installed. This process does not create new legislations - it just creates the seed data used by those legislations. 'Global' is not a legislation - it just means that the relevant seed data (Fast Formula, balances, etc) is typically delivered without the legislation_code column being populated.
    Business Groups and Legislations
    A Business Group is intrinsically tied to a Legislation Code - they have a one-to-one relationship. When you define a Business Group you have to pick a Legislation and that list of Legislations comes from fnd_territories_vl. The list in fnd_territories_vl has nothing to do with hrglobal or Data Installer. There is no 'global' territory.
    International HR & Payroll
    If you are implementing HRMS in a country where Oracle HRMS do not deliver any specific legislative seed data or functionality (ie, the legislation isn't listed in Data Installer) you have the option of using International HR & Payroll. This allows you to install generic seed data into the legislation of your choice, which is again a list from fnd_territories_vl. Again, there's no concept of 'global' legislation. Information on that is available here:
    International HR and Payroll [ID 261452.1]
    International Implementations
    Customers, like yours, who are rolling out Oracle HRMS to multiple countries have a big choice to make: single or multi Business Group. If you opt for one Business Group you create employees in multiple countries all within the same Business Group. That Business Group is tied to just one of those country's legislation codes - which you go for is up to you but that's generally the Legislation Code of the International HQ. The problem with this approach is that you can't leverage the legislative-specific functionality for each of the other countries.
    If you opt for multi-Business Group you typically define one Business Group for each country so that you leverage the legislative-specific functionality for each country. This is generally more popular but doesn't suit everyone: you can have problems with employees transferring from one country to another, etc.
    Global Structures
    Oracle HRMS has forced you to tie a Business Group to a legislation code for many years. As mentioned above, this causes a number of problems. To mitigate those, Oracle have delivered a number of enhancements that help you model global businesses:
    1. Global Organization Hierarchies
    2. Global Security Profiles
    3. Global Overseas Deployment functionality (nickname GOD/GOLD)
    4. Cross Business Group profile option
    5. etc
    I hope that helps.

  • How to set a keyframe with setValueAtTime for only one axis?

    Hi,
    I´d like to set a keyframe for the layer´s scale, anchor point values but separately. Let´s say I want to add the following keyframes to a layer:
    time: 0, value: 100, axis: X
    time: 0.3, value: 10, axis: Y
    time: 1, value: 110, axis: X
    If I use setValueAtTime(time ,[x, y]) it always places a keyframe for both axis.
    How can I set a keyframe with setValueAtTime for only one axis?
    Regards,
    Thomas

    Dan, thanks for your fast reply. But the problem is a bit difficult to describe for a german like me
    I´m try to convert given keyframes from another application. Let me visually show how it handles keyframes that are set on different axis at different times:
    X: O---O---O
    Y: ---O--O-O
    You see when the user sets a keyframe and both axis were modified, both have a keyframe (see the last key). But if only one axis is transformed and the other not, there is only one keyframe. The problem that I try to solve is that AE is only able to set a keyframe for both axis at a given time. So if I set the 3 keyframes of the X axis first, the AE script will set keys on the Y axis simultaneously. That´s bad because it adds keyframe to the other axis where there is no value "cache". So if I would set all keyframes it would look like this:
    X: O--•O-•-O
    Y: •--O•-O-O
    The small dots indicate those "forced" in-between keys.
    So is there a "native" scripting way to separate the dimensions (like the position prop) for other props and add independent keyframes?

  • How to create business partner with Role : "Loyalty Partner"

    Hello,
    During the creation of Loyalty Program, we can add loyalty partners which are Business Partners created with Role --> "Loyalty Partner". In standard package I could not see the the Role "Loyalty Partner"
    For this role to be available during the creation of Business Partner, does any business functionality needs to be activated or should we create new role "Loyalty Partner" through BDT
    Thanks
    Ram

    Hi Vishal
    Thanks for your explanation but I think it has not answered my question fully.
    Yes, I do agree that only Loyalty Partners can be added in a Loyalty Program and those are Business Partners.
    If you read through my question, I have asked how the system differentiates between Business Partners for example a sold to party and Loyalty Partner.  In other words, which part of data in the Business Partner is the one which actually differentiates a Loyal Partner with other Business Partners. I think, just creating a Business Partner with Role --> Loyaly Partner will not serve our purpose.
    The BP view is the same and the BP Role category does not contain my customization to differentiate this
    Hope you understand what I am trying to say. Please let me know if you have any questions !!
    Regards
    Ram

  • How to set 'error' status with DB poll Adapter in OSB

    1. Configured DB Adapter to poll rows with status 'notprocessed' and set the status to 'processed'
    2. Configured FTP Adapter to write fetched rows from DB into a CSV file
    Now my requirement is if any error like FTP server is not available, how to set the status in DB table to 'error'

    Yes Vlad you are right, this will avoid another DB connection created in Error Handler.
    I hope this will provide some lights on the usefulness of "Transaction"
    http://www.nysolutionsltd.com/transaction-handling-in-oracle-service-bus/
    http://kd-blog-tech.blogspot.com.au/2010/12/transaction-management-for-osb-service.html
    Regards
    RK
    Edited by: RK.. on 27/03/2013 17:10

  • How to set new extreme with old extreme

    how do I set up a gen 3 airport extreme using ethernet wire to newest extreme just bought it yesterday, not set up yet)  to extend  wireless network to far side of house

    I am using my IMac osx 10.8 to make any changes to network and will use it to set up new AEBS,
    Got it, the new AEBS will be the "main" router on the network.
    where I want to put my 3 gen AEBS  as a wired extender of network
    Got it, the older 3rd Gen AEBS will connect to the new AEBS using a wired Ethernet connection and extend the nework.
    Anyway. is this how I should set up my network to extend it with using my gen 3 APBS  and with my new APBS 6h gen?
    Once you have the new AEBS set up and working as your "main" router, other than making the physical Ethernet connection and typing in a device name that you want to use on the 3rd Gen AEBS, AirPort Utility will take care of all the settings for you automatically. You do not need to worry about any of this.
    2nd question, if I get a new AXAC will I get better speeds or will I just get N speeds?
    Not sure what you are asking. Only the new AEBS (and Time Capsule) will deliver 802.11"ac" speeds. Your 3rd Gen AEBS will deliver "n" speeds as will an AirPort Express.
    3rd. can i after I set up a roaming network then use my old AX (A1264) to stream music to speakers/stereo?
    Yes
    will it be able to be wireless, or will the dreded Apple rule of not using 3rd repeater come into play?
    Wireless
    Also do you have any fixes for Roku 3 not playing well with the new APBS
    Sorry, I have no "hands on" experience with any Roku products, so cannot help on that.
    Suggested plan:
    First, get the new AEBS set up as your new "main" router and check it out for proper operation. AirPort Utility will guide you through the setup.
    Post back when you have done this and then I will provide tips on how to set up the 3rd Gen AEBS to extend the network using Ethernet. Setup is very easy if you follow the steps.
    Once the 3rd Gen AEBS is setup and working, then the A1264 AirPort Express will get attention. Setup will very easy using AirPort Utility.

  • How to set volume using Powershell script?

    I would like to know on how to set volume under Window 7 Home 64 bits system using Powershell script.
    Such as 8000 levels as default
    Does anyone have any suggestions?
    Thanks in advance for any suggestions
    Thanks in advance for any suggestions

    Try this.
    Function Set-SpeakerVolume{
    Param (
    [switch]$min,
    [switch]$max,
    [int]$Percent
    $wshShell = new-object -com wscript.shell
    If ($min){
    1..50 | % {$wshShell.SendKeys([char]174)}
    ElseIf ($max){
    1..50 | % {$wshShell.SendKeys([char]175)}
    elseif($Percent){
    1..50 | % {$wshShell.SendKeys([char]174)}
    1..($Percent/2) |% {$wshShell.SendKeys([char]175)}
    Else{
    $wshShell.SendKeys([char]173)
    This works in Windows 8.1.
    Stolen / Modified from
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/07/28/weekend-scripter-cheesy-script-to-set-speaker-volume.aspx, which took me 20 seconds of (apparently) lucky searching.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Maybe you are looking for

  • HP B210a no longer connects with my MacBook Pro

    After nearly two years of almost seemless operation, my HP B210a Photosmart Plus printer does not connect through the wireless network to my MacBook Pro.  This happened despite the fact that my Internet provider, wireless router and physical set-up h

  • How do i stop iPad deleting emails from server

    Hi - I am using a Ipad Air and am having an Email issue. When I delete on Ipad it automatically deletes on Server. This never used to happen. I have tried all the usual of changing the Advanced setting but still no joy. Any Ideas? BTW using BTinterne

  • Table QMEL: Adding a Z field

    Hi guys. I want to ask you about how to add a Z field into the Notifications table QMEL. Please, I need your help. Thank you. R.Romero. Moderator message: appending Z-fields is standard functionality, please read documentation before asking. Edited b

  • 5800xm Changing IP adress every 1/2 seconds

    I have problem with my phone, when im connecting by any browser, opera mobile/mini/or software one, i got my IP changing every 1-2 seconds, its always range (in ex. 212.2.99.200-205 so there is changing only lust number), i checked the sim card on ot

  • SB Audigy 2ZS Programs not working after Vista Instal

    hey yours, after installing Windows Vista, many of mind Creative program are non-working. ex. creative surround mixer, EAX, THX ( all these program are came from the CD when I purchase the sound blaster audigy PCI card. even updated the latest driver