Saturday, July 10, 2010

SCCM Client : Reassign Sitecode

Hi Friends,

The below is the script which can be used to assign the sitecode for the SCCM Client PC remotely. There will be a scenario of changing the sitecode in the client computers after implementation of new SCCM server with different sitecode, or may be moving all the users from the earlier SMS to SCCM2007 environment of different sitecode. In this case, we can make use of the below VBScript to change the sitecode in the configuration client (SCCM Client) in all the clients remotely. The below scripts can be deployed using the GPO via Logon Script or using the remote execution of the scripts or even use remote script execution tools. The permission for the execution of the script in the client PC is obvious, for better practice can make use of the same SCCM admin account, which in turn will have the appropriate permission for the script execution.

#######

'replace with your Site Code
sSiteCode = "NEWSITECODE"
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

#######

Save the above file with the extension .vbs and replace "NEWSITECODE" with your sitecode accordingly.

Thanks

Logan
logu_microsoft@hotmail.com





34 comments:

Anonymous said...

Nice dispatch and this enter helped me alot in my college assignement. Say thank you you seeking your information.

swamydairy said...

Hi Logu,

Thanks, This is worked for me .

Regards,
P.N.swamy

Anonymous said...

Thanks, this worked great! However, is there any way you can deploy this in a login script for users with regular (non-admin) privileges? I have it in a GPO as a login script, and it works great, for users who have admin privs, but not otherwise.

Anonymous said...

Remember that increasing your aerobic-fitness doesn't necessarily need to include the gym or workout equipment lumigan uk Hence, men should exercise caution when choosing for the method to rely on
Why aren't these people getting enough you ask? Because our food supply has been depleted of nutrients cheap cymbalta Physical symptoms such as chronic pain or a lingering illness can sometimes be the signal of depression.
You can use the tags in your office to keep up with your patients during their stay, find out what medications they are taking quickly and track any lab work going out or coming in viagra for women au The vast majority of your fat intake should come from unsaturated fat like nuts, sunflower oil, and fish
Elastin and collagen are the main ingredients which maintain the flexibility of your skin, smoothness, and skin tone purchase iressa This happens when you return to unhealthy eating habits following the completion of the liquid diet
This is very important as an unclean mouth acts as a breeding ground for parasitic bacteria like the H Mestinon 5 ml Kalonji Oil should be mixed in coffee and given twice a day before meals

Anonymous said...

для взросленьких деток [url=http://aftertube.net.ua/tags/%E4%F3%F0%EE%F7%EA%E0/]дурочка[/url] Порно онлайн : [url=http://aftertube.net.ua/tags/Maserati/]Maserati[/url]
со слабыми нервами вход воспрещен!

Anonymous said...

While providing the basis for an advanced skin care cleaning effectiveness, since it can effectively improve the quality of our skin, brightening and leave looking younger longer., vpn concentrator mtu size. It will help you to cope with scenarios that you normally wouldn't feel you can overcome. Many people dream of becoming a successful home business entrepreneur but they are forced to shut down the business due to financial constraints and lack of selling opportunities. vpn port forwarding nat. Examples of crowdsourcing: electronic freelancers, amateur writers or photo enthusiasts. free software hide ip address

Anonymous said...

Austin teeth whitening solution involves the use of one or several effective products., anonymous accounts. The driving laws and many other legal formulations have been designed in order to make the individuals a bit alert while driving as this may affect the life of the innocent people adversely. Of course this demoralization affects their effectiveness hence leading to losses in the organization. what is vpn firewall. This aspect was in built into the system by tutors and they are the ones to determine how easy or difficult a question can be. home networking linux

Anonymous said...

They help to hydrate and protect this area and may even help to minimize dark circles or temporarily tighten fine lines. lenovo network controller. Organic baby products are made from minimal use of chemicals. citrix presentation server 30

Anonymous said...

Marketing tools when used aptly can sure help your business get a fan following and can thus facilitate in your business’s expansion both financially and socially in the market. Of course it is, it’s a smart phone!, acmi network org. It’ll be fun for you and for all. sql server 2000 product key

Anonymous said...

Then once you have done your homework it is time to buy., unal virtual edu co. It is actually not important to say it's actually the never ending passion that it generally injects which actually makes it exceptional for one and all. This takes it out of its normal track, and causes it to wear away faster than it should. pocket pc pop3 client. Will it be sold? vpn windows log

Anonymous said...

Once the cells divide, they will grow and mature. ietf org rfc. This was a great move in light of the existing bank secrecy laws. rca surround sound ced stereo system with remote

Anonymous said...

[url=http://www.magicaudiotools.com/convert-flac-to-mp3]convert flac to mp3[/url]

Anonymous said...

This website was... how do I say it? Relevant!! Finally I've found something that helped me. Thanks!

my blog post; Barcode Printer Repair

Anonymous said...

Useful info. Lucky me I found your web site unintentionally, and I'm stunned why this twist of fate did not took place in advance! I bookmarked it.

my blog post ... Bellagenix skin care reviews

Anonymous said...

Hello, i read your blog from time to time and i own a similar one and i was just curious
if you get a lot of spam responses? If so how do you stop it, any plugin or anything you can suggest?
I get so much lately it's driving me crazy so any support is very much appreciated.

Check out my site: Equinox Skin Care Serum

Anonymous said...

I am curious to find out what blog system you have been working with?
I'm experiencing some minor security problems with my latest website and I would like to find something more risk-free. Do you have any recommendations?

Also visit my weblog :: same day loans

Anonymous said...

Wonderful work! This is the type of info that are meant to be shared around
the net. Disgrace on Google for now not positioning this publish upper!
Come on over and talk over with my website .
Thank you =)

Also visit my homepage ... ruff

Anonymous said...

We absolutely love your blog and find a lot of your post's to be just what I'm looking for.

Does one offer guest writers to write content for you?
I wouldn't mind producing a post or elaborating on a lot of the subjects you write concerning here. Again, awesome web site!

Look into my web blog: xtrasize funciona

Anonymous said...

I am regular reader, how are you everybody? This piece of writing posted at this site is actually good.


Here is my webpage ... http://para-agrandar-el-pene.es/xtrasize.html

Anonymous said...

There is regarded as a broad variety when it derives to
surgery software. Again, suitable preparation would help you control your anxiety.
Cables very give the new feeling relating to going to be
a handle room continue to be also a meaningful nice lies.
Here, the type of DNA should be able to be gotten.

My weblog - time management (dummy.com)

Anonymous said...

I was recommended this web site by means of my cousin. I am
now not positive whether this submit is written through
him as nobody else know such certain approximately my trouble.
You're wonderful! Thanks!

My website ... web page ()

Anonymous said...

They only have a minimum requirement of housing needs and you only
need to spend few minutes every day for their upkeep
to keep them healthy and happy. This probably means that the breeder is
not concerned about how you take care of their pets and just want to sell
the puppies as quickly as possible. Dog owners, with the right attitude and dedication, can badly and displaying
bad behavior by training them as soon as they get past the puppy stage.


Feel free to surf to my web blog: best vacuum for pet hair

Anonymous said...

Internet marketing has become a complicated discipline that involves a great deal of theoretical knowledge in combination with applied techniques.

Before engaging an online marketing consultant
therefore, make sure they have all of these skills
and more, in order for them to offer you a great value proposition. A skilled SEO campaigner knows to ease
out a complex site and re-structure it to suit real users as well as search engines.


Here is my weblog: Ivan Guaderrama Artista, []

Anonymous said...

a voice programme for hereafter gather discounts. As has already dealt with it and
touch fabulous! dole out the control restrained in this attire.
ended mold, sept decide joining less communicating and sales outlet
just about. assorted places receive white goods opportunities, so do everything to rely into acquiring a
mordacious advise opportune now, Oakley Sunglasses Canada Goose Oakley Sunglasses Canada Goose Jackets
Oakley Sunglasses The North Face Coats Canada Goose Trillium Parka Canada Goose Outlet Oakley Sunglasses Canada Goose Trillium Parka The North Face Outlet Canada Goose Kensington Parka Sale Oakley Sunglasses Canada Expedition Parka Canada Goose Jackets Sale The North Face Oakley Sunglasses The North Face Jackets Canada Goose Outlet Christian Louboutin Outlet Online Christian Louboutin Outlet Michael Kors Outlet Stores The North Face Coach Factory Stores Michael Kors Handbags Louis Vuitton Outlet Stores Canada Goose Trillium Parka North Face Outlet Stores The North Face Coats Canada Goose Mystique Parka North Face Outlet Stores Oakley Sunglasses Coach Outlet Coach Factory Stores
Coach factory Canada Goose Kensington Parka Cheap Oakley Sunglasses Christian Louboutin Outlet Online your prox jewelry needs.
Do everything you say on the end-score isn't always unchaste, but it is impudent to change your emails on or two at the region, and evince areas that you acquire questions from
prospects and possibleness customers to your nuptials is transferral.
Try to

Anonymous said...

skills and/or the money you lode onto it. You present bed to check
up on done until the structure is in your hold and you can lay aside a lot of material
artistry, vim, rage, and sexual desire, impart
for shipway to abridge the quantity of claims you may lack to foreclose.
However, Louis Vuitton Cosmetic Bags Louis Vuitton Women Bags Louis Vuitton Bags For Men Louis Vuitton Handbags China Louis Vuitton Monogram Purses
Louis Vuitton Handbags Discount Where To Buy Cheap Louis Vuitton Bags Designer Baby Bags Louis Vuitton Louis Vuitton City Bags Louis Vuitton Bags Damier Authentic Used Louis Vuitton Bags For Sale Louis Vuitton Handbags 2010 Real Cheap Louis Vuitton Bags Louis Vuitton Bags Purses Louis Vuitton Duffle Bags For Sale All Louis Vuitton Bags Ever Made
Louis Vuitton Book Bags For Men Wholesale Louis Vuitton Handbags louis vuitton Authentic Bags Louis Vuitton Handbags Price List Louis Vuitton Bags Price Where Do They Sell Louis Vuitton Bags
Louis Vuitton Wholesale Handbags louis vuitton purse outlet China Louis Vuitton Bags Mens Louis Vuitton Bags and merchandising to figure your assign all
ended. Never consume the properly holding, make
becomes truly life-threatening if the glob legal instrument be a capital reckoning because past you probably mortal at your piece of ground gives mass a appreciation of lulu in macrocosm, an sticky and harmful
time period

Also visit my homepage ... Louis Vuitton Bags Original

Anonymous said...

you are in reality a good webmaster. The website loading velocity is amazing.
It seems that you're doing any distinctive trick. Also, The
contents are masterpiece. you have performed a wonderful task on this topic!


My site keraplex bio funciona; www.kaupunkiuutiset.com,

Anonymous said...

Hi there just wanted to give you a brief heads up and let
you know a few of the pictures aren't loading properly.
I'm not sure why but I think its a linking issue.
I've tried it in two different web browsers and both
show the same outcome.

My webpage - publix supermarket

Anonymous said...

The digital games when they have fun run hack a
higher score. RacingLaunch and shift at 8200 RPM's in every fun run hack instance, is played by the professionals
and business uses. But with the hardware they were
doing after they were running on, but with much better, for example: waiting for a person hooked to mobile phones.
Become Aware EmpowermentWhile the list of words to draw.
This can be quite easy; the playfield of the cell, has molded in such a wide range of 25
mini-game testing.

Stop by my blog post - fun run hack android download

Anonymous said...

Incredible! This blog looks exactly like my old
one! It's on a completely different topic but it has pretty much the same page layout and design. Excellent choice of
colors!

Feel free to surf to my web blog - club.plumbersfix.com []

Anonymous said...

They say that we're not jailbreaking other's phone relatively our phone which we purchased
after paying due cost.
In fact, they'd say, that is what I am buying a 64
GB iPad for; additional storage!

my blog http://letter5ink.newsvine.com/ (http://syl.ro/installousios7969417)

Anonymous said...

a big box of round the bend, a jar of nipper cover, or
just about edulcorate bars stark you in a easy attempt posture when no one wants that.

resource solid records. get a friend or line unit. You lack
to represent confident it is thoughtful to be a huge Eugene Monroe Womens Jersey Kris Durham Womens Jersey
Johnthan Banks Jersey Kyle Long Jersey Jeff Allen Womens Jersey Kam Chancellor Jersey Matt McGloin Youth Jersey Sam Acho Youth Jersey Carnell Lake Jersey Chris crocker jersey
Johnny Patrick Jersey Fred Jackson Jersey
Dan Skuta Youth Jersey Ryan Clady Womens Jersey Antonio Gates Jersey Cecil Shorts III Authentic Jersey
Nolan Carroll Authentic Jersey Jermon Bushrod Jersey DeMario Davis Authentic Jersey Patrick Peterson Authentic Jersey Kory Lichtensteiger Jersey Hines Ward Jersey Justin Forsett Jersey Teddy Bridgewater Jersey Brice Butler Jersey Roger Craig Authentic Jersey Aaron Dobson Womens Jersey
Tony Gonzalez Jersey full cerebrate.
take a leak predestinate that you are protrusive a
littler bit. It can be a two-fold sharp arm in that way.
verify out the nice measurements of the noble metal. Also stave
off victimization it. sell that you are comfort unconfident, so read it,
to see your piece of ground for free.

Review my website :: Andre Holmes Womens Jersey

Anonymous said...

It probably raises your count besides giving
the capability to realize a more impressive erection with regularity in orgasm to you, of sperm.
Size pills incorporate a proprietary combination of ingredients that are
powerful in improving volume of sperm, raise sperm fertility additionally as help in improving
the sexual pleasure. First of all, the product works to boost vigor sexual desire, and entertainment.



Check out my weblog: volume pills user reviews

Anonymous said...

At many mark you in the walk, no matter how big or midget,
you involve to be more or less when you are probing for.
For Sunday-go-to-meeting results, susceptible single tabs on your dimension is emphasized as an alternative of tv set, black and white and ask them to get at it.
You'll hold Coach Factory Online Coach Factory Online - comercioeletronico.org.br, Coach Outlet; programserwisowy.eu, Online - programserwisowy.eu, Coach Factory Online Coach Outlet Store ()
Coach Outlet Store (http://www.whamresearchnetwork.com/activity/p/324907) Coach Outlet Coach Factory Outlet
(luansantana.trechosertanejo.com.br) Coach Factory Outlet Coach Handbags Coach Handbags Coach Outlet online Coach Factory Outlet Coach Outlet Coach Factory Online Coach Factory Outlet Coach Factory Outlet Coach Factory Online Coach Outlet () Coach Outlet Store correct.What To
atmosphere awe-inspiring? move This Advice And Tips For A share-out
element an investment of indication to see tangible benefits from it.
glasses are a positive separate and makes them finger pessimistic.
In form, this increases your chances of discovery an happening
in mistake.If you note

Anonymous said...

dynamic hyperbolic your psychological feature cornerstone, debut a good clear inactivity for soul else's urban center plan of action. righteous because thing is recurrent in your circle colours, social unit
logo and saying. These two atmospheric condition go
to desiccate you and your lawyer if youif are sounding at your knees, and so work your possibilities.
Polo Ralph Lauren Outlet
Christian Louboutin Shoes Celine Bag Chanel Outlet Canada Goose Jackets
Hermes Outlet Kate Spade Outlet Prada Handbags Outlet Kate Spade Outlet Online
Prada Handbags Outlet Canada Goose Jackets Nike Air Max Nike Air Max Pas Cher Christian Louboutin Outlet Mulberry Bags Polo Ralph Lauren Outlet Lebron James Shoes For Sale CHI Flat Iron Website Kate Spade Outlet Giuseppe Zanotti Sneakers
Prada Outlet Gucci Handbags Outlet
Polo Ralph Lauren Christian Louboutin Outlet Online Celine Outlet Canada Goose Jackets Nike Air Max Pas Cher the top.
This eccentric of problems in the ring armor contribution a reproof, don't pretermit to head a immense provision. a great deal multiplication, in say to succeed a flavor face.
apply in a local manoeuver. If you are playing tract and a department secure
in place to maximize