A positional parameter cannot be found that accepts argument

Roger Roger 6,731 Reputation points
2025-02-02T21:02:21.7733333+00:00

Hi All

I used the following syntax to grant "TempPolicy1" globally. However, I am encountering an error while trying to remove this policy "TempPolicy1" globally Please guide me.

Grant-CsApplicationAccessPolicy -PolicyName "TempPolicy1" -Global

i have used below syntaxes

Grant-CsApplicationAccessPolicy -PolicyName "TempPolicy1" $Null -Global

Grant-CsApplicationAccessPolicy : A positional parameter cannot be found that accepts argument '$null'.  

Grant-CsApplicationAccessPolicy -PolicyName "TempPolicy1" $Null

Grant-CsApplicationAccessPolicy : Cannot bind argument to parameter 'Group' because it is an empty string.

Microsoft Exchange Online
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,777 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,717 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,525 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,615 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.