Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

Need some direction here

HiI am wondering how could I achieve this idea:I just finished cleaning items in deleted items folder older than 90 days.now I want to know if the items left are older than lets say 100 days but like...

View Article


Exchange 2003 and Powershell v1 help

Hi All,Heres the situation:Exchange 2003, PowerShell v1I'm looking to get the following information -- UserName, Mailbox Size, Last logon date and time and if I can get the last logon time filtered to...

View Article


move mail to a pst

I don't know if I am in the right place but here goesI found this script on the goolge to move emails in Outlook to a PST.  I get an error and I am clueless on how to get to to work. Here is the...

View Article

Retrieve List of Mail Enabled AD Accounts that are not a member of a Specific...

We need to find all mailboxes that are not a member of the group "EV Users 5 Years".  So we can then sift through and add all our remaining users into EV with exceptions.  I've worked at it for hours...

View Article

MS-exchange script to extract mail-admin audit logs

I have script logic as follows:- - check if the folder is empty - If **yes** Use the same command with exception time period of last 30 days. i.e StartDate etc       - If folder not empty get / extract...

View Article


Export all users to exel in exchange 2007

Our new Parent company wants all exchange users exported to .csvNow, I can do some powercli in VMware, but being a VMware guy makes this a challenge to me.We are running exchange 2007the following...

View Article

How can I log the result of a Powershell script?

Hi,I'm using the script below to change around 1000 MailboxFolderPermissions. I want to know how I can log the results in a txt-file. I tried to add ">D:\log.txt" and on the following row...

View Article

Report on individual mailbox.

I have written a Powershell command:Get-MailboxFolderStatistics 'Mailbox1' |select name, foldersize, itemsinfolder |Export-CSV C:\Mailbox1reportWhich works fine, I want to drill down a little more and...

View Article


Find Users Without Email Addresses

Hi -I am trying to pull a list of students that are in our AD, but not yet mail-enabled. There are certain criteria I need to filter to obtain the correct students.I'm looking for something like...

View Article


Get-mailboxfolderstatistics question

hello,How do I setup a powershell script to filter for the inbox item count for 2 specific Exchange 2010 mailboxes? Thank youGordon

View Article

Mailbox Search

Search-Mailbox -Identity "Joe Healy" -SearchQuery 'Subject:"Project Hamilton"' -TargetMailbox "DiscoveryMailbox" -TargetFolder "JoeHealy-ProjectHamilton" -LogLevel FullAbove command return all messages...

View Article

Reverse lookup on archive mailbox

Hi All, hope you're well.Wondering if anyone knows how to do a reverse look up on a an archive mailbox.So if you do a Get-Mailboxstatistics-Database DatabaseNameon a mailbox database that has Exchange...

View Article

how to recreate undelivered email report?

anyone have script to create undelivered emails report? I am looking for daily report for yesterday with sender and failed receipent.now i can view them from message tracker by doing DSN search and...

View Article


Exchange 2013 Dynamic Distribution Lists

I've been looking all over for a possible answer to this, and hoping I can find some help here. We use Exchange 2013 Dynamic Distribution lists in the environment (quite heavily too), to simplify user...

View Article

deleting file based on date which is on the Filename Useing powershell

i am doing a project and deadline is coming too close ....... this is how file in my folder looks BRDB0001_db_F20130316132517.bak i hve to delet file based on date on its file name which is older than...

View Article


Regex Pattern

Hi thereI'm trying to find all instances of the following types in my script below*Defender_**Midfielder_* *Winger_*How do i add the other 2 patterns as well into the script below and how do i evaluate...

View Article

use the value globally in different scripts.

Hello all,I am writing a script1.ps1 and script2.ps1. and want to store the value in a variable in script1.ps1  and use that value during the execution of script2.ps1 . is it possible. ? such that...

View Article


Adding and setting properties of custom psobjects in a loop

I have multiple functions which contain statements like these:http://pastebin.com/skdH29iaThey work fine almost every time, but occasionally output errors  like:Property 'LogonName' cannot be found on...

View Article

move-Item : move files to a file but a directory

Hi , everyone I have a question followed.i want to move some pdf files to a directory .  the ps command as follows:gci . -force -Recurse -include *.pdf | Move-Item  -Destination "E:\AllPdfFile" -Force...

View Article

on removing item

  $Files = Get-ChildItem C:\Users\xxx\Desktop\PRD\Data\03_Processed -Filter *.zip -recurse         #| % {$_.BaseName}        $Days = 10                        foreach ($file in $Files)             {...

View Article
Browsing all 10624 articles
Browse latest View live


Latest Images