PowerShell CSOM script for SharePoint Online - Setting column default metadata

%3CLINGO-SUB%20id%3D%22lingo-sub-56741%22%20slang%3D%22en-US%22%3EPowerShell%20CSOM%20script%20for%20SharePoint%20Online%20-%20Setting%20column%20default%20metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-56741%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.sharepointeurope.com%2Fcsom-set-default-column-value-settings-document-library%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.sharepointeurope.com%2Fcsom-set-default-column-value-settings-document-library%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-95563%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20CSOM%20script%20for%20SharePoint%20Online%20-%20Setting%20column%20default%20metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-95563%22%20slang%3D%22en-US%22%3EWell%2C%20in%20that%20case%20you%20should%20have%20a%20%22spare%22%20laptop%20you%20can%20use%20to%20manage%20SPO%2C%20as%20any%20laptop%20running%20Windows%20connected%20to%20the%20internet%20will%20do.%20And%2C%20PnP%20is%20just%20CSOM%20wrapped%20in%20functions%20so%20you%20don't%20have%20to%20script%20every%20single%20piece%20yourself.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20should%20put%20in%20a%20request%20to%20be%20allowed%20to%20use%20PnP%20posh%20imo%2C%20as%20not%20using%20it%20cost%20you%20money%20and%20time.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-95553%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20CSOM%20script%20for%20SharePoint%20Online%20-%20Setting%20column%20default%20metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-95553%22%20slang%3D%22en-US%22%3E%3CP%3EI%20did%20the%20raw%20CSOM%20with%20PS%20to%20execute%20PS%20without%20any%20additional%20installation.%20Sometime%20we%20are%20not%20allowed%20to%20install%20any%20new%20program%20in%20our%20laptop.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-58741%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20CSOM%20script%20for%20SharePoint%20Online%20-%20Setting%20column%20default%20metadata%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-58741%22%20slang%3D%22en-US%22%3EThis%20is%20also%20part%20of%20PnP%20cmdlets%20and%20core%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FSetPnPDefaultColumnValues.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FSetPnPDefaultColumnValues.md%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3Elist.SetDefaultColumnValues%20function.%20Dev%20branch%20support%20all%20field%20types%2C%20and%20will%20make%20it%20into%20next%20release.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
3 Replies
This is also part of PnP cmdlets and core: https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/SetPnPDefaultColumnValues.md

list.SetDefaultColumnValues function. Dev branch support all field types, and will make it into next release.

I did the raw CSOM with PS to execute PS without any additional installation. Sometime we are not allowed to install any new program in our laptop. 

Well, in that case you should have a "spare" laptop you can use to manage SPO, as any laptop running Windows connected to the internet will do. And, PnP is just CSOM wrapped in functions so you don't have to script every single piece yourself.

You should put in a request to be allowed to use PnP posh imo, as not using it cost you money and time.