Get Computer name and move

Hi all ,
i need help with small problem ,
i tried to create new script that know get all computer names that start with " ISR..." And then move them to another ou ,
i have 2 convention name on my organization name  , 1 - ISR , 2 -TLV  . 
some computers :
ISR2
ISR3
ISR4
some computers :
TLV2
TLV3
TLV3
 i tried this command "
Get-ADComputer -Filter * {Name -Like "TLV,"}  Error :
Get-ADComputer : A positional parameter cannot be found that accepts argument 'Name -Like "TLV"'.
At line:1 char:15
+ Get-ADComputer <<<<  -Filter * {Name -Like "TLV"}
    + CategoryInfo          : InvalidArgument: (:) [Get-ADComputer], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.ActiveDirectory.Management.Commands.GetADComputer
or if have another option -command can read both computers name and then move them
My Website:www.Pelegit.co.il Mcitp /Mcsa 2012

Lol , My friend i dound that command in another website and it is  working but thank you so much ! 
what about 2 differet name ? 
Possible ?
Get-ADComputer -Filter {Name -like "TLV*,ISR*"}
My Website:www.Pelegit.co.il Mcitp /Mcsa 2012
You would need separate statements like
-Filter {(Name -Like "TLV*") -and (Name -Like "ISR*")}
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Don't Retire Technet

Similar Messages

  • Computer Name and Sleep

    I have been able to let my iMac go to sleep in recent days, but it causes a new problem: Duplicate network name. There are no other computers on the network with the same name. There is a G4 Cube running 10.4 (which has never had this problem) and a Time Capsule. Right now its at -3 and presumably will increment to -4 the next time I wake it from sleep. How do I fix this?

    I tried changing the computer name, and this resulted in the issue becoming intermittant. Not sure what to make of this, but ultimately I get the same error using different computer names.

  • Computer Name and Flurry only available Screen Savers

    I've lost all the built in Apple Screen Savers except for Computer Name and Flurry. Has anyone else had this problem? How do I fix it? I looked in Computer > System > Library > Screen Savers and saw all of them there, but when I open up my System Prefs, they aren't listed. I tried repairing permissions but that didn't work. Any ideas?
    Also, I have an iSight camera, and PhotoBooth is telling me my card isn't compatible, even though I used it one time when I first installed Leopard. Any clues on that one? I'm thinking this has something to do with one of the recent updates.

    OK, so after not getting anywhere (not to mention growing tired of too much desktop) I disconnected my secondary monitor that was hooked via a VGA to DVI connector to my ATI X1900 XT card, and now all the screen savers are back. Looks like it just didn't like having the connector.

  • Get Computer Name

    I think there was a VI
    'Get computer name'
    somewhere in the GToolbox (or former LVutil).
    I cannot find it - any hints?
    I need the name of the computer the program works on because it
    communicates with another application via TCP/IP and I would like to set
    the standard application adress as the local PC.
    Thanks
    Urs Bögli

    Luca,
    that's fine, an easy solution but hard to find !
    Attached is my VI now.
    Thanks
    Urs
    Luca P. schrieb:
    >Hello Urs,
    >
    >An easy way is to use the "string to IP" wired to the "IP to string"
    >VI (TCP palette). The IP to string function has a boolean input where
    >you can define if you want to see the IP address or the machine name
    >of the PC.
    >
    >Regards,
    >Luca
    >
    Attachments:
    PCsName.vi ‏9 KB

  • API to get computer name

    i want to get computer name in Java program. I tried to use System.getProperty(), but seems like there is no appropriate key.
    please advise. thanks!!

    Here's some different ways using java.net package to get various names and numbers. Of course, this requires a network id.
    import java.net.*;
    public class GetIPAddress {
        public static void main(String[] args) throws UnknownHostException {
            System.out.println(InetAddress.getLocalHost());
            System.out.println(InetAddress.getLocalHost().getHostName());
            System.out.println(InetAddress.getLocalHost().getHostAddress());
            System.out.println
                ("+++ If there is more than 1 IP address for HostName +++");
            InetAddress[] inet = InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress());
            for (int x = 0; x < inet.length; x++)
                System.out.println
                    ("IP " + (x + 1) + ": " + inet[x].toString().substring(1));
    }The following one takes an IP address argument.
    import java.net.*;
    public class GetIPName
        public static void main(String[] args)
            try
                // Look up ip address, eg 123.123.123.123
                InetAddress local = InetAddress.getByName(args[0]);
                System.out.println(local.getHostAddress());
                System.out.println(local.getHostName());
                System.out.println(local.getCanonicalHostName());
            catch(Exception e)
                e.printStackTrace();
    }

  • Yosemite profile manager shortening computer names and serials

    If I prepare a placeholder in Yosemite profile manager, it shortens computer names and serials.
    I've added and removed the placeholder and the names and serials are getting smaller, to a point they are only one letter long now.
    Somehow, it suspect may be linked to the form fill feature but even if I try to type all, the placeholder names and serials shorten every time.
    Ever seen or solved that?
    François.

    I cleared Safari Form Filling in Safari > Preferences > Auto Fill > Other Forms, selected example.com, clear button and closed preferences.
    I went back to profile Manager, create the place holder again and all is good now.
    François

  • Get Attachment Name and from address of mail in bpel process

    Hi All,
    I am using UMS Adapter to poll email server and  getting the attachment and saving it to local disk.
    In Payload from UMS adapter  i am getting href of the attachment  but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
    please guide me in getting them .
    Thanks in Advance
    Divyanshu

    1. Double click on your composite receive activity.
    2. Go to Properties tab in your receive activity.
    3. Click "+".
    4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
    5. Click OK.
    6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
    you are good to go.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • SIU - Apply Computer Name and Local Hostname settings from a file

    I am setting up a workflow to image corporate computers and wanting to know how the "Apply Computer Name and Local Hostname settings from a file" works in the Apply System Configuration Settings task.
    We bind the computer to AD and OD and we have a specific naming convention for certain departments and trying to automate the entire imaging process.
    Would this be something that can be done with SIU?

    Well, maybe there's a bug in the latest version (10.5.3) of SIU as this is not what is happening.
    It doesn't seem to matter what I specify for the name parameters I end up with a Bonjour name of ".local".
    I put in a line of the form <Mac Address><TAB>tom<TAB>dick<TAB>harry into the text file used by the Apply System Configuration Settings Action.
    and end up with hostname = tom, Computer Name = dick and Bonjour Name = .local
    I'm building the NetInstall image on a new iMac running 10.5.3 booted out of a second partition and create the image from the main boot partition (also 10.5.3). I then copy the image to my server (10.5.3) and make a second iMac boot up from the NetInstall image.
    For what it is worth the Workflow Actions I am using are:
    Define Image Source
    + NetInstall
    Source: Macintosh HD
    Filter Clients by MAC Address
    + Allow
    <List of MAC Addresses>
    Enable Automated Installation
    + On Volume Named: Macintosh HD
    + Erase before installing
    + Primary Language: English
    Apply System Configuration Settings
    + Apply Computer Name and Local Hostname settings from a file: <FILE>
    Add Packages and Post-Install Scripts
    + Shell Script [Doesn't work - we're discussing in it in another thread]
    Create Image
    In: Public
    Named: NetInstall Classroom
    Volume Name: Classroom iMacs
    Index: 1

  • Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    i have the same problem no radio stations at all bit shabby hate technolgy now adays

  • Get User Names and Mail Ids present in Exchange Server

    Hello All,
    Can we get all the names and mail ids present in the exchange Server global address book?
    I tried one example but it is giving error.
    Exception in thread "main" javax.naming.CommunicationException: [LDAP: error
                code 2 - Protocol Error]; remaining name 's=satheesh'
    Code is given below:
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://mailserver:389");
    DirContext ctx = new InitialDirContext(env);
    Attributes answer = ctx.getAttributes("s=satheesh");
    Any example code to get user names and mail ids will be helpful.
    Thanks in advance.
    Regards,
    Satheesh A
    [email protected]

    Hi Satheesh,
    I am new to LDAP. I am facing the exact same problem as you mentioned. Did you solve your problem?
    Thanks for any help you can provide.
    Hello All,
    Can we get all the names and mail ids present in the
    exchange Server global address book?
    I tried one example but it is giving error.
    Exception in thread "main"
    read "main" javax.naming.CommunicationException:
    [LDAP: error
    code 2 - Protocol Error]; remaining name
    aining name 's=satheesh'
    Code is given below:
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL,
    "ldap://mailserver:389");
    DirContext ctx = new InitialDirContext(env);
    Attributes answer = ctx.getAttributes("s=satheesh");
    Any example code to get user names and mail ids will
    be helpful.
    Thanks in advance.
    Regards,
    Satheesh A
    [email protected]

  • Difficulty changing computer name and domain name

    I have a working Xserve with the latest Snow Leopard Server and am having difficulty reconfiguring it from its keyboard.
    I would like to edit the computer name and domain name and maintain all other server settings. I would prefer to do this off-line. However Server Admin appears not to work off-line and any attempt to change computer name or domain name removes all server settings from view including the serial number. I can recover everything by reinstating computer name etc and restarting on-line.
    Is the serial number tied to the computer name and/or domain name?
    Is there any way to retain my existing server settings for a different domain?
    Is there any way to progress any of this off-line?

    This has now been resolved. This note is to assist others who have the same problem.
    1 - I had been changing the computer name in the place I had always done it - System Preferences/Sharing. This confused Server Admin. Reverting to the original name and changing computer name and location within Server Admin resolved the issue. That is System Preferences/Sharing is updated by Server Admin but not vice versa.
    2 - Playing with these things can corrupt Server Admin plist resulting in a restarted Server Admin not seeing the edited server even with the server otherwise fully functioning. Trashing Server Admin plist resolved this for me without loss of server settings.
    3 - Having set it up off-line I experienced difficulty as soon as I went on-line. This was resolved by changing the server from 'local' to its full domain name. I have no explanation for this as the same settings had previously worked with 'local'.
    4 - Server Admin can take a long time to find settings and occasionally failed to do so until after a restart.
    The result can be seen here: http://links.open.ac.uk/ - Since Apache refuse to provide hit counter support (there are several public posts of mine on the subject) I use JavaScript to retrieve the count from an old QPQ server running on a G3 with OS 9.

  • I using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    im using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    What do you mean 'can't get user name and password' ? What are you trying to do with your iPad and what happens when you do it ?

  • I do not remember my computer name and password. I can no longer download updates.

    I do not remember my computer name and password. I can no longer download updates. How do I find this information?

    This page is for OS 10.6.
    http://support.apple.com/kb/PH6317

  • Computer name and local hostname not recognized at startup

    I've been having trouble syncing with .mac lately. (This isn't syncing question.) Looking at my console and system logs, it would appear that my computer and network connection have a problem right from the start (except that I can connect to the Internet and can send and receive mail no problem). But I think the logs below indicate that there's some disconnect because later on, when I try to sync or do something with iDisk, "Failed to register NSConnection" and SFIDiskMirrorCopyPair returned NULL" appear in the console log. Here's some of what the logs showed. I was wondering if anyone out there can make heads or tails out of it. Wondering if I'll have to blow it up and do an archive and install.
    Any help will be much appreciated.
    Thanks, Bill
    From my system log:
    Feb 5 10:01:20 localhost SystemStarter[337]: authentication service (351) did not complete successfully
    later it states ....
    Feb 5 10:02:04 localhost loginwindow[116]: Login Window Started Security Agent
    Feb 5 10:02:07 localhost mDNSResponder: Couldn't read user-specified Computer Name; using default “Macintosh-123A95Dxxxxxx” instead
    Feb 5 10:02:07 localhost mDNSResponder: Couldn't read user-specified local hostname; using default “Macintosh-123A95Dxxxxxx.local” instead
    Feb 5 10:02:08 localhost mDNSResponder: Adding browse domain local.
    Feb 5 10:02:51 localhost configd[74]: SecKeychainFindGenericPassword err= -25308 ( =0xffff8624, secErrStr=User interaction is not allowed. ) (current= JohnDoe)
    Feb 5 10:02:53 localhost mDNSResponder: Couldn't read user-specified Computer Name; using default “Macintosh-123A95Dxxxxxx” instead
    Feb 5 10:02:53 localhost mDNSResponder: Couldn't read user-specified local hostname; using default “Macintosh-123A95Dxxxxxx.local” instead
    Feb 5 10:02:54 localhost launchd: Server 0 in bootstrap 1013 uid 0: "/usr/sbin/lookupd"[86]: exited abnormally: Hangup
    Feb 5 10:02:54 localhost configd[74]: executing /System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/enable-net work
    Feb 5 10:02:54 localhost configd[74]: posting notification com.apple.system.config.network_change
    Feb 5 10:02:54 localhost lookupd[216]: lookupd (version 369.5) starting - Mon Feb 5 10:02:54 2007
    Feb 5 10:02:56 localhost mDNSResponder: Couldn't read user-specified Computer Name; using default “Macintosh-123A95Dxxxxxx” instead
    Feb 5 10:02:56 localhost mDNSResponder: Couldn't read user-specified local hostname; using default “Macintosh-123A95Dxxxxxx.local” instead
    Feb 5 10:02:56 localhost configd[74]: target=enable-network: disabled

    Thank you for helping me. My computer is very old and it gets a lot of non-taxing use, like email and word processing. I'm trying to get another year out of it before I replace it. I first had to reset the PRAM because I had full-on freeze a couple of months ago. I couldn't get the computer to respond at all. Apple Support helped. They had me reset the PRAM, but the reason I've been resetting it now and again is that it seemed to fix a problem I was having with audio. When I am using Skype, Facetime or Gchat there was a crackling sound so loud, I'd have to hang up. Resetting the PRAM seemed to take care of this. I read around a little on the Internet. There was some suggestion that maybe my logic board is failing, at which point I would really have to replace my computer. But I was hoping for some pointers about this keyboard. I spent a couple of days reading and didn't find anyone having quite my problem. I guess it wouldn't really be such a problem if I didn't have this audio problem as well.

  • I changed the Computer Name and i can not run EM.

    I had to change the computer name in order to connect to the intranet.
    I updated the listener.ora and tnsnames.ora with the new computer name.
    I can run SqlPlus but i can not run EM on http://tahirpc.isu.intranet:1158/em *
    I checked Services and I saw that OracleDBConsoleorcl service do not work. I get error code:2 when i try to run it manually.
    What should i do?
    New computer name: tahirpc.isu.intranet
    Old computer name: mtkeskin.isu.intranet
    OS: Win 7
    Oracle: 10.2.3
    ------------------------

    Thank you Jean-Valentin . I tried those but unfortunately this did not work.
    Here is what i did on CMD:
    RECREATE
    C:\Users\mtkeskin>EMCA -CONFIG DBCONTROL DB -REPOS RECREATE
    STARTED EMCA at 28.Oca.2010 11:28:43
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user: l
    Password for SYSMAN user:
    Password for SYSMAN user: Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
    Database hostname ................ tahirpc.isu.intranet
    Listener port number ................ 1521
    Database SID ................ ORCL
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:29:07 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-28-42-AM.log.
    28.Oca.2010 11:29:24 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    28.Oca.2010 11:32:09 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    28.Oca.2010 11:32:10 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    28.Oca.2010 11:37:14 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    28.Oca.2010 11:37:34 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\oracle\product\10.2.0\db_1\bin\emctl.bat depl
    oy dbconsole D:\oracle\product\10.2.0\db_1\tahirpc.isu.intranet_ORCL tahirpc.isu
    .intranet:3938 tahirpc.isu.intranet ORCL
    28.Oca.2010 11:37:34 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-01-28_11-28-42-AM.log for more details.
    Could not complete the configuration. Refer to the log file at D:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-01-28_11-28-42-AM.log for more deta
    ils.
    DROP
    C:\Users\mtkeskin>EMCA -DECONFIG DBCONTROL DB -REPOS DROP
    STARTED EMCA at 28.Oca.2010 11:47:57
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:48:13 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-47-56-AM.log.
    28.Oca.2010 11:48:17 oracle.sysman.emcp.util.DBControlUtil stopOMS
    INFO: Stopping Database Control (this may take a while) ...
    28.Oca.2010 11:48:18 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    28.Oca.2010 11:50:35 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at 28.Oca.2010 11:50:35
    CREATE
    C:\Users\mtkeskin>EMCA -CONFIG DBCONTROL DB -REPOS CREATE
    STARTED EMCA at 28.Oca.2010 11:54:55
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
    Database hostname ................ tahirpc.isu.intranet
    Listener port number ................ 1521
    Database SID ................ ORCL
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:55:19 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-54-55-AM.log.
    28.Oca.2010 11:55:32 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    28.Oca.2010 12:00:13 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    28.Oca.2010 12:00:27 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\oracle\product\10.2.0\db_1\bin\emctl.bat depl
    oy dbconsole D:\oracle\product\10.2.0\db_1\tahirpc.isu.intranet_ORCL tahirpc.isu
    .intranet:3938 tahirpc.isu.intranet ORCL
    28.Oca.2010 12:00:27 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-01-28_11-54-55-AM.log for more details.
    Could not complete the configuration. Refer to the log file at D:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-01-28_11-54-55-AM.log for more deta
    ils.
    I checked log files but i did not understand anything of 'em :(
    Edited by: NaKKaSh.TR on 28.Oca.2010 12:12
    Edited by: NaKKaSh.TR on 28.Oca.2010 12:14

Maybe you are looking for

  • Full Screen Interactive Images?

    Apple's video demo of the interactive images widget  (as seen on this page: http://www.apple.com/ibooks-author/gallery.html ) shows the image opening full screen when clicked. I cannot make this happen. The 'full-screen' option is always disabled in

  • Invoice Receipt by Line Item

    Hi How is the Differences between invoice Receipt  and  Invoice Receipt by Line Item according to purchasing thanks SM

  • 2611xm Terminal Server + ACS + duplicate login when using menu options

    Hi, I'm trying to set up ACS on my 2611xm router, so far I have been able to do this, however when you login, I have a autocommand setup to run a menu. My problem is when you select the option on the menu it reauthenicated against the router again be

  • Software not supported? what?

    Hello! This is my first time posting on here so please bare with me! I just bought myself a new Macintosh OSX computer, as to which I am very unfamiliar with. I know and have used Microsoft Windows in the past, but this is confusing me... I purchased

  • Organizer Thumbnail view

    Each time I switch between the Single Photo View to the Thumbnail view I have to reposition the slider to get the thumbnails to show the file name, etc.  Is there an option or preference setting that will keep the slider where I put it so when Organi