It's Michael. But sure. From: Liby Philip Mathew [mailto:[email protected]] Sent: Wednesday, April 25, 2012 10:42 AM To: MS-Exchange Admin Issues Subject: RE: New-Alias in Microsoft.PowerShell_profile.ps1
Thanks Mike Regards Liby Philip Mathew | ICT Consultant ICT Professional Services Path Solutions Tel: +965 24824600 Ext. 703 Fax: +965 24824500 www.path-solutions.com<http://www.path-solutions.com/> From: Michael B. Smith [mailto:[email protected]]<mailto:[mailto:[email protected]]> Sent: Wednesday, April 25, 2012 2:35 PM To: MS-Exchange Admin Issues Subject: RE: New-Alias in Microsoft.PowerShell_profile.ps1 Can't be an alias. Aliases don't support arguments. Make it a function. function S { Get-MailboxDatabaseCopyStatus -Server mail1 } From: Liby Philip Mathew [mailto:[email protected]]<mailto:[mailto:[email protected]]> Sent: Wednesday, April 25, 2012 2:16 AM To: MS-Exchange Admin Issues Subject: New-Alias in Microsoft.PowerShell_profile.ps1 Hi Guys, How can I add the below command in Microsoft.PowerShell_profile.ps1 file so that typing "S" will get me the result of Get-MailboxDatabaseCopyStatus for the server named mail1. New-Alias S Get-MailboxDatabaseCopyStatus -Server mail1 Regards Liby Philip Mathew ________________________________ Disclaimer [The information contained in this e-mail message and any attached files are confidential information and intended solely for the use of the individual or entity to whom they are addressed. This transmission may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you have received this e-mail in error, please notify the sender immediately and delete all copies. If you are not the intended recipient, any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. Path Solutions accepts no responsibility for any errors, omissions, computer viruses and other defects.] --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe exchangelist
