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

Import multiple PST files to archive database

I need to create some script for import pst users archives to EXCHANGE 2010 sp1 database.Mail archives stored on single file server \\FILE-SERVER\PST\%Username%\An amount and name of files is different...

View Article


Accept Message Restriction - Exchange 2007

Dear experts,                 Good day! I would like to achieve the followings using PowerShell. Your step-by-step guidance is very much appreciated. 1.      To find out the list of mailbox and...

View Article


Sum deleted items

Hi thereim trying to run a small one liner that will sum the total deleted items folder for a group of users on adatabase so something like this:Get-Mailbox -Database db1 |Get-MailboxFolderStatistics...

View Article

Exchange 2010 Dynamic Distribution Group needed

Where: RecepientType equals User MailboxANDCompany does NOT equal "Rex"

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


Have a script but getting errors. Bulk upload contact to GAL office 365 from csv

I have found this script looks great, when I run it in PowerShell It creates the contacts, enters in the Name fields ( Name-first-last-email) but when it goes to the Set Contact parameter there are...

View Article

Script to clean out old messages from Journal mailbox after exporting email...

After using the following script to export email to a .PST file I'm wanting to clean out the Journal email box called "JournalMailbox":  New-MailboxExportRequest JournalMailbox -FilePath...

View Article

Change linkedmasteraccounts on multiple users using import-csv in Exchange 2007.

I am trying to change linkedmasteraccounts for around 200 users. I tried to script it, script below but it seems to fail. I am new at this and would appreciate any advice on how to get the script below...

View Article


Creating a New Email address policy for users in another Domain with Exchange...

Hi EveryoneIs it possible to create a new-emailaddress policy with Exchange 2013 Powershell, for users within OU´s located on another different domain/forest than where Exchange 2013 is installed?...

View Article


set custom attribute15 valuse for all recipients in one DL

I need to set the custom attribute15 valuse as "Green" for all recipients in one Distribution list by powershell script. I am having exchange 2007 environment. some one can you help on this? 

View Article

Script to get mailbox size for users by department

I need assistant getting mailbox size for a group of users that belong to a specific department.  Does anyone know how to use the Department field as a parameter in a script.  Ideally I would like to...

View Article

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


Change Drive Letter

Currently, I have a USB3 disk that I insert into a server on a weekly basis.I want to get the label of this disk "Week1", "Week2" etc.. and pass that to a command that will change the drive letter to...

View Article

To run a software application

Need help in installing the software's using PowerShell.At my knowledge i have created a script but it need manual intervention to install. please help.Set-ExecutionPolicy RemoteSigned -ErrorAction...

View Article


Attaching LUNs in VMWare from NetApp SAN

Normal 0 false false false EN-AU X-NONE X-NONE MicrosoftInternetExplorer4Background:  I am trying to add an existing datastore to a VM from a NetApp San.  The datastore is a volume clone of a NetApp...

View Article

Remove-Item in folder\sub-folders

Hi,I wrote this script, delete files from folder and sub folders that older then X days:# set folder path$path = "C:\Temp\"# set min age of files$max_days = "-60"# get the current date$curr_date =...

View Article


Get status of an iSCSI target using iscsicsli command

Hello !!I want to display the status of an iSCSI target (connected, inactive, ...) using iscsicli command."iscsicli ListTargets" displays only the name of the different targets without the state. How...

View Article

Get-content (Joint path) problem

Hello,i am trying to write simple script which for some reason returns an error to me,here is the code that i have:param (    [string]$LogFile = (read-host "which file would you like to walk through"),...

View Article

Dynamically Created ToolStripMenuItems

Here is what I'm trying to do:I'm creating a form with a MenuStrip. One of the MenuStripItems is $Env:UserName. The DropDownItems of that MenuStripItem would need to be dynamically created, based on a...

View Article
Browsing all 10624 articles
Browse latest View live