#Exchange2010 – Found this and it’s damm handy and what’s cool is that its a Windows Powershell v2 thing and you don’t need Exchange Source: http://www.howexchangeworks.com/2009/11/send-emails-easily-using-powershell-v2.html -and- Source: http://technet.microsoft.com/en-us/library/dd347693.aspx The Send-MailMessage cmdlet sends an e-mail message from within Windows PowerShell. Send-MailMessage –From Rajith@chakka.local –To Deepak@chakka.local –Subject “Test Email” –Body “Testing the cmdlet” –SmtpServer exch07.chakka.local
Archive for the ‘Scripting’ Category:
Powershell Cmdlets for SCOM 2007 R2 (beta)
PsSnapin is called: Microsoft.EnterpriseManagement.OperationsManager.Client get-help * | where {$_.pssnapin -like “*Enter*”} | sort name | select name,synopsis | ft –auto Name Synopis Add-ConnectorToTier Configures an Operations Manager Connector Framework connector for a specified tier. Add-RemotelyManagedComputer Adds a remotely-managed computer to an agent. Add-RemotelyManagedDevice Adds a remotely managed device to an agent. Add-UserToUserRole Adds the specified
(More)…
Export non expiry password accounts
I’m doing requests now This script will dump a list of user accounts that have “Password never expires” checked $CurrentDomain = [System.DirectoryServices.ActiveDirectory.Domain]::getcurrentdomain() $Forest = $CurrentDomain.Forest.ToString() $Forest = “dc=” + $Forest $Forest = $Forest.Replace(“.”,”,dc=”) $Root = New-Object DirectoryServices.DirectoryEntry $Dom $selector = New-Object DirectoryServices.DirectorySearcher $selector.PageSize = 1000 $selector.SearchRoot = $root $selector.Filter= “(&(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))” $objs= $selector.findall() $objs
Setting Exchange mailbox size limits on a group
WHAT! I hear you say, you can’t do that! .. Very true, but you can automate it using the wonders of Powershell Exchange 200x First you will need to use adsiedit.msc and get the groups distinguishedName. Once you have that, using an account that has access to over the users AD objects you run this
(More)…
Get a list of scheduled tasks running on your exchange servers
This is a handy little check. If you want to see what scheduled tasks are running on your Exchange 2007 servers try this: Get-ExchangeServer | foreach-object{$srv=$_.Name.ToString(); write-host “`n`n$srv”; schtasks /s \\$srv /query} Enjoy
Add a user to the local administrators group
How cool is this $srv=hostname;([ADSI]“WinNT://$srv/Administrators,group”).Add(“WinNT:///”)
Exchange 2007 / Outlook 2003 / Blackberry & OoO
I saw Andy posted this (http://telnetport25.wordpress.com/2008/03/16/quick-ish-tip-exchange-2007-setting-oof-for-users-via-powershell-2/) today and wanted to share my script. It uses the same dll from Glen(EWSOofUtil.dll) to open the specified users mailbox and Enable/Disable a users Out Off Office Setting. This in theory fixes an Issue with Exchange 2007 and Outlook 2003/Blackberry Enterprise Server The script also checks to see if
(More)…
.. omatic
Been surfing today and found a whole load of Microsoft .. omatic utilities Tweakomatic The Tweakomatic is a nifty new utility that writes scripts that allow you to retrieve and/or configure Windows and Internet Explorer settings. So what, you might ask. Well, think about it. Because these are WMI scripts, they can be used to
(More)…





Comments Off 




