The implementation of the "set-alias" cmdlet.C++ 複製 public ref class SetAliasCommand : Microsoft::PowerShell::Commands::WriteAliasCommandBaseInheritance Object InternalCommand Cmdlet PSCmdlet WriteAliasCommandBase SetAliasCommand Attributes CmdletAttribute OutputTypeAttribute ...
Module: Microsoft.PowerShell.Utility Creates or changes an alias for a cmdlet or other command in the current PowerShell session.SyntaxPowerShell Copy Set-Alias [-Name] <string> [-Value] <string> [-Description <string>] [-Option <ScopedItemOptions>] [-PassThru] [-Scope <string>] [-...
注意:在添加或删除范围位置时,请勿使用管道 Foreach-Object 命令: "Value1","Value2",..."ValueN" | Foreach-Object {Set-RetentionCompliancePolicy -Identity "Regulation 123 Compliance" -RemoveExchangeLocation $_}。 示例 示例1 PowerShell 复制 Set-RetentionCompliancePolicy -Identity "...
Set-CMTSStepRunCommandLine Set-CMTSStepRunPowerShellScript Set-CMTSStepRunTaskSequence Set-CMTSStepSetDynamicVariable Set-CMTSStepSetupWindowsAndConfigMgr Set-CMTSStepSetVariable Set-CMTSStepUpgradeOperatingSystem Set-CMUpdateGroupDeployment Set-CMUserDataAndProfileConfigurationItem Set-CMVpnProfileConfigurationItem...
Module: ExchangePowerShell Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange Online, Exchange Online ProtectionThis cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to...
PowerShell Copy Set-DistributionGroup [-Identity] <DistributionGroupIdParameter> [-AcceptMessagesOnlyFrom <MultiValuedProperty>] [-AcceptMessagesOnlyFromDLMembers <MultiValuedProperty>] [-AcceptMessagesOnlyFromSendersOrMembers <MultiValuedProperty>] [-Alias <String>] [-ArbitrationMailbox <MailboxId...
Get-FunctionAlias is a tool you can use in your scripting automation. It will extract function names and aliases from a PowerShell script file. The source must be a .ps1 or .psm1 file. The command will only identify aliases defined as part of the function using code like [alias('foo'...
A set of PowerShell functions you might use to enhance your own functions and scripts or to facilitate working in the console. Most should work in both Windows PowerShell and PowerShell 7, even cross-platform. Any operating system limitations should be h
Replace <Alias> with the Alias value of the mailbox, and run the following command:Get-ADUser <Alias> -Properties mDBUseDefaults | Format-List mDBUseDefaults. Type:Boolean Position:Named Default value:None Required:False Accept pipeline input:False ...
To get the thumbprint values of the primary and secondary token-signing certificates, open Windows PowerShell on the AD FS server and run the command Get-ADFSCertificate -CertificateType "Token-signing". For more information, see Get-ADFSCertificate. To enter multiple values and overwrite any exis...