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

Output if folder compare are the same.

Nohandle - This is a script you posted a while back.  How can I get the script to output if the folders are the same "The data in the folders are the same"  and still show the output if they are...

View Article


Powershell: Binary Modules vs Script Modules

Hi Experts,I'm writing a Build Process (wrapping msbuild in my module) for 350+ projects (VS 2010). This module now includes lots of Functions. Although, it is working efficently, but , I've started...

View Article


Removing Windows Optional Feature In Win8

Hi All,I have a Windows 8 (not 8.1) laptop with an SSD that's constantly almost out of space.  Disk cleanup goes some way, but I dug around and discovered the removing Windows Optional Features....

View Article

Distribution Groups

I am trying to filter out some Distribution groups with the following script but it does not seem to be working to allow me to filter based on a specific set of characters in the name -$dist = ForEach...

View Article

List all variables in a script

Hi All,Do we have a command or script which lists/displays variables used in a script? Ex, i have a posh script, which has 10 variables . I need list of only those 10 variables. I dont need default...

View Article


powershell O365 - Import-Module : Could not find a part of the path

Hi, I'm try to import some cmdlet from o365 I get this error. Does anyone know why I get this. This happens some time. [PS] Z:\>$global:LiveCred = Get-Credential$global:Session = New-PSSession...

View Article

Get-ADUser to Get-Mailbox

I'm running a report with the below script.All our users have an EmployeeID field populated. So I had to create the dump.txt file with:Get-ADUser-Filter'employeeid -like "*" -and employeeid -notlike...

View Article

Parse CSV with udpated Contact details, and update Contacts' details with...

We have a list of email contacts with Customattribute1 set to a 6 digit number.I will be provided with a list of these contacts in csv, some of the details may have changed, such as lastname, title and...

View Article


PowerShell queries across sites very slow

Hey guys, I am setting up Exchange 2010 on Windows 2012 servers in 2 sites. These are 2 different AD sites and they are connected with a 10MB pipe with no firewalls between them. When I run Exchange...

View Article


Report for last time user accessed their email account and sorted by department

I've been tasked with creating a report listing users, department,  last date/time they accessed their email account sorted by department.The example I have provides a lot of information but not the...

View Article

exchange 2010 - list folders for all users inc number of items

I need to list all folders that our users have in their outlook inc number of items.This is what I have:Get-Mailbox | Get-MailboxFolderStatistics -FolderScope All |Sort-Object FolderSize...

View Article

Rename exported PST files from samAccountName to primarysmtpaddress

First time working with scripting with Powershell. I need your help.  I have completed an export of all users mail data to PST files for ingestion into a cloud archive solution.  The cloud solution...

View Article

Exporting users with a pecified Prohibit Send quota to a csv

Most of my users in the Org are set to use Mailbox database quota defaults.  However, we have some on-offs that have been manually configured to have a 2500 MB Prohibit Send Value assigned.  How do I...

View Article


Get-MobileDevice and remove duplicates

Here is the current script I have which produces the results I want but since individuals have multiple devices (iphone, ipad, android, windows phone etc) the results have there name on multiple rows....

View Article

O365 - Exchange 2013

Hi Experts! - I am a newbie to powershell with experience over the last several months doing standard work as a systems admin..never been a scripter/programmer; but I am trying!I am trying to right a...

View Article


Dynamic Distribution List in Exchange 2010

Hi I am looking for a powershell script that will allow me to create a Dynamic Distribution for all the users-city = Brooklyn-state = NY-And not contractor.Under the general Tab for a user account, in...

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


Array not populating correctly from foreach loop

Have a report, where I fetch data, but need to insert a field, whose value is derived from what is in another field. Trouble is coming from the foreach loop. Every loop is appending an index into...

View Article

modifying mapirecipient with powershell

I would like to set the mapirecipient field from $True to $False for a contacts in Active Directory ( These are contacts and are not mail enabled) by loading the Exchange shell I can get the...

View Article

Want to delete (60) Disconnected mailboxes in 2010

We have moved over 60 mailboxes in exchange 2010 to another mailbox database. The original mailboxdatabase now has over 60 disconnected mailboxes.  We want to delete the mailboxes now and not wait for...

View Article
Browsing all 10624 articles
Browse latest View live