HowTo: Get and Set User Settings Using PowerShell with PWPS_DAB (64-Bit)

I have added a new post to my blog for getting and setting user settings. Please take a look. Hopefully, you find it useful.

https://powerwisescripting.blog/2019/04/01/howto-get-and-set-user-settings-using-powershell-with-pwps_dab-64-bit/

Cheers,

Brian

  • Wonderful, FYI I posted a question about this 2 months ago and I would have missed out if you didn't point it out Brain.

    https://communities.bentley.com/products/projectwise/content_management/f/projectwise-powershell-extensions-forum/174360/get-pwusersetting-settingid-for-administrative-options

    Thanks to Dave as well!

  • Thought I'd just drop this here if it is of help to anyone....

    Update-PWUserSetting -SettingName options
    -SettingName <SettingName>
    Area / Parameter Parameters
    Working Directory Settings
    WorkDir_CanChangeWorkDirSettings 0/1
    WorkDir_WhenUsingPWExplorer Full path and can use $User.Name$
    WorkDir_WhenUsingPWWebServer Full path and can use $User.Name$
    General Settings
    General_CanChangeGeneralSettings 0/1
    General_CredentialExpirationPolicy Default, NoExpiration, or just number for number of hours e.g 4
    General_UseAccessControl 0/1
    General_CanOnlyLoginThroughWebViewServer 0/1
    User Interface Settings
    UI_CanChangeUISettings 0/1
    UI_CanEditSets 0/1
    UI_CanEditVersions 0/1
    UI_ShowDialogOnError 0/1
    UI_ShowProgressDuringFileTransfers 0/1
    UI_ShowSelectReferenceDocsDialog 0/1
    UI_ShowLocalDocOrganizerOnLogOut Never (Do not show), Always (Show always), InPWExplorerOnly (Show in ProjectWise Explorer only)
    UI_ShowDescriptionsInsteadOfNames 0/1
    UI_UseURNLinks 0/1
    UI_SelectLastUsedFolderInPWExplorer 0/1
    UI_ShowFileProperties 0/1
    UI_ShowDocThumbnailInPreviewPane 0/1
    UI_ShowFullTextSearch 0/1
    User Interface - Document Properties - Attribute Tabs Section
    UI_DocProperties_ConfirmSaveChanges 0/1
    UI_DocProperties_OpenLastViewedTab 0/1
    User Interface - Document Search Section
    UI_DocSearch_OpenAttributesTabFirst 0/1
    Administrative Settings
    Admin_CanChangeAdminSettings 0/1
    Admin_EnableAsDelegateUser 0/1
    Admin_EnableGroupAndUserListOwnership 0/1
    Admin_ShowAccessControlTabInPreviewPane 0/1
    Administrative - Datasource settings
    Admin_Datasource_CanUseRecycleBin 0/1
    Administrative - Storage settings
    Admin_Storage_CanCreate 0/1
    Admin_Storage_CanDelete 0/1
    Admin_Storage_CanModify 0/1
    Admin_Storage_ShowAllProperties 0/1
    Administrative - Licensing settings
    Admin_Licensing Server (Activate and record usage through connected Integration Server), Client (Activate and record usage through client's configured SELECTserver)
    Administrative - Network Transfer settings
    NetworkTransfer_CanChangeNetworkTransferSettings 0/1
    NetworkTransfer_EnableDeltaFileTransfer 0/1
    NetworkTransfer_CompressClientServerRequestData 0/1
    NetworkTransfer_EnableFileTransferConnectionSharing 0/1
    Document Settings
    Doc_CanChangeDocSettings 0/1
    Doc_CanCreate, Doc_CanCreateVersion 0/1
    Doc_CanModify 0/1
    Doc_CanDelete 0/1
    Doc_CanFree 0/1
    Doc_CanSetFinalStatus 0/1
    Doc_CanRemoveFinalStatus 0/1
    Doc_CanChangeState 0/1
    Doc_UseLocalRecycleBinOnFree 0/1
    Doc_LeaveLocalCopyOnCheckIn 0/1
    Doc_LeaveLocalCopyOnFree 0/1
    Doc_UseUpToDateLocalCopyOnCheckOut 0/1
    Doc_UseUpToDateLocalCopyOnCopyOut
    Doc_UseCaptiveEnvironment
    Document List Settings
    DocList_CanChangeDocListSettings 0/1
    DocList_ShowSubfolders 0/1
    DocList_ShowTooltips 0/1
    DocList_DoubleClickAction Default, CheckOut, CopyOut, ExportToFolder, Markup, Modify, NewVersion, Open, OpenAsReadOnly, OpenWith, View 
    DocList_RefreshDisplay ByCommand, AfterOperation, DuringOperation
    DocList_ShowAllVersions 0/1
    Folder Settings
    Folder_CanChangeFolderSettings 0/1
    Folder_CanCreate 0/1
    Folder_CanModify 0/1
    Folder_CanDelete 0/1
    Folder_CanChangeWorkflowOrState 0/1
    Folder_ShowFolderHierarchy 0/1
    Message Folders settings
    MessageFolders_CanChangeMessageFolderSettings 0/1
    MessageFolders_EnableMessagePolling 0/1
    MessageFolders_ShowMessageFolders 0/1
    MessageFolders_CanCreate 0/1
    MessageFolders_CanModify 0/1
    MessageFolders_CanDelete 0/1
    MessageFolders_CanMove 0/1
    MessageFolders_CanAccessItems 0/1
    MessageFolders_CanModifyItems 0/1
    Custom Folders settings
    CustomFolders_CanChangeCustomFolderSettings 0/1
    CustomFolders_ShowCustomFolders
    Custom Folders - Personal Folders settings
    CustomFolders_PersonalFolders_CanCreate 0/1
    CustomFolders_PersonalFolders_CanModify 0/1
    CustomFolders_PersonalFolders_CanDelete 0/1
    CustomFolders_PersonalFolders_CanMove 0/1
    CustomFolders_PersonalFolders_CanAddNewItems 0/1
    Custom Folders - Global Folders settings
    CustomFolders_GlobalFolders_CanCreate 0/1
    CustomFolders_GlobalFolders_CanModify 0/1
     CustomFolders_GlobalFolders_CanDelete 0/1
    CustomFolders_GlobalFolders_CanMove 0/1
    CustomFolders_GlobalFolders_CanAddNewItems 0/1
    CustomFolders_GlobalFolders_Show 0/1
    Custom Folders - Other Users' Folders settings
    CustomFolders_OtherUsersFolders_CanCreate 0/1
    CustomFolders_OtherUsersFolders_CanModify 0/1
    CustomFolders_OtherUsersFolders_CanDelete 0/1
    CustomFolders_OtherUsersFolders_CanMove 0/1
    CustomFolders_OtherUsersFolders_CanAddNewItems 0/1
    CustomFolders_OtherUsersFolders_Show 0/1
    Global User Lists settings
    CanChangeGlobalUserListSettings 0/1
    AddressBookList_CanCreate 0/1
    AddressBookList_CanModify 0/1
    AddressBookList_CanDelete 0/1
    AccessUserList_CanCreate 0/1
    AccessUserList_CanModify 0/1
    AccessUserList_CanDelete 0/1
    Document Creation Conflicts - Action Settings
    Action_CanChangeActionSettings 0/1
    Action_ApplySameRulesForAllItems 0/1
    Action_ShowSelectAnActionDialog 0/1
    Action_DefaultAction Skip, CreateNewVer, CreateNewDoc
    Document Creation Conflicts - New Version Settings
    NewVer_CanChangeNewVerSettings 0/1
    NewVer_ApplySourceDocAttributes 0/1
     NewVer_RemoveTargetDocAttributes 0/1
    NewVer_ApplyDocNameOfSourceDoc 0/1
    NewVer_ApplyFileNameOfSourceDoc 0/1
    NewVer_ShowDefineVerRulesDialog 0/1
    NewVer_VersionStringFormat BLANK or whatever it may be (custom i.e. %O %S %2d or whatever is required)
    Document Creation Conflicts - New Document Settings
    NewDoc_CanChangeNewDocSettings 0/1
    NewDoc_ApplySourceDocAttributes 0/1
    NewDoc_ShowDefineDocRulesDialog 0/1
    Document Creation Conflicts - New Document - Document name format rule Settings
    NewDoc_DocNameFormatRule AddSuffix (Add suffix to the old name), Change (Change name), AddPrefix (Add prefix to the old name)
    Document Creation Conflicts - New Document - Document name format  Settings
     NewDoc_DocNameFormat BLANK or whatever it may be (custom i.e. %O %S %2d or whatever is required)
    Document Creation Conflicts - New Document -File name format rule Settings
    NewDoc_FileNameFormatRule AddSuffix (Add suffix to the old name), Change (Change name), AddPrefix (Add prefix to the old name)
    Document Creation Conflicts - New Document -File name format Settings
    NewDoc_FileNameFormat BLANK or whatever it may be (custom i.e. %O %S %2d or whatever is required)
    Audit Trail settings
    AuditTrail_CanChangeAuditTrailSettings 0/1
    AuditTrail_ShowAuditTrailTabInDocProperties 0/1
     AuditTrail_ShowAuditTrailTabInFolderProperties 0/1
    Audit Trail - Reports settings
    AuditTrail_Reports_CanChangeReportSettings 0/1
    AuditTrail_Reports_ShowPrivateActions 0/1
    AuditTrail_Reports_ShowActionsOfOtherUsers 0/1
    Audit Trail - Comments settings
    AuditTrail_Comments_CanChangeCommentSettings 0/1
    AuditTrail_Comments_AllowForCheckIn 0/1
    AuditTrail_Comments_AllowForExport 0/1
    AuditTrail_Comments_AllowForVersionCreate 0/1
    AuditTrail_Comments_AllowForStateChange 0/1
    AuditTrail_Comments_AllowForFinalStatusChange 0/1
    AuditTrail_Comments_RequireWhereAllowed 0/1
    Audit Trail - Delete settings
    AuditTrail_Delete_CanChangeDeleteSettings 0/1
    AuditTrail_Delete_CanDeleteRecords 0/1
    Managed Configuration settings
    ManagedWorkspace_CanChangeManagedConfigSettings 0/1
    ManagedWorkspace_CanChangeExportErrorHandling 0/1
    ManagedWorkspace_CanEditPersonalConfigVariables 0/1
    ManagedWorkspace_ShowDatasourceLevelOptions 0/1
    ManagedWorkspace_ShowPersonalConfigTab 0/1
    Managed Configuration - Export relative path errors handling settings
    ManagedWorkspace_ExportRelativePathErrorsHandling Ignore (Ignore invalid relative path errors), Fail (Fail on error), Prompt (Prompt user)
    Project / Work Area
    Project_CanChangeProjectSettings 0/1
    Project_CanCreateAndUpgradeFromFolder 0/1
    Project_CanChangeTypesAndProperties 0/1
    Project_CanDelete 0/1