SOLVED

Problems editing meeting policy with PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-1960800%22%20slang%3D%22en-US%22%3EProblems%20editing%20meeting%20policy%20with%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960800%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20edit%20a%20meeting%20policy%20with%20PowerShell.%20But%20I%20keep%20getting%20an%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3Eget-CsTeamsMeetingPolicy%20-%20identity%20%22Tag%3AStefan%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIdentity%20%3A%20Tag%3AStefan%3CBR%20%2F%3E...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ESet-CsTeamsMeetingPolicy%20-%20Identity%20%22Tag%3AStefan%22%20-RecordingStorageMode%20%22OneDriveForBusiness%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eor%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESet-CsTeamsMeetingPolicy%20-%20Identity%20%22Stefan%22%20-RecordingStorageMode%20%22OneDriveForBusiness%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EResult%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22TeamsMeetingPilicy%22%20%22Tag%3AStefan%22%20cannot%20be%20found%20because%20it%20is%20not%20present.%26nbsp%3B%3CBR%20%2F%3EParameter%20name%3A%20Identity%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1960800%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMeetings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960837%22%20slang%3D%22en-US%22%3ERe%3A%20Problems%20editing%20meeting%20policy%20with%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960837%22%20slang%3D%22en-US%22%3EHi%2C%20remove%20the%20%E2%80%9D%20from%20identity%2C%20see%20xxxx%20below.%3CBR%20%2F%3E%3CBR%20%2F%3ESet-CsTeamsMeetingPolicy%20-Identity%20xxxx%20-RecordingStorageMode%20%22OneDriveForBusiness%22%3C%2FLINGO-BODY%3E
Regular Contributor

I am trying to edit a meeting policy with PowerShell. But I keep getting an error.

 

get-CsTeamsMeetingPolicy - identity "Tag:Stefan"

Identity : Tag:Stefan
...

 

Set-CsTeamsMeetingPolicy - Identity "Tag:Stefan" -RecordingStorageMode "OneDriveForBusiness"

or

Set-CsTeamsMeetingPolicy - Identity "Stefan" -RecordingStorageMode "OneDriveForBusiness"

 

Result

 

"TeamsMeetingPilicy" "Tag:Stefan" cannot be found because it is not present. 
Parameter name: Identity

 

2 Replies
Best Response confirmed by Stefan Kießig (Regular Contributor)
Solution
Hi, remove the ” from identity, see xxxx below.

Set-CsTeamsMeetingPolicy -Identity xxxx -RecordingStorageMode "OneDriveForBusiness"

@bec064 

 

Thank you. This was the problem.