How to Automate modify of program setting for each package to run only on Win xp.

Hi Guys,
We have SCCM 2012 environment and currently migration form XP to win 7 is going on. We have around 3000+ packages with program setting to run on any platform. 
Now we are in need to change program settings of each package and application to only to run on win xp. 
Please help how we can achieve this...in automatic way....
Please help....
Regards
Ankur
[email protected]

You have to write a powershell script in order to achieve what you want. Given code below without warranty...
$ErrorActionPreference ="Stop"
$cmSiteCode = "" # your SCCM primary site code
$cmServer = "" # your SCCM primary site server
$programs = Get-WmiObject -Namespace "root\sms\site_$($cmSiteCode)" -ComputerName "$($cmServer)" -Query "SELECT * FROM SMS_Program"
foreach ($program in $programs) {
$program.psbase.Get
$programOSDetails = $program.SMS_OS_Details
$supportedPlatforms = Get-WmiObject -Namespace "root\sms\site_$($cmSiteCode)" -ComputerName "$($cmServer)" -Query "SELECT * FROM SMS_SupportedPlatforms WHERE OSName like '%Windows XP%'"
foreach ($supportedPlatform in $supportedPlatforms) {
$osDetail = ([wmiclass] "\\$($cmServer)\root\sms\site_$($cmSiteCode):SMS_OS_Details").CreateInstance()
$osDetail.psbase.Properties["MaxVersion"].value = $supportedPlatform.OSMaxVersion
$osDetail.psbase.Properties["MinVersion"].value = $supportedPlatform.OSMinVersion
$osDetail.psbase.Properties["Name"].value = $supportedPlatform.OSName
$osDetail.psbase.Properties["Platform"].value = $supportedPlatform.OSPlatform
[System.Management.ManagementBaseObject[]]$programOSDetails += $osDetail
$program.SMS_OS_Details = $programOSDetails
$program.psbase.Put()
Pay attention: SMS_OS_Details property in WMI class SMS_Program  is a lazy one.

Similar Messages

  • How to automate the payment program proposal creation

    Hi Experts,
    Another question, as we have to automate the creation of the payment run and its proposal run and then the list should go to specified person, who will check and then the payment run will be executed manually in the system.
    How to automate this?
    Thanks,
    Atif

    Hi,
    For payment run parameter generation you can use the program SAPF110S and for the proposal run execution you can use the program SAPFPAYM_SCHEDULE.
    Schedule these programs via a batch job on periodic basis in steps and give the intended recipients in the spool recipients.
    Regards,
    Gaurav

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • How can I change the default setting for downloading photos from email?

    How can I change the default setting for downloading photos from emails I receive?  It shows the default as Photoshop Elements 4.0 and is not supported by this system.  That was my last computer!!
    Thanks,
    Sheila

    That has nothing to do with styles nor Pages, it is a System/Printer Driver setting.
    You can experiment to see if the Printer Settings stick with your document, but in the past this has not worked.
    Peter

  • How to build dynamic databases(record set) for mobile?

    Hi All ,
    i have an applocation that needs to personalize the data for users .
    i have the data available , but dont know how to personalize it fot users to download special version of my application.
    how to build dynamic databases(record set) for mobile?

    In the load rule in the dimension build settings you would need to go to the tab dimension definition, choose the time dimension and right click on it. Select Edit properties. If you have not done so, set the dimension to be the time dimension. Then go to the generations/levels tab and set the generation names you need. For example if you want YTD, you would set the generation name to Year, if you want QTD set it to Quarter. You would set the number to the generation number that coorisponds to the generation. The DBAG has the list of names for all of the DTS members.

  • I don't want to have to ZOOM every site i visit, how do i save my zoom setting for all sites?

    i don't want to have to ZOOM every site i visit, how do i save my zoom setting for all sites?

    ''how do i save my zoom setting for all sites? not for each site I visit''
    That would be be impossible unless you did away entirely with page formatting entirely. Each author may have their own idea of what you should be seeing and how you are to see it. By site which is the default is about the best that you can do.
    If you have a serious problem you could change the resolution of your display, but it had better be a very large monitor.
    '''NoSquint''', adjust the text-only and full-page (both text and images) zoom levels as well as color settings both globally (for all sites) and per site. Toolbar buttons, percent displays on status bar.
    * https://addons.mozilla.org/firefox/addon/2592
    '''Zoom text of web pages'''
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • How do I get separate iCloud accounts for each family members device and still share iTunes?

    how do I get separate iCloud's for each family members iPhone, iPod and iPad and still share iTunes?

    Have everyone share the same iTunes store ID, but use separate IDs for iCloud.  The ID you use for iCloud does not have to be the same as the ID you use for the iTunes & App store.

  • How do I change the email account for icloud on my iphone only

    How do I change the email account for icloud on my iphone6 only.  I don't want to change my ipad or my husband's iphone6.  Currently all 3 devices have the same gmail account associated with them.  I have created a new & separate apple id and I want that on my phone but I can't figure out how to delete his email from my phone.

    To change iCloud accounts you have to go to Settings>iCloud, sign out, then sign back in with your other ID to create your new account.  If you want to migrate a copy of the iCloud data to the new account, start by saving any photo stream photos that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save Image.  If you are syncing notes with iCloud that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Sign Out, choose Keep on My iPhone and provide the password to turn off Find My iPhone when prompted.  Then sign back in with your new Apple ID to create your new account and choose Merge to upload the data to your new account.  Once you are on a separate account you can go to iCloud.com and delete your husband's data from your account (and he can do the same with yours).
    Just be aware that the current @icloud.com email address cannot be moved to the new account, nor can the current my photo stream album (which is why you need to save any my photo stream photos you want to keep to your iPhone before signing out of the existing account).

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How do I update credit card info for my iCloud Apple ID only (I have a different iTune Apple ID)?

    How do I update credit card info for my iCloud Apple ID only (I have a different iTune Apple ID)?

    I hope by now you found it already, but if not ...
    iTunes Store: Changing account information - Apple - Support
    it is the same as itunes account.

  • Is there a DJ app for the Ipad that will read the "start" and "stop time" setting for each individual song, as they are set in the song Options screen in Itunes?

    Is there a DJ app for the Ipad that will read the "start" and "stop time" setting for each individual song, as they are set in the song Options screen in Itunes? The Ipod Touch, by itself does not allow cross-fading, therefore when the stop time is edited short, the song jusst truncates then goes to the next song. I tried the DJay ap and while it would crossfade, it would NOT read the song settings for the stop marker. So now I want to try and Ipad and see if there is an app that will READ the Itune stop settings within the song. I do NOT want an app that will allow me to DO the stop marker. I want an app that will READ the stop marker from the song as it is set in Itunes.

    Itunes provides the option for setting the Start and Stop times of each music track.  However, the start and stop times do not synchronize to the iPhone.  I don't understand why this option is even available as it doesn't work when listening to music on the phone.  I have not found another application that will support the start and stop time markets.  I have searched quite a bit for this but can't find anything.  I hope we can find something. 

  • Issue:setting for One Person can Occupy only One Position

    Dear Friend,
                      What is the setting for One Person can Occupy only One Position.
    Regards
    MHPO

    Go to Tcode OOVK
    Check the time constraints check the relationship for the objects  S  0008  make time constraint as 1 in place of 3
    other way is useing the User Exit

  • I have 2 ipad2s on one account. can i share the apps purchased rather than having to purchase same app for each.  I am only user.

    I have 2 ipad2s on one apple/itunes account.  can i share the apps purchased rather than purchase the same apps for each ipad2
    . i am only user.

    .... And you can put them on as many iDevices as you own. There is no limit as long as you use the same Apple ID and iTunes account for all of the devices.

  • How can we modify XSL-FO template for generic FSG program

    I need to modify a XSL-FO based template used by Generic FSG in Oracle Appkications 12 R.
    I need to modify it so that data can be viewed as
    - landsacpe
    - fit to one page
    - page size = letter.
    Please let me know if how we can modify it ,
    do i need to learn XML and XSL-FO ,
    or i can do it with the help of a tool
    Thanks a lot.

    Hi,
    We have the same requirement. We want to do some format changes to "Generic FSG Drill Template" (GENERICFSGDRILL_en.xsl). I am able to do few changes. But when we run the report, we are able to see PDF, html output. But 'Excel' output comes with blank data. Can you help on this. How were you able to do the changes.
    Can you send suggestions if any to my mail id ([email protected])
    Thanks in advance.
    Thanks,
    Techie.

  • How to activate a different sub-report for each row in the data set as main report page breaks on each row of data in the main dataset

    I am going to try asking this same question a different way as I have yet to find a working solution to my problem.  I have a main report and then 8 sub reports.  My main report has one data set and returns one row of data per account number.  One
    of the fields in the main data set is called AccountProf.  My main report displays one page per Account number and then calls a different sub report based on that account's AccountProf value.  The sub reports take in the account number as a parameter
    and get multiple rows of data to display that accounts usage formatted differntly for each AccountProf (hence the 8 different sub report.  
    So far I can figure out how to do everything but setting the visibility property of each sub-reports when I have multiple accounts.  If I use the following expression for the visibility property on each sub report, it makes all the applicable sub report
    for all the accounts requested visible at once:
    =IIF(Fields!AccountProf.Value= "USE_PLUS_DMD",False,True)
    *The value in bold USE_PLUS_DMD  is different for each sub report.
    Here is a look at what the main report look like:
    Here is the main reports data set:

    Hi JasonDWilson77,
    According to your description, there is a main report and 8 sub reports in the report, you want to set visibility of sub reports, if no value is passed to the parameter of sub report, the sub report will not be displayed. If that is the case, please refer
    to the following steps:
      1. Create a new parameter named NewAccountNumber, set its data type the same as @AccountNumber, select Allow multiple values, set Visibility to be hidden, then set all available values to default values.
      2. Right-click the first sub report and open Subreport Properties dialog box, click Parameters in left pane, set name to AccountNumber, then click (fx) button, type the expression like below:
    =Parameters! NewAccountNumber(0)
      3. Click Visibility in left pane, select Show or hide based on an expression, then click (fx) button and type the expression like below:
    =IIF(InStr(Join(Parameters! AccountNumber.Value), Parameters!NewAccountNumber.Value(0))>0 , false,true)
      4. Modify parameter of other sub reports like step2.
      5. Set visibility of other sub reports like step3.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

Maybe you are looking for

  • IMovie HD refuses to import .MOV clips that it used to import.

    I've got an odd problem. Doing a search didn't turn up anything relevant to my situation so I'm gonna try to pick some brains on here. My Problem: My version of iMovie(5.0.2) no longer recognizes .mov clips that it used to. Meaning that when I try to

  • Video is backwards in iChat and Photobooth

    It was just brought to my attention that when using any built in iSight camera with iChat or photobooth the video is actually reversed....hold something with writing up to the camera and you will see everything backwards. Does anyone know how to reve

  • Link PO

    hi how to link PO number and MRP controller. iwant sort PO numbers based on MRP controller. please provide me the related table name regards sun

  • Skype 6.4 continues to leak memory at an astonishing rate? Hard crashes ALL my Macs

    Last version of Skype 6.3 leaked memory like a river full of rapids. And once it gobbled up 1.5gigs or so of memory, it HARD crashed my iMac requiring a hard reboot. It only takes about 30 minutes for skype to do this. My iMac (2012 Core i7 3.4ghz 32

  • Storage Bin Type Search

    This question relates to teh storage bin type search.  When a storage bin type is assigned to a number of different storage unit types, when the systen is trying to putaway a material, does it assign preferentially according to how storage unit types