Learn how to use Powershell with AD, Exchange and Excel

Hi.
I want to learn how to script in Powershell to make my life easier at work.
Now, I'm creating Distribution Lists with cmdlets, and other simple moves, but I'd like understand and use scripts with Excel to make it easier in AD and Exchange.
Can anyone help me find out where I can learn Powershell with those tools? I've searched google and youtube, and bought books, but I'd like to learn especially about AD and Exchange through Excel.
I also have another question, I'm trying to collect the telephonenumbers in one OU in AD, and found this cmdlet:
Get-AdUser -Filter * -Properties OfficePhone | FT OfficePhone,UserPrincipalName
I lined ut the OU path before -Filter, and used * -Properties Telephones Mobile to find the phonenumber in Properties-Telephones-Mobile in Active Directory. But I'm obviously doing something wrong.
Could anyone please help me? 

Hi Wezcomp,
first of all, you can use Get-Help to learn how to use Cmdlets, by asking them what it is they do:
Get-Help Get-ADUser -Detailed
By Adding the -Detailed Parameter, it will explain each Parameter of Get-ADUser and what it does. Then it will show you examples on how to use the cmdlet. Very useful tool,
Get-Help, learning to use it fully ought to be your first step, as this unlocks your access all other aspects of PowerShell. With that tool in hand, you could theoretically do the rest fully autodidactically (would be frustrating though, since you'd
like to be able to do something specific right now. Don't worry, we'll gladly help anyone truly trying to learn.).
There are lots of tutorials out there that can be useful in a general way (I added my own here). But regarding Excel:
As Fausto said, CSVs are the simple most way to do this. I'd advice against delving too deep into Excel manipulation right now (lots of frustration, little immediate rewards), Csv is your friend. Notable Commands:
Import-Csv
Export-Csv
For example, if you want to create a csv list with user data in it, using your previous example, you can do this:
Get-ADUser -Filter "*" -Properties OfficePhone | Export-Csv "C:\example\users.csv" -NoTypeInformation
By the way: FT (Format-Table) is a treacherous command: It displays objects to the console, but it is a dead end where data is concerned! Only use it when you want to check something quick on the console (like whether you got the right data), before
continuing on without using a Format command.
Cheers,
Fred
There's no place like 127.0.0.1

Similar Messages

  • Javascript error on - Help - Learn how to use Numbers with this online...

    I am trying to find out more about Numbers. I am using iTunes 9.1.1 on a Vista PC. I get a Javascript error in Internet Explorer 8 when I try to access:
    Help - Learn how to use Numbers with this online resource.
    http://help.apple.com/numbers/1.0
    The link redirects to the following page:
    http://help.apple.com/iwork/safari/interface/#tan727163ed
    The above page is blank except for boxes for Keynote Help, Pages Help, Numbers help, and a blank input field that seems to do nothing. Here is the Javascript error message from Internet Explorer 8:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
    Timestamp: Tue, 1 Jun 2010 20:55:54 UTC
    Message: This command is not supported.
    Line: 1
    Char: 41589
    Code: 0
    URI: http://help.apple.com/iwork/safari/interface/javascript.js

    Link also does not work for me in WIN 7 with IE8. However, it does work in Chrome in WIN 7. It also works in Safari on my G4. Suggest you try Chrome or it may work in another browser like FireFox or Safari in Vista.

  • How to use lightroom with desktop PC and mobile with MacBook Pro ?hav

    At home I have a desktop PC with all my lr files stored on NAS drive I want to be able to access and edit on macbook when away from home.
    1 Is it possible or do I need a Mac pc or change laptop to windows based ?
    2 do I use remote access to NAS or use previews and sync catalogue ?
    3 can lr exist with both file formats at same time ?

    I use a similar setup, with a Windows desktop PC and a MacBook Pro. My photos are on an external drive connected to the Windows machine, and I sync the catalog and smart previews using Dropbox.
    See see my post A Portable Lightroom Catalog on TipSquirrel.
    Also, see my post on Using Lightroom with Two Computers.
    mh++

  • Learning how to use C++ with Matlab files

    Hi guys!
    I'm Ph.D  student who needs to run thousands of mathematical simulations. Actually I'm working in MatLab, but due the massive quantity of simulations, I decided to make some tests in C++ in order to improve the time of the computations.
    Well the thing is that all my data it's in mat files (Matlab filetype) and i tried three things for access them:
    Use the library <fstream> but i found extremely complicated, specially with double numbers. (In fact i have to convert all my data to a text raw file)
    Use the native API of C++ from Matlab, but i get the error
    Warning: You are using gcc version "4.5.2". The version
    currently supported with MEX is "4.3.4".
    For a list of currently supported compilers see:
    http://www.mathworks.com/support/compilers/current_release/
    and until now i don't know how to resolve it.
    Finally i found one library  http://sourceforge.net/projects/matio/  which in theory can handle mat files in C++ but I haven't could make it work in this test example http://na-wiki.csc.kth.se/mediawiki/index.php/MatIO:
    #include <matio.h>
    int main(void)
    const double a[5] = {43.5, 5432.434, 3.32, 0.0001, 88834.0};
    mat_t *mat;
    matvar_t *matvar;
    int dims[2] = {1,5};
    mat = Mat_Open("simple.mat",MAT_ACC_RDWR);
    if(mat)
    matvar = Mat_VarCreate("vec1",MAT_C_DOUBLE,MAT_T_DOUBLE,2,dims,a,0);
    Mat_VarWrite( mat, matvar, 0);
    Mat_VarFree(matvar);
    Mat_Close(mat);
    else
    return 1;
    return 0;
    because i get this:
    /home/mikesol/projects/test/build> make
    Scanning dependencies of target test
    [100%] Building CXX object CMakeFiles/test.dir/main.cpp.o
    /home/mikesol/projects/test/main.cpp: In function ‘int main()’:
    /home/mikesol/projects/test/main.cpp:16:73: error: invalid conversion from ‘const void*’ to ‘void*’
    /home/mikesol/projects/test/main.cpp:16:73: error: initializing argument 6 of ‘matvar_t* Mat_VarCreate(const char*, int, int, int, int*, void*, int)’
    make[2]: *** [CMakeFiles/test.dir/main.cpp.o] Error 1
    make[1]: *** [CMakeFiles/test.dir/all] Error 2
    make: *** [all] Error 2
    *** Failed ***
    i'm not so good in C++ to improve the code or know what is wrong.  I'm sorry for that.
    Summarizing: I'm stuck, so any help will be welcome.
    Thanks in advance.

    thanks to all,
    @ngoonee: I'm going to try the solution described in your post https://bbs.archlinux.org/viewtopic.php?id=86809.
    @tavianator: Thanks for the solution, but now there are some "undefined reference" in the compilation
    /home/mikesol/projects/test/build> make
    [100%] Building CXX object CMakeFiles/test.dir/main.cpp.o
    Linking CXX executable test
    CMakeFiles/test.dir/main.cpp.o: In function `main':
    /home/mikesol/projects/test/main.cpp:14: undefined reference to `Mat_Open'
    /home/mikesol/projects/test/main.cpp:18: undefined reference to `Mat_VarCreate'
    /home/mikesol/projects/test/main.cpp:19: undefined reference to `Mat_VarWrite'
    /home/mikesol/projects/test/main.cpp:21: undefined reference to `Mat_VarFree'
    /home/mikesol/projects/test/main.cpp:22: undefined reference to `Mat_Close'
    collect2: ld returned 1 exit status
    make[2]: *** [test] Error 1
    make[1]: *** [CMakeFiles/test.dir/all] Error 2
    make: *** [all] Error 2
    *** Failed ***
    I will return later to work in that. Thanks to all.

  • What is best method for learning how to use mySQL with Coldfusion?

    I have been using access databases for years with Coldfusion. I have a client that wants me to build an online classroom. I figure it's time to finally start using mySQL, but there is so much info out there, I don't know which way to turn.
    Where do you experts recommend I get started?
    Also, I am using coldfusion entrprise on my system at home. My machine is a 64-bit, 3.30Ghz AMD FX - 6100 six-core processor with 8gig of ram. Can I install mySQL on the machine and run CF8 without any problems?

    How much RAM left on your system? If the computer is strictly for development, then you have more than enough to run ColdFusion, MySQL, browsers, and other development tools.
    For MySQL download the MySQL Community Server and MySQL Workbench. There is also all-in-one package for Windows, http://dev.mysql.com/downloads/windows/installer/ that you don't need to download the server and workbench separately. The installation should be straight forward.
    By the way, other CF users may suggest you to use MariaDB (https://mariadb.org/), which is a branch of MySQL.

  • Get Windows 10 set up quickly and learn how to use it with Geek Squad

    Windows 10 has just been released and many people are saying this is the most important offering from Microsoft in many years. It is packed with amazing new features. Geek Squad has a range of services related to helping you get started with Windows 10, quickly and hassle free.

    All you need is wireless. If the DSL modem does not provide routing services or does not provide wireless, then you need to get a wireless/wired router. If the modem provides wireless, then that's all you need. Consult the user manual for the DSL modem or talk to your service provider.

  • How to use ATV2 with iTunes, DAC and Apple remote

    Hello,
    I play my iTunes library through a Wadia i170 dock connected to a Cambridge Audio DacMagic running through a Marantz AV preamp. I bought an ATV2 and I would like to control the music with an iPad using the Apple Remote app.  My ATV is connected to the Marantz via HDMI and i have another HDMI cable running to the TV. Is it possible to do this?
    Thanks!

    If you enable Home Sharing in itunes, on iPad and AppleTV then Remote app will allow you to browse itunes content from the iTunes library and play it back on AppleTV using Airplay.  Alternatively the Remote app can control the AppleTV interface directly with iAppleTV requesting/pulling content from itunes as opposed to Airplay sending/pusihing content to AppleTV to play.
    Not sure where the Wadia dock comes into this.
    Do you dock the iPad with it?
    I'd have thought you'd be wanting to hook up the AppleTV optical out to the DacMagic if it supports Toslink or use HDMI or optical direct to the AV amp.
    Are you trying to run the system 'headless' with TV off when playing audio - if so, recent software has messed things up and not certain if fixed in that absence of an active HDMI connection can disable audio out over optical.
    AC

  • How to using ical with two separate iphones

    hello
    trying to understand and learn how to use Ical with 2 different Iphones, using Icloud.

    To sync iCal across computers, the calendar needs to be published to a server. This can be a local server that you can set up, or it can be something like google or microsoft exchange or apple's mobile me. The best bet may be to wait until fall and see what iCloud offers!
    Sharing your screen can be accomplished a few different ways. You can have two iChat accounts set up, and have one logged in on each computer, and then use iChat's screen share feature. The other way is to go to System Preferences, Sharing, and then check the box next to Screen Sharing. You may have to adjust some of the settings in there, but give that a shot.

  • I need to learn how to use all about java & mysql...help me!

    I have a situation here, I need to learn how to use java with mysql
    . Can I connect to a MYSQL DB with servlets?
    how can I build an e-mail server with java (no matter how difficult)
    please, I need help, and I really apreciate your help.
    thank you very much!!

    I have a situation here, I need to learn how to use
    java with mysql
    . Can I connect to a MYSQL DB with servlets?Yes... documentation to help you connect to any database can be found at http://java.sun.com/products/jdbc. To connect to MySQL, you'll need drivers (sourceforge.net), and the specific connection URL for those drivers will be included in the documentation.
    how can I build an e-mail server with java (no matter
    how difficult)If you're fairly new to JSP/Servlets, you may be in over your head here, since an email server is no easy application to code. Here's a link to the source code for the JAMES project... Apache's Java email server... maybe you can find some useful information there...
    http://www.ibiblio.org/pub/packages/infosystems/WWW/servers/apache/jakarta/james/source/

  • How to use annotation with GUI in swing

    hi,
    i am new to annotation. I know how to use this with classes, methods and java elements. I am developing a tool in applet to post comment on my notepad, but unable to find that how to use this with GUI of swing. I have gone through most of forums and tutorials but got no idea. Anyone could give me little idea.
    Thanks

    >
    i need to use the applet mousedown function in swing..>There is no such class as 'applet' in the JRE, Swing has an upper case 1st letter, functions in Java are generally referred to as methods, and there is no 'mousedown' method in the JRE.
    OTOH a Swing JApplet inherits the mouseDown method from Component, and it was deprecated in Java 1.1. The documentation (JavaDocs) provides instructions on what to use instead.
    >
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.>If can provide me cash. Short of that, you might actually need to do some research/coding of your own.
    As an aside. What does any of this have to do with Java 2D?

  • I'm trying to learn how to use Xcode. I've create a simple Hide App app from a youtube video tut, but I can't get it to export with the icon I've chosen. Any clues why?

    I'm trying to learn how to use Xcode. I've create a simple Hide App app from a youtube video tut, but I can't get it to export with the icon I've chosen. Any clues why?

    We didn't do that video. Why are you asking here?
    Those videos are usually outdated....
    Use the current tools etc., in the iOS Dev Center and iTunes/iTunes U ~ Stanford.

  • How to use iCloud with my family's devices

    We're an Apple household with two Apple-using parents and three Apple-using kids.  We have two iPads, two iPod Touches, two iPhones and a MacBook Pro.
    Up unti now, I have used all of the devices with the same Apple ID, except for my wife's iPhone and MacBook, which use a different account because I'd purchased a MobileMe account so that her address book and calendar would sync. My iPhone, on the other hand, belongs to my company and data is sync'ed using Exchange, but the AppleID is still mine, there are no special corproate controls, and the Apple ID and apps I purchase belong to me.
    Should I simply migrate my wife to my AppleID, and use iCloud to sync her phone with the MacBook Pro, and leave everything else as-is? Then we will have a single AppleID for everything, and her Calendar and Address book will sync between her two devices, and FindMyiPhone will find everything with a single login? Are there any limits with using all of these iDevices on a single account?
    Thanks!

    iCloud: Backup and restore overview
    http://support.apple.com/kb/HT4859
    Check iCloud storage & backup space on iPad
    http://www.urltips.net/check-icloud-storage-backup-space-on-ipad/336/
    iCloud: Troubleshooting creating backups
    http://support.apple.com/kb/TS3992
    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Where do I go to learn how to use Terminal?

    I need to learn how to use Terminal. I learn best via video tutorials. Wondering if Apple has anything that will help?

    Thanks to you both TeenTitan and leroydouglas.
    As a web designer I decided to make the leap to HTML5 recently and have been collecting TONS of wonderful links to help me get up and running. HTML5 is a monumental leap compared to the transition I had to make from HTML 3.2 to 4 and then from 4 to XHTML 1.0. I was greatly encouraged to find the WebDev community embracing HTML5 Boilerplate and thought life would actually be simpler even when I heard Divya Manian encourage developers to be sure to use Paul Irish's Build Script which comes with HTML5 Boilerplate. As I watched his video, I realize as a Mac user that while there may be an alternative way to work with the Build Script I may not know how to do it properly so I'd best make peace at long last with Terminal. I don't want to run the script on a site and wonder if I didn't use Build Script properly.
    If interested you can learn about HTML5 Boilerplate here.
    Here is the YouTube video I mentioned about the demo for Build Script and its use in Terminal.
    I will definitely bookmark all your links and review them soon.

  • How to use label with break

    I'd like to learn how to use label, but why the following code didn't work?
    public class Try {
    public static void main(String[] args) {
    aLabel:
    System.out.println("A");
    for(int i=1; i<=2; i++) {
    if(true) {
    break aLabel;
    System.out.println("B");
    Thanks,

    You can label simple blocks as well, and exit the blocks with break.
    This code compiles and runs successfully.
    public class Try {
        public static void main(String[] args) {
            aLabel: {
                System.out.println("A");
                for(int i=1; i<=2; i++) {
                    if(true) {
                        break aLabel;
            System.out.println("B");
    }

  • HT4783 I'm trying to learn how to use Airdrop between my wife's Mac and mine. We both have it, but this article did not help us learn HOW to share files.  Yippeee that we can...but HOW?

    My wife and I are trying to learn how to use Air Drop.  The "tutorial" showed us where it is.  It came up.  I saw hers (Mac).  She saw mine (Mac). But where to go after that is, apparently, in the cloud somewhere.  The description says we can share files...which is nice...but nothing tells us HOW to share those files. 
    Thanks for your help out there...
    Dennis

    1. Open a new Finder window or use one that's already open
    2. Click on Airdrop, press Shift+Command+R, or find "Airdrop" in the "Go" menu
    3. Drag your file to the icon of the person you want to send the file to (if you have mountain lion, you can use the share button).
    4. The other person has to click "save"
    5. The file will send and appear in the receiver's downloads folder
    In Mountain Lion, a new feature was added: the share button. It's a button with a picture of a box and an arrow jumping out of it. Click on it and the third (and last) option is "Airdrop" and clicking on it will allow you to send files over Airdrop without opening it in Finder.

Maybe you are looking for

  • Creation of file using relative path

    I am working on JSP I want to create a file object by passing a relative path as parameter to File f = new File("<relative path>"); i encounter the following error "it says server cannot find the file in the path specified." I have searched the forum

  • Remove grid lines by default in chart view

    Hello, I'm working in version 10.1.3.4.1. I've been trying to remove the grid lines from the default chart view. I've read some posts on here and in the blogs about changing the default chart look, but I haven't seen anything specific to grid lines.

  • Execute_Query in MASTER-DETAIL form queries the DETAIL block...?

    I'm using Oracle Form Builder with a Master-Detail relationship, I have a WHEN-NEW-FORM-INSTANCE trigger which runs 'EXECUTE_QUERY;' but it is returning records from the Detail block rather than the master block. Can anyone tell me how to return reco

  • Lock Sharing Preference Pane

    We have multiple users on our machines. They all have admin access which is normally not an issue but, I want to be able to lock the Sharing Preference to keep people from changing the Remote Desktop preferences. Currently I am going into System/Libr

  • Deleted commercials from video in QT7 but converted to AVI they are back

    First, I recorded an old foreign movie to the TiVo, then transferred it to my Mac, and tried to edit and burn it with Toast 10. The sound wasn't right. Eventually, I was able to convert the video to a QuickTime .mov file. I then used the QT7.6.6 edit