Change Site Code

Hello,
Long story short.  I had a image/task sequence I exported from a old sccm server.  I imported it to a new sccm server.  Now when I image a machine it doesn't get a site code nor can it find the new site.  Is it possible to fix this without
creating the image?  Thanks.
Charles

Hi Nick,
Yes.  I'm pretty sure it is.  Installing the client is not part of the task sequence is it?  It would seem like it would be possible just to add this to the task sequence but I'm not sure.  Thanks.
Charles
Yes, installing the client is part of an OSD task sequence. Specifically, the Setup Windows and Configuration Manager step will install and setup the client. You may just need to add the SMSMP installation property to the setup step in your TS.
https://technet.microsoft.com/en-us/library/gg699356.aspx
-Nick O.

Similar Messages

  • How do I change the assigned site code on a REMOTE client via WMI (C#)?

    Hi
    I was wondering if it is possible to change the site code on a client remotely via WMI. I have found one or two links to this, eg
    http://msdn.microsoft.com/en-us/library/jj874135.aspx
    and
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/67b671bb-4819-4e7a-a4f6-6cb7ded17722/sccm-2007-change-assigned-site-code-on-clients?forum=configmgrgeneral
    However none of these will allow me to change it remotely directly from my machine. I have written a tool which fixes many issues but having difficulty with this one. In the past I have even resorted to copying a script remotely to an affected machine then
    setting a remote scheduled task which executes the script. This was effective but very dirty! I find it difficult to believe there is no way to do this directly but can't seem to find anything suggesting it is possible.
    Before anyone replies with a 'what are you trying to achieve...' type answer, I have a similar situation to that of the guy in the second link but I would like something more instant.
    Many thanks

    psexec or winrm will allow you to do this.
    Jason | http://blog.configmgrftw.com

  • SCCM 2012 - Change Distribution Point's Site System Properties Site Code

    Hello All,
    I'm hoping someone can help me out. Here's what I have and here's what I'm trying to do.
    SCCM 2012 R1 
    Each of our offices has a Windows 7 SP1 Ent PC that is a distribution point for that office's 10-20 machines. A number of these offices and their DPs were setup prior to me setting up a number of Secondary Site Servers. So right now, these DPs' site codes
    are the primary site server's. I'd like to change these to one of the Secondary Site Servers.
    When I go to the Site System properties of one of these Win7 distribution points, the Site Code is grayed out.
    So, the question is, how can I change one of these DPs' site codes?
    Thanks in advance to whomever helps!!
    Bill

    That's a strange reason for using Secondary Sites. How many clients are you managing? Have you good WAN links?
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Remote Site Code change

    Does anyone know of a trick to get the SCCM Client Center (by Roger Zander) to change the site code on a remote system?  I change the site and click the blue save floppy disk icon, and no errors but it doesn't work.  I found a VBScript
    example that does it on the local system but can't get that to work unless I use PsExec.
    Ideally I'd like to change the site code for amultiple systems in a list, rather than one at a time.  Any suggestions? 

    Is the site code for a site in the same hierarchy or a new one? If it's in a new hierarchy, chaning the site code of a client will fail because the client des not have the trusted root key for the new hierarchy:
    http://blogs.technet.com/b/configmgrteam/archive/2009/04/09/reassigning-a-configuration-manager-client-across-hierarchies.aspx.
    If it's the same hierarchy, you need to look at the client log files to figure out what is going wrong, specifically LocationServices.log.
    For a script to change the site code en masse, you should be able to use the one posted in the last entry in this thread:
    http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/90272410-19d8-4bb7-8ad1-fc9ff53aff72.
    Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys

  • SCCM clients automatically changes its site code to another

    Hi,
    We are running SCCM 2012 in windows server 2008 R2 . We have different sites based on different countries, eg: India, UK and US. My issue is that some of the clients which were reporting to a site is automatically changes its reporting to some other
    site. Considering the above countries, I must say that the clients which were reporting to India(IND) is now showing its site code(site assigned) as UK in console. This makes the clients to not to communicate with our server and 'Client activity' is not
    showing any status(just blank). Initially I have reinstalled those clients and those were showing correct site code. After few days some among the reinstalled ones and few other clients are again reporting its site code to UK. What might be the issue?
    Your suggestions are most appreciated.
    Quite strange thing is that when I checked the configuration manager in client side it is showing the correct site code and reporting to the correct server.

    Either someone pushed the client from the wrong site or there's a GPO in place that reassigns them. CM clients won't automatically reasign themselves.
    Torsten Meringer | http://www.mssccmfaq.de

  • Adding Multiple files to many Sharepoint Sites based on the Sites Code (Splitting the data using a code)

    Hi,
    I'm pretty new to Sharepoint and wanted to ask a question to see if it can actually do what we need it to do.
    We would have a top Site within a collection and under this we would have 400 sites for different sections of the business (External) Lots of teams create documents for all these sites and use the Code of the site in each document so we know what business
    site its going to. For example 67890_BusinessReportMay.docx We know this document should be heading to site 67890 
    We have lots of services sending data to these 400 business sites. If we were to do them manually it would take most of our time to go to each site and upload the documents, even if we could do all the sites documents in 1 multiple upload. We still have
    to go to each site to do it
    Is there an easy answer to this? At present I have folders to match each of the 400 Sharepoint Sites and I use an Integration Services package to move all the documents into these 400 Matching folders. I do this using the Code at the start of each file name.
    If it doesn't have a code its put into an error folder and reported back on.
    Then I want something to automatically go through each of these folders and load them into the Sharepoint Sites document libraries. 
    OR
    Say you have 600 files all going to the 500 sites on Sharepoint in one folder. The File contains meta data regarding the Sites Code.  Using this you can split the files and automatically pull them across to the Sharepoint Sites without having to go
    into each Sharepoint Site?
    I'm thinking that you cant do this and I'm hoping I'm wrong. Any help would be greatly appreciated.  
    Debbie

    Hi Debbie,
    According to your description, my understanding is that you want to move the documents to different sites based on the code in the name of the files.
    I recommend to create workflow and set the workflow to start when an item is created to achieve this goal.
    As there is no built-in action which can move the documents cross site, we need to use the custom activity 'Copy List Item Extended' which need to be downloaded from
    http://spdactivities.codeplex.com/.
    Please per the steps in the link below to deploy the custom activity to SharePoint:
    http://social.technet.microsoft.com/Forums/en-US/82609160-152f-461a-9a19-0e996f5a309b/sharepoint-2010-archiving-the-files-from-one-document-library-to-another-document-library-in
    After that, we can create a workflow to meet the need.
    Here is the detailed steps to create the workflow:
    Create a column in single line of text type(called NO for example) in the library where the documents are uploaded, and input value manually in the column to store the code when uploading the documents. (We can also use workflow to extract the code from
    the name of the documents if the codes are always 5 numbers.)
    Create a workflow associated with the library and set the workflow to start when an item is created.
    Select If current item field equals value, change the settings to be If Current Item: NO equals 67890.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at site 67890 URL.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Create other conditions from step 3 to step 5 to copy the documents to different sites and delete current documents.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Change as2 code to as3

    I used a tutorial http://www.flash-game-design.com/flash-tutorials/funky-flash-website-tutorial-5.html to make a menu for my application, I've tried following tips on how to change AS2 code to AS3, but it just doesn't work.
    menu = ["bulls", "about", "roster", "schedule"];
    var current = menu[0];
    for (var i = 0; i<menu.length; i++) {
    var b = menu[i];
    this[b+"_btn"].stars._visible = false;
    this[b+"_btn"].txt = b;
    this[b+"_btn"].onPress = function() {
    _root.site[current+"_btn"].stars._visible = false;
    _root.site[this.txt+"_btn"].stars._visible = true;
    current = this.txt;
    _root.site.content.gotoAndStop(this.txt)
    this[current+"btn"].stars._visible = true;
    this.onEnterFrame = function() {
    this[current+"_btn"].stars.s1._rotation += 1;
    this[current+"_btn"].stars.s2._rotation += 0.5;
    Thank you,
    Glenn

    Just a note. Function declarations in a loop is an EXTREMELY bad practice that will lead to many problems if it doesn't have some already. So, the following lines:
    for (var i:int = 0; i<menu.length; i++) {
        var b:String = menu[i];
        this[b+"_btn"].stars.visible = false;
        this[b+"_btn"].addEventListener(MouseEvent.CLICK,fn);
        this[b+"_btn"].txt=b;
        function fn(e:MouseEvent):void{
            this[current].stars.visible = false;
            var nam:String=e.target.parent.name;
            this[nam].stars.visible = true;
            current = nam;
            //MovieClip(root).site.content.gotoAndStop(this.txt)
    should be:
    for (var i:int = 0; i < menu.length; i++) {
         var b:String = menu[i];
         this[b+"_btn"].stars.visible = false;
         this[b+"_btn"].addEventListener(MouseEvent.CLICK,fn);
         this[b+"_btn"].txt=b;
    function fn(e:MouseEvent):void {
         this[current].stars.visible = false;
         var nam:String=e.target.parent.name;
         this[nam].stars.visible = true;
         current = nam;
         //MovieClip(root).site.content.gotoAndStop(this.txt)

  • How to force site code discovery on all the clients, Migration SCCM 2007 to SCCM 2012

    HI,
    I migrated SCCM 2007 to SCCM 2012 SP1, but the clients does not update the New Site Code Automatically, if I click on Discovery option the client find the new site, but I need do this automatically because are too many clients.
    This registry key does not  exist on client computers.
    HKLM\Software\Microsoft\SMS\MobileClient\GPRequestedSiteAssignmentCode
    HKLM\Software\Microsoft\SMS\MobileClient\GPSiteAssignmentRetryInterval(Min)
    HKLM\Software\Microsoft\SMS\MobileClient\GPSiteAssignmentRetryDuration(Hour)
    Any Help?
    Thanks.

    Hello ICH-CR,
    Thanks for writing to the SysCtr ConfigMgr forums.
    I think there are multiple solutions to this issue and you can choose whatever fits best to your scenario.
    1. While upgrading the clients from SCCM 2007 to  2012 you can assign the clients to your ConfigMgr 2012 site.
    http://technet.microsoft.com/en-us/library/gg682060.aspx#BKMK_AutomaticAssignment
    You just need to ensure that you have a boundary group and boundaries. More details on
    http://technet.microsoft.com/en-us/library/13694ac5-8f3b-42a9-8040-b23f21c79637#BMBK_CreateBoundaryGrp
    I would suggest the first method because if you create  another child site, you shouldn't have to reassign the clients back again. If that is unlikely then use the following script which is method no 2
    2.
    http://gallery.technet.microsoft.com/scriptcenter/Change-sccm-configmgr-cf6e0327
    This is a VBSCRIPT and  can be ran from a network location using the PSEXC
    3. Here is a smaller script
    'Replace with your Site Code sSiteCode = "EnterNewSiteCode"
    sMachine
    = "."
    set oCCMNamespace
    = GetObject("winmgmts://"
    & sMachine & "/root/ccm")
    Set oInstance
    = oCCMNamespace.Get("SMS_Client")
    set oParams
    = oInstance.Methods_("SetAssignedSite").inParameters.SpawnInstance_()
    oParams.sSiteCode
    = sSiteCode
    oCCMNamespace.ExecMethod
    "SMS_Client",
    "SetAssignedSite",
    oParams
    You can use this script as a logon script .
    Anurag
    Microsoft Certified Professional| Microsoft Certified Technology Specialist (ConfigMgr)
    This posting is provided 'AS IS' with no warranties or guarantees, and confers no rights.
    My Blog
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • When i copy code from DW to BC it change the code inside BC

    Hi
    I'm uploaded a html page to a BC account from Dreamweaver and BC changed some of the code,
    I tryed to open the Site Manager / Pages and the page i uploaded and did a copy & past to get the code inside, but it still changes the code.
    Im trying to get the code <i class="icon-caret-down"></i> in but it change that code to <em class="icon-caret-down"></em>
    Anyone know why this is happening or how i can go about this??
    Best
    Morten Håland - Sitespark

    The editor inside BC is XHTML compliant and will edit things into that format unfortunatly. Try to avoid using it for anything other then content.

  • I changed the code for saving usernames and passwords, it didn't work, so I restored a backup of the code I had made, now usernames and passwords don't work at all. Help?

    I found a method online to force firefox to save usernames and passwords which the site itself requested not to be saved. I made a backup of the file on my hard drive, moved it to the desktop, changed the code and tried it. It didn't work as expected so, I deleted that file, returned the original file to it's appropriate place and restarted firefox. Now it won't save ANY passwords or user names, even on sites it previously did so. I've tried reinstalling over the existing copy, and would REALLY prefer not to uninstall/reinstall since I have a ton of bookmarks, addons etc, which I don't want to have to restore. Has anyone encountered this issue? or have a suggestion on how to fix it?

    Do you still see names and passwords in the Password Manager?
    Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    You can still reinstall Firefox. Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected.
    See also http://kb.mozillazine.org/Password_Manager (Troubleshooting)

  • How can I set a DEFAULT zoom size at ctrl+++ that will hold while changing sites--even in private browsing?

    How can I set a DEFAULT zoom size at ctrl+++ that will hold while changing sites--even in Private Browsing?
    I'm just starting using Firefox but I won't be using it for long if I have to re-size the screen with every new location viewed.

    Try this add-on
    [https://addons.mozilla.org/en-US/firefox/addon/6965/ Default FullZoom Level ]

  • How to change tax code while processing sales order dynamically

    Hi
         we need to change the tax condition value whenever Value inclusive tax more than 5250  then it has to capture different tax code ( 12.5 percent ) else it should capture existing tax code ( 5 percent ), is there any user exits or can we do through configuration
    Regards,
    Sekhar.K

    Hi,
    Please change the Tax code in Purchase order instead in Invoice.
    There  is a facility available in Purchase order  for mass change of any field at PO level.
    Entere the Tax code V0 and keep the cursor in Tax code field , then select Fast Change icon besides Copy item Icon above, you will get New values, enter V0 here and then select the radio button all items below and execute it, you will find all your line items will be having V0 tax code.
    This is a best practise to change Tax code at PO level.
    AMIT

  • Need to change Tax code in po but GR and IR also completed

    Hi Gurus,
                I have one issue in the po, the line item "xxxxxxx" in the PO It shall be 36 instead of 39.but it is GR and IR also completed,now we need to change the Tax code,for this we need to cancel IR and GR or without cancel GR, IR also we can change Tax code,please guide me.,but  i am thinking this below mentioned steps to maintain for change the Tax code.
    (1) cancel IR
    (2) Cancel GR for line item  "xxxxxxx"
    (3) Change tax code for line item "xxxxxx" from 39 into 36
    (4) Re-post GR for line item "xxxxxx".
    (5)Re-Post invoice for line item  "xxxxxx"
    These steps are required to change the Tax code in the po or not
    please guide me,
    Thanks for your reply.
    Regards
    SAP MM

    Hi,
    If the Tax amount is merged to the expense/revenue account as per the Tax configuration.
    Then if the tax code is V1 --Tax amount is 100 Rs
    The system will post that amount to material account and same will be GR/IR.
    When you do the MIRO the GR/IR will match & vendor account will update.
    If the Tax amount is posted to seperate a/c then tax amount will not merge to material account so at GR tax amount has no reflection but in MIRO system will post the tax to seperate G/L account and vendor is updated with Material Price + Tax amount, GR/IR will be same as MIGO .
    hope you understand.
    rgds
    Chidanand

  • I live in the UK but visit the US regularly. The price of a new MacBook Pro is much less in the US, and is where I plan to buy one. However, I have read that a US machine will not play UK DVD's. Is this true and if so is it possible to change the codes?

    I live in the UK but visit the US regularly. I plan to buy a MacBookPro in the US but have read that it will not play UK DVD's. Is this so? If so, is it possible to change the codes?

    All modern & new Macs can play both PAL and NTSC DVDs.  I do it all the time and it works perfectly.
    The DVD drive is set to its first region code when you first play a DVD in it.  So when you buy a Mac, whatever type of DVD you play first will determine the initial region code that is set.   If it's a PAL/Region 2 DVD it will set the DVD drive to region 2.
    The only thing you have to watch out for is if you have a collection of DVDs that have different region codes.  In those cases you may be faced with changing the region code in the DVD drive in order to play one or more of the DVDs; and as others have noted there is a limit to the number of times you can change the region code (most modern DVD drives allow up to 5 changes; the 5th change becomes the permanent change).  This is due to industry licensing practices.
    If you have DVDs that are Region 0 or All Regions you don't have to worry about region codes.

  • How to configure roles at runtime without changing application code?

    Hi,
    We have implemented Custom Login Module security for our application. Our requirement is to configure the roles without changing the application code.
    Our Authentication Type is 'JAAS With Custom Login Module' and Authorization Type is 'JAAS'.
    According to 10.1.3 section of JhsDevGuide1013.pdf, we need to configure the roles in web.xml and also need to give the role in the 'Authorized roles/permissions' section of the group.
    We dont want to change the application definition once we go live just for adding roles. That is overhead for us as we may need to configure more roles according to our business requirements, but each time we dont want to change the code and re-deploy the application.
    Please let us know the way to meet our requirement.
    Thanks in advance.
    Thanks & Regards,
    Ramakrishna. P

    Hello,
    The JHeadstart Developers Guide has an excellent chapter about security to answer questions like these.
    For example, you could use the JHeadstart based custom security, with datatables, that will enable you to add roles and users at runtime.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team

Maybe you are looking for