+ Post New Thread
Results 1 to 8 of 8
Windows Thread, ADSI Edit package location in Technical; Hi Just wondering if anyone had used ADSIedit to change the location of group policy deployed packages msi? E.G. change ...
  1. #1

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,706
    Thank Post
    906
    Thanked 1,321 Times in 803 Posts
    Blog Entries
    1
    Rep Power
    445

    Question ADSI Edit package location

    Hi
    Just wondering if anyone had used ADSIedit to change the location of group policy deployed packages msi?
    E.G. change a deployed package location from \\server1\software\blah.msi to \\server2\software\blah.msi

    I know its probably not the best way but is there actually much risk of it borking anything? Its a simple edit.
    We have the problem where the deployment server is being replaced and I dont want to have to redeploy. I just thought this could get around it as you are not re-adding packages to be deployed.

    Thoughts?

  2. #2
    altecsole's Avatar
    Join Date
    Jun 2005
    Location
    Morecambe, Lancashire, UK.
    Posts
    281
    Thank Post
    39
    Thanked 36 Times in 26 Posts
    Rep Power
    25
    I've just done this using mtedit.exe - it's in the same folder as GPMC.

    Basically:

    1. Backup group policy
    2. Open mtedit and load policy from backup location
    3. Change destination to the new location; folder path only
    4. Save migration table
    5. Right click on original group policy and choose Import Settings; follow the prompts and point it at the migration table

    Warning: Once you've done this any packages will be redeployed; there's no way to get around this.

  3. #3

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,706
    Thank Post
    906
    Thanked 1,321 Times in 803 Posts
    Blog Entries
    1
    Rep Power
    445
    Hmm mtedit is slightly different then ADSI edit I think. Thats why I think it triggers redeployment for you. I hope that ADSI wouldnt but I will be trying it out at some point to confirm this.
    I think that import settings part is what is forcing the redeployment at your end as it would be a logical thing to do. ADSI edit though edits raw AD.

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    I think you also need to edit the .aas file to make the change - it's possible that mtedit is also doing this. Clients will then "see" that the package has changed and redeploy.

    I've never found a way to deal with this - it's why we now deploy everything from a DFS share. When you need a new server you add another replica, wait for it to fully replicate and then just remove the old server.

    If you don't want to use DFS you could also use a DNS alias on the server - then when your server changes you just update DNS.

  5. #5

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,706
    Thank Post
    906
    Thanked 1,321 Times in 803 Posts
    Blog Entries
    1
    Rep Power
    445
    Policies have a redeploy flag I thought that triggered redeployment, not clients checking for a changed path in a otherwise identical policy. ADSIedit just modifies the resulting aas because the aas is just the AD output I think.

  6. #6
    altecsole's Avatar
    Join Date
    Jun 2005
    Location
    Morecambe, Lancashire, UK.
    Posts
    281
    Thank Post
    39
    Thanked 36 Times in 26 Posts
    Rep Power
    25
    Quote Originally Posted by ZeroHour View Post
    Hmm mtedit is slightly different then ADSI edit I think.
    It is indeed. Sorry if I went off the point; I thought it might be useful to share the way I did it. Everything now moved to DFS and working nicely

  7. #7

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    Quote Originally Posted by ZeroHour View Post
    Policies have a redeploy flag I thought that triggered redeployment, not clients checking for a changed path in a otherwise identical policy. ADSIedit just modifies the resulting aas because the aas is just the AD output I think.
    That's right - what I should have added was that possibly the mtedit program triggers this process so that clients redeploy and they get updated to point to the new location.

    Part of the reason for using MSIs is that they are "self healing" but this only works if they can find the original source. I suspect MS don't want you changing the source because then you break the healing bit. What I would have thought they could do, however, is add something which doesn't do a complete redeploy but just updates the data on the client machine to point to the new source.

  8. #8

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    When you change the deploy point and redeploy the application so long as you have not told it to remove the application immediately it just runs an update install over the top which is far quicker. Srochford is correct in saying that it breaks the self healing portion and can cause problems if the station attempts to pick up any extra components of the package at a later date.

    The best way that I have found to do it is to remove the original install action from GP and tell it to leave the app on the machine, then redeploy the same application using a dfs share which can be have the actual source location altered when necessary. This redeploy method does trip up on Windows 2000 workstations though so if you have any of them these will need a full uninstall and reinstall of the application.

SHARE:
+ Post New Thread

Similar Threads

  1. [CLOSED] Bug/Error: cannot edit posts
    By alonebfg in forum EduGeek.net Site Problems
    Replies: 1
    Last Post: 11th July 2008, 12:05 AM
  2. Location?
    By witch in forum Comments and Suggestions
    Replies: 14
    Last Post: 7th September 2007, 06:20 PM
  3. location in posts
    By goodhead in forum General Chat
    Replies: 1
    Last Post: 1st March 2007, 10:14 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •