How do I make this code run twice?
I found some code online that reads your UNINSTALL key in the registry and reports back what you have installed. $computers = Read-Host $array = @() foreach($pc in $computers){...
View ArticleUsing [System.Enum] remotely without PowerShell Remoting
Hello AllCan someone please help me with the following questionIf I do the following is lists the X509 stores on my...
View ArticleExchange 2007 Get-mailbox
Hi,Get-mailbox have a parameter "UseDatabaseQuotaDefaults" True if it's use the default values, false if not.I need to check by IF statement if it's True or...
View ArticlePowershell Export to CSV does not match information on screen
Hi, I have created the attached PowerShell script, it runs correctly on screen but the information for the "AlternativeSMTP" details is not exporting correctly to the CSV File, it will export for some...
View ArticleScript to create user Account
We would like to have the script doing following. Please advise:The scripts searches and creates a user account with First Name Initial and Last Name.Example: John Edward Kerrythe user name will be:...
View ArticleRunning Exchange Management Shell from Excel VBS
Private Sub CommandButton1_Click()Counter = 3DoDim CommandCommand = Worksheets("table1").Cells(Counter, 1).ValueShell ("C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile...
View Articlesmtp creator in excel
$data = $null$data = @{}Select-String c:\hash2.txt -Pattern "([a-z]+).+?=.+?([a-z.]+)" | ForEach { $_.matches} | ForEach { $tokens = @($_.groups[1].value,$_.groups[2].value);...
View Articleopen EMS Powershell 2.0 from excel VBS
hithis code below running in my exchange 2013 test environment. But under Exchange 2010 with powershell 2.0 it opens only a ps session for every code line in excel and close it again.No code execute...
View ArticleExchange 2010 Query
I have a very odd issue and I am not sure if it is PoSh or Exchange related but I will post it here anywayBasically I have put together a PS1 file for our administrators to use which will prompt them...
View ArticleHelp with adding a string to an existing script
Guys, I would like to know what should i use to add a manager to a user in AD i have the below script that working just fine, i just want to add the manger filed as well. #Import ActiveDirectory module...
View ArticleNew-mailboxExportRequest and New-MailboxImportRequest in sequence
Hi.I need to export mail to .pst and when status -eq 'complete' then run import .pst to another mailbox. Does anybody know how to do this? Best Regards Trond Jenssen
View ArticleExchange 2010 Search-Mailbox Issue
I am having a problem getting "Search-Mailbox -SearchQuery" to accept a variable.There are examples in the script on how to properly format the query (not shown here).The problem appears to be the...
View ArticleProblems with Prepare-MoveRequest.ps1
Hi guys,I am trying to execute Prepare-MoveRequests.ps1 in a powershell script and the command is not working properly. I store the command in a variable ($sCmd) and use invoke-expression $sCmd.It...
View ArticleScript to get a report of new user accounts
Hello, Have Exchange 2010 SP2.Does anyone know if there is any or how to create a script that will generate a report of every new created user account. I am looking to get these reports on a weekly or...
View ArticleDelivery options
Hii i have exchange 2010 i need add user send on behalf with power shell. can you help me? thnx.
View ArticleSet-DistributionGroup with linked mailbox users
I was hoping to give managed by rights to users that are linked in my exchange 2010 enviroment.the PS below is unable to find user object. Set-DistributionGroup -Identity...
View Articlehow can I convert certain UserMB to SharedMB?
Howdy Folks!So I have a lot of MBs that I'd like to convert to SharedMB. Instead of doing it one by one, what's the format of the xls or text file that it needs to be in for me to feed it to command to...
View Articledelete only pst Files from Exchange Users
Hello, i'm trying to create a backup script for my exchange server. I want to export all mailboxes with these script. I have two folders with read/write permissions for the Exchange Trusted...
View ArticleImport 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 ArticleConneting to Exchange 2010 from win7(different domain)
Hello All,Client: Win 7 EnterpriseClient Domain:ds.swin.edu.auHost server: Windows 2008 R2 EnterpriseSever domain: ex.swin.edu.auExchange: 2010How do I connect to Exchange 2010 with powershell...
View Article