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 ...
Microsoft.PowerShell.Utility Creates or changes an alias for a cmdlet or other command in the current PowerShell session. Syntax PowerShellCopy Set-Alias[-Name] <string> [-Value] <string> [-Description <string>] [-Option <ScopedItemOptions>] [-PassThru] [-Scope <string>] [-Force] [-Wh...
PowerShell 复制 Set-DynamicDistributionGroup [-Identity] <DynamicGroupIdParameter> [-AcceptMessagesOnlyFrom <MultiValuedProperty>] [-AcceptMessagesOnlyFromDLMembers <MultiValuedProperty>] [-AcceptMessagesOnlyFromSendersOrMembers <MultiValuedProperty>] [-Alias <String>] [-ArbitrationMailbox <MailboxIdPar...
PowerShell Copy Set-UnifiedGroup [-Identity] <UnifiedGroupIdParameter> [-AcceptMessagesOnlyFromSendersOrMembers <MultiValuedProperty>] [-AccessType <ModernGroupTypeInfo>] [-Alias <String>] [-AlwaysSubscribeMembersToCalendarEvents] [-AuditLogAgeLimit <EnhancedTimeSpan>] [-AutoSubscribeNewMembers] [-...
PowerShell Copy Set-DistributionGroup [-Identity] <DistributionGroupIdParameter> [-AcceptMessagesOnlyFrom <MultiValuedProperty>] [-AcceptMessagesOnlyFromDLMembers <MultiValuedProperty>] [-AcceptMessagesOnlyFromSendersOrMembers <MultiValuedProperty>] [-Alias <String>] [-ArbitrationMailbox <MailboxId...
Set-CMTSStepRunCommandLine Set-CMTSStepRunPowerShellScript Set-CMTSStepRunTaskSequence Set-CMTSStepSetDynamicVariable Set-CMTSStepSetupWindowsAndConfigMgr Set-CMTSStepSetVariable Set-CMTSStepUpgradeOperatingSystem Set-CMUpdateGroupDeployment Set-CMUserDataAndProfileConfigurationItem Set-CMVpnProfileConfigurationItem...
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...
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'...
To verify the value of the UseDatabaseRetentionDefaults property on the mailbox, do the following steps in the Exchange Management Shell: Run the following command: Import-Module ActiveDirectory. Replace <Alias> with the Alias value of the mailbox, and run the following command: Get-ADUser <...
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