guyster31 Posted November 20, 2014 Report post Posted November 20, 2014 Hi, I am trying to create a new package using a .sms definition file with PowerShell and I can't find any accurate information as to the correct way to specify the definition file in the cmdlet. the syntax is as follows: New-CMPackage -FromDefinition -PackageDefinitionName <String> -SourceFileType {AlwaysObtainSourceFile | CreateCompressedVersionOfSourceFile} -SourceFolderPath <String> -SourceFolderPathType {LocalFolderOnSiteServer | UncNetworkPath} [-Confirm] [-WhatIf] [<CommonParameters>] Looks fairly straightforward but it always fails complaining about the PackageDfinitionName parameter. Has anyone got any experience with this? Cheers Guy Quote Share this post Link to post Share on other sites More sharing options...