Import group members those are inactive more than 30 days to a csv file and then send the updated list by email
Hello,
I am very new to powershell and I have been looking for a solution where I can list all the inactive members more than 30 days from particular groups in AD, export the updated list to a csv file and send the file by email . . Can someone help me on
this?
thanks
Hi,
Take a look at Get-ADGroupMember, Get-ADUser, Export-Csv, and Send-MailMessage:
http://ss64.com/ps/get-adgroupmember.html
http://ss64.com/ps/get-aduser.html
http://ss64.com/ps/export-csv.html
http://ss64.com/ps/send-mailmessage.html
Let us know if you have any specific questions.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)
Similar Messages
-
I have an HP Photosmart C4180 all-in-one, printer, scanner and copier. I can't figure out how to scan more than one page? It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement. Any ideas??
Thank you, JetteskiHello Jetteski,
Hello Jetteski, Thanks for the post.
Since you are running a MAC, check the below links for some excellent information on scanning. Good Luck!
http://goo.gl/M8Cl2
http://goo.gl/cufK6
http://goo.gl/OTQoR
I work for HP but my posts and replies are my own....Thank you! -
I deleted my music files and then emptied my trash bin and later realized that I can't play the songs in iTunes anymore if the files are delted. Is there anyway I can recover all the files?
1) If you bought them from Apple you canprobably download them again.
2) If you back up your computer as you should, they will be on the backup.
3) If you stop using your computer this instant (because as you use the computer it overwrites deleted files even if you have lots of space), buy recovery software ($100+), there is a chance you can recover some of them, though they may have lost filenames and will be in quite a mess. -
I am lost....i recently upgraded to PSE 12 and my files all show imported but i cannot display any pics.
Click on the top View menu and ensure you have all the media types selected to show.
-
Movie Rentals, Are there More than 150?
Would really like to buy an AppleTV, but where are the movies?
Did a Power Search for All Possible Movie Rentals. Could only see 150 on the list.
Are there more than 150?
Is it me or is this the entire list of movies available to rent?Jack-
It is confusing...as far as I understand there are movies that are available on your ATV (both SD and HD) and there are movies that are available on iTunes. Of course the 2 lists overlap to a great extent but I believe that there are some movies available on iTunes that are not available on ATV (conversely I think that all of the SD movies available on ATV ARE/ARE available on iTunes). To confuse things more you can only rent HD movies from the ATV not on iTunes.
Hope I haven't made things more confusing.
Bottom line though- if you like to rent movies ATV is great- I love it. -
Displaying the records records which are coming more than once
hi
create table temp(comp_id int,branch_id int);
comp_id | branch_id
---------+-----------
1000 | 1
1000 | 1
1000 | 2
1000 | 2
1000 | 3
2000 | 1
2000 | 1
2000 | 2
2000 | 3
how can i write a query which displays the records records which are coming more than once on the basis of fields comp_id and branch_id. e.g. 1000 | 1 should be displayed because it is coming more than once. 1000 | 3 should not be, because it has a single entry.select comp_id, branch_id, count(*)
from temp
group by comp_id, branch_id
having count(*)>1
Please note this forum is not a SQL class and it is not the place to have your homework done.
Sybrand Bakker
Senior Oracle DBA -
I have music files by the same artist but they are listed in Itunes in more than one album hod can i add then to just one album of that artist I am using windows 8.1 .
iTunes will group songs into an album when:
All songs have the same value for the Album and Artist field, or
All songs have the same value for the Album and Album Artist field
All songs have the same value for the Albumfield and the Part of a Compilation flag is checked.
If you want to group all the songs by one artist into a single "album" you can do so by following one of these rules. However, it may be more useful to create Playlists to group music like this and retain the original release information. One Smart Playlist for each artist you're interested in would meet this need without over-writing information about the source albums. -
Can I mover photos around in iPad? There are photos on the camera roll-are those the ones I took with iPad? Then there are the ones labeled as imported-I guess those are the ones I took with my camera? Can I combine pictures from both into one album? Thanks.
At the moment no, you cannot move photos between albums in the Photos app directly on the iPad - but with iOS 5 (which will be free to download) in the Autumn, from http://www.apple.com/ios/ios5/features.html#photos :
Even organize your photos in albums — right on your device. -
I accidently closed the window with all my frequently used app tabs, now the only window that opens was an extra one I had opened. How do I get back all my app tabs from the previous window, and why didn't it give me the usual warning you are closing more than one tab? edit
DetailsThen the (App) tabs from that window are lost unless you can restore an older copy of the sessionstore.js file (Time Machine?) that has that lost window.
*http://kb.mozillazine.org/sessionstore.js -
please let me know how can resolve this issue... how can i compare 2 pdfs which are having more than 1000 pages.
Acrobatplease let me know how can resolve this issue... how can i compare 2 pdfs which are having more than 1000 pages.
Acrobat -
My bookshelf and Facebook icons are stuck in "waiting" apparently updating for more than a week, but I don't remember trying to update them. I tried pressing the home and sleep buttons in as suggested, but problem not fixed
Keep to one discussion only. Go back to this one,
https://discussions.apple.com/message/21087117#21087117 -
Profit Center Substitution Rules are exceeding More than 999 Rules
Hi Experts,
(Transaction Code GGB1) Profit Center Substitution Rule are exceeding More than 999 Rules. And there is a need of substitution rules to create.
Please suggest me if any User Exists are available or alternative solutions through wich i can determine the profit center in sales order and same profit center can be transfer to FI as well as CO...
Regards,
ShivajiIn the substitution you can use the option EXIT
click on the help and go from there:
In table T80D you have to assign the exit name
There are example ABAP's the standard one yopu have to replace in the table with a z version.
Perhaps an other option is to de redesign from you substitutins, by using perhaps set's -
Since I upgraded to Adobe Created Cloud, my photo editing processes are taking more than 10 times longer than they used to. Why would this be?
You will likely get better program help in a program forum
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
HOw do you have more than 1 ipod int he family and be able to have your own itunes on 1 computer?
Did you read the support document at the other end of the link? What additional information do you desire?
The Apple support document How to use multiple iPods with one computer (n.b. same link as above!) suggests a number of ways for managing the media content. I use method two (Sync with selected playlists) with a slight twist. Rather than regular playlists I set the grouping field to indicate which users should receive which tracks and create smart playlists based on the content of this field.
e.g.
"Alice's Tracks" is "Grouping contains Alice" + "Kind contains audio"
"Bob's Videos" is "Grouping contains Bob" + "Kind does not contain audio"
Tracks that both Alice & Bob want on their iPods have the grouping set to "Alice/Bob"
etc.
I currently manage our family's five iDevices using this system, each getting a different selection to suit their tastes and the capacity of their device. An advantage of using the grouping field is that it is stored in file tags (for non-wav audio files anyway) so that it is relatively easy to recreate the playlists should the iTunes library get trashed and need rebuilding. Also useful if you move files about manually as playlist membership is preserved when you delete & re-import the tracks.
tt2 -
How do I get more than one signature option in Fill and sign?
How do I get more than one signature option in Fill and sign?
Hi,
Are you trying to place more than one signature on a PDF document?
Please explain the workflow.
Regards,
Anand
Maybe you are looking for
-
I am unable to shut off my laptop because I can not close the mail app. Command Q doesn't work. While "quit mail" shows up under FILE on the menu bar, it is faded and not a working option. Mail appears to be frozen. I also can not pull up the mail
-
Process Trigger is not working in OIM 11gR2
Hi Experts, The Lookup.USR_PROCESS_TRIGGERS is not working. Assigned some process task on user attribute changes but it is not working as of now. Earlier it was working fine. Even I am not able to update the existing lookup value in Lookup.USR_PROCES
-
How to replicate parentheses using a view?
Hi, I want to create a view, but I have some problem to replicate some concept that normally I use within SQL here in a R/3 system. I have created this view inside SE11: CABN ATNAM LIKE '%_MOD' OR CABN ATNAM LIKE 'SC4%_102' AND CABN ATNAM NOT LIKE '%
-
Hi! I have a question about an olloclip I bought last year.
I was waiting for my receipt to appear in my email, but I didn't get anything. I have the packaging, the bag from apple and all. I'm updating from the iPhone4s to the iphone5. I was hoping to at least get an exchange but I'm not so sure about it
-
Instant camera taking photos for no reason
Basically, when I open up the WebCam Centre and the Capture tab the camera starts taking photo's of it's own accord. I am not touching anything, sometimes I am not even using the mouse and it takes a photo. Sometimes it's every 0 seconds sometimes it