Showing posts with label Administator. Show all posts
Showing posts with label Administator. Show all posts

Monday, August 10, 2020

Import, Export and Uninstall the model from Microsoft Dynamics AX 2012

Introduction: 

In this blog, we will see how we can import, export and uninstall the model from Microsoft Dynamics AX 2012 

Details: 

Prerequisite for import, export and uninstall the model from the environment, run the command prompt as in administrator mode.

Form Importing the model script: 
Install-AXModel -File "Path_Of_the_Model_File" -server ServerName -database DatabaseName_Model –Details

Exmaple:
Install-AXModel -File "D:\Model\VARModel.axmodel" -server CFSEnvVM -database DAX2012R3CFSEnv_Model –Details
Form Exporting the model script: 
Export-AXModel -Model 'Model' -File 'Path' -server 'ServerName\DBName' -database 'DatabaseName_Model'

Exmaple:
Export-AXModel -Model 'CUS Model' -File 'C:\ModelFile\CUSModel.axmodel' -server 'TESTSERVER\CFSDAXSQL2014' -database 'DAX2012R3Blank_model'
Form Uninstalling the model script: 
Uninstall-AXModel -Model 'Model' -server 'ServerName' -database 'DatabseName_Model'

Exmaple:
Uninstall-AXModel -Model 'VAR Model' -server 'CFSEnvVM' -database 'DAX2012R3Test_model'

Thanks for reading !!!

Friday, April 10, 2020

How to delete workspace from TFS Visual Studio

Introduction:

In this blog, we will see how we can delete any of the TFS workspace which is assigned to different user

Even if tried to remove/delete the workspace from Visual Studio, We're unable to map existing workspace to new user.  

In such scenario, It is necessary to delete the workspace explicitly while getting the error as below 
"The working folder 'Workspace_Folder_Local_Path' is already in use by  the workspace : on computer 


Solution: 

1. Open Developer Command Prompt for VS2015 from Start menu

2. For getting the list of workspaces associated with user, run below command
tf workspaces /server:https://{TFS}.visualstudio.com/{CollectionName} /owner:"{Owner}"
Explanation, in my case {TFS} is xxxx.visualstudio.com/defaultcollection and {Owner} as Jagdish Solanki, Eventually it will look something like this,
tf workspaces /server:https://xxxx.visualstudio.com/{CollectionName} /owner:"Jagdish Solanki"
Reference:



3. To delete the workspace, run below command 
tf workspace /server:https://{TFS}.visualstudio.com/defaultcollection /delete "{Workspace};{Owner}"
It will looks something like this,
tf workspace /server:https://xxxx.visualstudio.com/defaultcollection /delete "SCM-DEV-1;Jagdish Solanki"
Once the above command is executed, system will prompt you if user has any pending change(s). Are you sure want to delete the workspace? (Yes/No). Enter yes
Reference: