Wednesday, November 2, 2016

Windows Show Time Zone Command Line

systeminfo | findstr  /C:”Time Zone”
Read more...

Monday, October 3, 2016

Get mailbox grant send on behalf to (PowerShell)

et-Mailbox -Filter {GrantSendOnBehalfTo -ne $Null} |Select Alias, @{Name='GrantSendOnBeh
alfTo';Expression={[string]::join(";", ($_.GrantSendOnBehalfTo))}} | Export-Csv -NoType -encoding "unicode" C:\MailboxesSendOnBehalfPermCheck.csv
Read more...

Get mailbox forward to from mailboxes

Get-Mailbox -Filter {ForwardingAddress -ne $Null} |Select Alias, ForwardingAddress | Export-Csv -NoType -encoding "unicode" C:\MailboxesForwardcheck.csv
Read more...

List all Users Who Have Access to Other Exchange Mailboxes (PowerShell)

Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation C:\\mailboxpermissionscheck.csv

Read more...

Thursday, July 21, 2016

You don't have permission to sync with this server exchange 2010

This error is caused by the maximum Mobile Phone limit (10 device)  in Exchange 2010.

You can increase this limit by using Throttling policy.

First Create new throttling policy.

New-Throttlingpolicy "Increased ActiveSync Devices1" -EasMaxDevices 
600 -EasMaxConcurrency 20
 
 -EasMaxDevices 20 (Maximum mobile phone limit)
 
 -EasMaxConcurrency  (Maximum  concurrent device that will sync.)


 
 
Then assign this policy to user.

Set-Mailbox username -ThrottlingPolicy "Increased ActiveSync Devices1"
 
 
 
Check if Policy applied to mailbox
 
Get-Mailbox username -ThrottlingPolicy | FL 
 

Read more...

Tuesday, May 10, 2016

Export Skype for Business Users List


Get-CsUser -OU "ou=Users,dc=domain,dc=com" | Export-Csv -Path c:\Logs\Skypeuser.csv
Read more...

Exchange 2010 Export to PST

Exchange 2010 Export to PST

Online Archive

New-MailboxExportRequest -Mailbox user.name -IsArchive -FilePath "\\exc01\PSTExport\username.pst"

Mailbox

New-MailboxExportRequest -Mailbox user.name -FilePath \\exc01\pst\username.pst

Get-MailboxExportRequest

Get-MailboxExportRequest -Name MailboxExport | fl

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Get-MailboxExportRequest | where {$_.status -eq "Completed"}
Read more...

Active Directory Object Creation Date Report (Quest ActiveRoles Management Shell)


Computer accounts created in last 321 Days.

Get-QADComputer -CreatedAfter (Get-Date).AddDays(-321) | Export-CSV c:\SAMReport\AdReportComp.csv


User accounts created in last 321 Days.

Get-QADUser -CreatedAfter (Get-Date).AddDays(-321) | Export-CSV c:\samreport\AdReportUSer.csv

Read more...
 
span.fullpost {display:none;}