Want a Script to set Computer extensionattribute in Bulk

Want a Script to set Computer extensionattribute in Bulk by giving input from CSV Computer Name and extensionattribute.
Regards,
Kashi
Kashi

Hi Kashi,
You can find pre-written scripts in the repository:
http://gallery.technet.microsoft.com/scriptcenter
If you can't find what you need, you can request a script here:
http://gallery.technet.microsoft.com/scriptcenter/site/requests
Let us know if you have any specific questions. This would be a pretty basic script, so you can use this requirement as a good excuse to learn how to get around in PowerShell. If you haven't had any exposure at all, you can check out the learning resources
here:
http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing)

Similar Messages

  • Group Policy - Computer Startup Scripts - Add/Set Default printer

    Good Morning.
    Let's say we have 2 offices, A and B, and only 1 user.  The user is using Roaming Profiles.  Each office has its own printer.
    What I am trying to do, is make a Startup script that is specific to the COMPUTER being logged into so when any user logs into that computer, they get the printer in that office defined and set as default.
    I am able to do this successfully with my script but ONLY if i have the script be on the USER side of GP (i.e. in the Logon script section)
    That is great that that is working however, when my user goes to Office B, they still get mapped to Office A's printer if I use that method.
    So I figured I could just modify my GP and run the same script from the STARTUP section of the computer, rather than the LOGON section of the user.  It does not work.
    Here is my script:
    Set WRFCUNetwork = CreateObject("Wscript.Network")
    PrinterPath = "\\fileserver\MAINTELLER"
    PrinterDriver = "PrinterDriver"
    WRFCUNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WRFCUNetwork.SetDefaultPrinter "\\fileserver\MAINTELLER"
    This is where I Have the script placed:
         Computer Configuration -> Windows Settings -> Scripts(Startup/Shutdown)
    Once i'm in there, I double click Startup, click Add, and select my script which is named:
         MainPrinterSetup.vbs
    I have this GP applied to ONE OU, and that OU has ONE computer in it (my test computer)
    I login with a brand new user called "testuser" (creative, huh?) and basically nothing happens
    except they log in and have some Microsoft Document Image Writer printer set as default (which by the way sure does slow the PC down to the point of it almost being broke if anyone actually tries to print to that by accident)
    No Main Teller Printer, no anything.
    The strangest part about this is, if i apply this script to the user LOGON scripts, it works fine, the printer is there, and is set as default. (but see above why that wont work for my situation)
    So obviously the script works fine, but I guess i'm missing something when it comes to applying GP's to Computers rather than Users.
    Can anyone shed some light as to why the script is not running (i'm guessing the script isn't even attempting to run, rather than failing, but i have no way to know that)
    Thank you in advance!!
    Derek Conlon
    Network Administrator
    WRFCU
    EDIT:  Here are the PC's info that i'm working on:
         Server:  Windows Server 2003 Standard Edition (where my GP's are created and managed with AD)
         Target PC:  Windows XP Professional SP3
    EDIT #2:  I manually navigated to the Script file after logging in and "opened" it and it added and set the default printer no problem.  the issue is definately with the script running at startup.

    I wanted to clarify a few things:
    1. While it is true that printer connections are usually per user, it is definitely possible to create "global printers".  There are a number of ways to do this, but two methods that come to mind are using:
    a. "Rundll32 printui.dll,PrintUIEntry" option with the "/ga" switch.  The "/ga" switch is the key here since it allows you to deploy printers "per machine" instead of "per user".  More information
    about this is available at:
    http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm
    http://technet.microsoft.com/en-us/library/ee624057%28WS.10%29.aspx
    http://www.computerperformance.co.uk/Logon/logon_printer_computer.htm
    http://www.robvanderwoude.com/2kprintcontrol.php
    b. The Print Management console that is available in Windows 2003 R2 and higher can help you deploy printers "per machine" in addition to "per user".  More information about this is available at:
    http://www.czsolution.com/print-management/print-management/print-management-console.htm#DeployingPrintersByGroupPolicy
    http://technet.microsoft.com/en-us/library/cc753109%28WS.10%29.aspx
    2. As Guy mentioned, Group Policy Preferences can help set the default printer.  But there is another way to accomplish this.  The problem with the computer startup portion is that it runs before the user logs in.  And applying this script
    in the login script section would not work per computer unless you used loopback processing.  So another way to do this is to place a script that sets the default printer into the "All Users" startup folder.  Items in the "All Users"
    startup folder run for any user that logs into the computer, but it runs in the user's context.  So, this script would effectively set the default printer on a "per machine" basis.  The script method is a cruder way to approach the problem,
    but it will help get the job done.  Here are some resources on setting the default printer via script:
    http://www.intelliadmin.com/index.php/2007/08/set-default-printer-from-a-script
    http://www.computerperformance.co.uk/ezine/ezine17.htm

  • This disk doesn't contain an EFI system partition. If you want to start up your computer with this disk or include it in a RAID set, back up your data and partition this disk.

    As stated above. I get this when I try to resize my HD. Was having issues with BootCamp so I removed it and got this.
    This disk doesn’t contain an EFI system partition. If you want to start up your computer with this disk or include it in a RAID set, back up your data and partition this disk.

    the same problem...
    any help?

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • I see a small window displaying "Are you sure you want to shut down your computer now". How do I stop appearing this window

    I see a small window displaying "Are you sure you want to shut down your computer now". How do I stop appearing this window

    Is this after you've chosen to Shutdown from the Menu, or just on it's own?
    You can press the esc key to cancel, or Enter key to shutdown.
    Check your System Preferences>Energy Saver>Schedule & see if it's set to shutdown at a certain time.

  • How do I write a script to set maximum pixel dimensions?

    I need to batch process JPGs and limit the maximum dimension to 500 px. This has to apply to the largest side of the image, either height or width. The other side should auto size proportionately. I'm currently having to make these size changes manually. I haven't found any script language or function that will let me set the largest pixel size to 500 px, regardless of which dimension is the largest.
    Example:
    1. If the image is 1000 px w x 750 px h, I want the script to resize the image proportionately for the largest side, changing the width to 500 px
    2. If the image is 750 px w x 1000 px h, I want the script to change the height to 500 px and the proportions conform accordingly for the width
    Any ideas are grately welcomed.
    Thanks,
    Linda

    Create an action that use File - Automate - Fit Image.
    I think there may still be a bug that this should fix....
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=3370&p=15152&hilit=don%27t+enlarge+fit+i mage&sid=ea73e8349aaf965015a4a351340e865d#p15152

  • Set Computer name by computers serial number ?

    Hi guys!
    I need a simple script or something to set computer name(serial number) and add computer to our domain. Computer name should be for laptop, LT-"serialno" and for Desktop it should be DT-"serialno"
    Is there a simple way to fix this? I have tried WSname, but no luck there. My scripting skills are equal with zero.
    Thx for all help and tips!
    /Janne

    HELP Add-Computer -FULL
    You need to start learning script somewhere.  We can help but we will not write scripts for you.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Look here:
    http://gallery.technet.microsoft.com/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=hardware&f%5B0%5D.Text=Hardware&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=basichardware&f%5B1%5D.Text=Basic%20Hardware%20and%20Firmware
    ¯\_(ツ)_/¯

  • IMac and Macbook Pro wants to pair with your computer via dropbox

    Okay please help asap this is very important. Was on the computer. Had just recently had my Macbook pro stolen and a few hours ago i had removed my pro from dropbox so they couldnt get on and mess up all my stuff. Recently i was browsing the web and this popup comes up saying "so and so"'s mac book pro wants to pair with your computer. Now this person changed the name to their own and turned on the computer. I didnt know what it was so i just let it disappear. Then a few minutes later it pops up again the same thing. I wrote down some of the name but i need it to pop up again. How can i get it to pop up again so i can see the name. Thanks.

    Ensure Sharing preferences are set correctly for both devices.

  • I am asked repeatedly if I want to shut down my computer when I do not. How can I stop this from happening?

    I am asked over and over again if I want to shut down my computer now. No matter how many times I click "cancel" the box returns with the same maddening question. I'm using Lion on a Mac Pro. How can I get this to stop?

    Perhaps the problem is that your Security setting is set to log you out immediately that your Sleep mode activates. And maybe your sleep setting is quite frequent.
    Otherwise you may have set a shutdown timing in Energy Saver>Schedule that keeps repeating when you cancel the Shut Down window.
    I haven't tried these yet and they are rather obscure, but they may be the software problems to check before servicing your hardware (keys and power button).

  • I have different bookmarks that I want to keep on each computer, will sync delete the bookmarks on one computer and overwrite the bookmarks from the other computer in their place

    I have not used sync yet, but I have the gut feeling there is going to be a problem if I do. I have different bookmarks that I want to keep on each computer. Will sync delete the bookmarks on one computer and overwrite the bookmarks from the other computer in their place? So I'm guessing it will erase the bookmarks on the second computer that you set up to sync. Is there a way to merge the bookmarks from each computer into one bookmark library that contains all the bookmarks from both computers, so that I don't lose any bookmarks by syncing?

    Hi,
    Firefox Sync works by merging all the info in all your computers. It doesn't replace anything. So if you have information A in one device and information B in other device, after setting up Sync you will have information A+B in both devices.
    I hope this clarifies the situation.

  • How do you transfer voice memos from your phone to your macbook? I don't want voice memos from my computer to go to my phone. It's so easy with other PC's.

    how do you transfer voice memos from your phone to your macbook? I don't want voice memos from my computer to go to my phone. It's so easy with other PC's.

    Hi King Arthur 2000,
    Voice memos can be shared back to a computer in a number of different ways, described in this article -
    Share a voice memo - Voice Memos - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI227
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Message "are you sure you want to shut down your computer now"

    I am in OS 10.8.5 on a Mac Pro. I get repeated message  upon start-up "are you sure you want to shut down your computer now?" Restarting does not stop the message. Nor does canceling it. It keeps occuring, blocking my ability to do applications. Because it comes to the front all the time, and the "shutdown" button is lit, if I inadvertently hit a return key while typing something else, the computer shuts down. I have a western digital backup disk-dismounting that has no effect. I have also run the disk utility permissions repair a few times to no avail.
    Thanks for any advice.
    Nov 26, 2013

    This might happen if your power button is malfunctioning.  Remember a slight tap of the power button will bring up that screen.  Bring it in for service if it is readily reproducible.

  • "Are you sure you want to shut down your computer?" prompt pops up for no reason and continues to pop up after selecting Cancel. How can I stop this?

    "Are you sure you want to shut down your computer?" prompt pops up for no reason and continues to pop up after selecting Cancel. How can I stop this?
    Mac Pro. OS 10.6.8

    Then I suggest you read this thread regarding the 30" Apple Cinema Display and that particular message pop up... several possible causes... common denominator, the display.
    http://forums.macrumors.com/showthread.php?t=617367

  • ITunes asks me to authorize my computer but after I do, when syncing my iPhone, it wants me to authorize the computer

    I want to sync my stuff on iTunes from my iPhone 4S, (iOS version 7.0.4) but it wants me to authorize my computer. I did that and it said this computer is already authorized. When I try to sync the iPhone again, it said the computer is no longer authorized for purchaced items that are in this iPhone. It proceeds to intruct me on how to authorize the computer. I authorized the computer 7 times and the error shows up all the time. I even restarted iTunes (losing what I edited) and it still did not work. Why?

    Hi there TOSU,
    You may find the troubleshooting steps in the article below helpful.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    -Griff W. 

  • HT4915 How do you stop syncing address and calendar to iCloud? I only want to sync  from my computer to iPhone.

    How do you stop syncing address and calendar to iCloud? I only want to sync  from my computer to iPhone.  This is because I cannont upgrade to Lion and I do not want to get duplicate contacts when I sync from the computer 10.6.8 to my iPhone iOS5.  You should not upgrade to Lion upless you have 4GB of ram. Lion does not support rosita so all your old programs will not funtion and you have to repurchase all old software the is working fine.

    Welcome to the Apple Community.
    Settings > iCloud, turn off contact and calendar syncing.

Maybe you are looking for

  • Error while creating a web proxy service using wsdl

    Hi folks, In my use case I should create a web service proxy using the wsdl. While I am creating the web service proxy I am getting some error like the binding method does not have the SOAP extension. I am giving the error below for more clarity Caus

  • Qosmio G30 - Question about the Raid driver

    Do i actually need this driver to use RAID? If its set in BIOS, what does the driver actually do? apart from give you health stats? Cheers

  • Storage of partial clearing

    dear all while i know the complete clearing entries are stored in BSAD in case of customer invoices with incoming payments. kindly let me know the table names where the partial and  residual entries are stored. regards eashwar

  • IPhoto 9: editing themes

    Would be possible to edit (or define) how many pics we want at one slide, when the theme have options for more than one picture (like the theme "Origami"?). At the Origame theme, automatically organize my pics, distributing between the slides some wi

  • I can not fint the texture files, which should have been installed with the CS6 and CC? why?

    I installed Photoshop CS6 a while back. Later on I discovered that the texture files where missing, or not included? Later I installed Photoshop CC, to see if the texture files were included here. But no, it was not. As far as I concern, I know that