none
the get-sharepermission command does not work RRS feed

  • Question

  • HI,

    The command get-sharepermission command does not work.

    I have a cluster with two Windows 2008 Srv Enterprise and I will migrate Filseserver to Windows 2012 Server standalone.

    Can you help me please?

    Regards,

    Friday, October 18, 2019 11:25 AM

All replies

  • Get-sharepermission is not a Powershell command. There is a user contributed script in the gallery with that name so you may need to contact the author for help.

    In any event, if you don't describe the parameters that you are passing to the script and the error that you get, there's not a lot we can help you with. 

     Log on to the servers and run this Powershell command.

    get-smbshare |Get-SmbShareAccess

    • Edited by MotoX80 Friday, October 18, 2019 12:51 PM
    Friday, October 18, 2019 12:48 PM
  • Hi,

    The Get-SharePermission is not an official PowerShell cmdlet, so there are no guarantees.

    You could take a look at the Storage Migration Service for migrating your shares.

    Storage Migration Service overview

    Use Storage Migration Service to migrate a server

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    Friday, October 18, 2019 12:52 PM
  • Hi,

    Thanks for posting in our forum!

    As they said above, this command is not a PowerShell Command, so that it maynot be useful.

    For your situation, I prefer to use robocopy, but robocopy can't copy share pernmission, you should set share prmission with the following method:

    To preserve file share settings, we can back up the following registry key (for non-cluster machine):

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares

    For more information on saving and restoring file share, please refer to

    Saving and restoring existing Windows shares

    http://support.microsoft.com/kb/125996

    How to Restore Share Definitions To Another Server

    http://support.microsoft.com/kb/141589

    In addition, Your Server version does not support you using storage migration.

    In short, robocopy is a better way.

    Best Regards,

    Daniel


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, October 21, 2019 2:49 AM
    Moderator
  • Hi,

    I am writing here to confirm current situation.

    If the above suggestion are helpful to you, please be kind enough to "mark it as an answer" for helping more people.

    Regards,
    Daniel

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Wednesday, October 23, 2019 8:41 AM
    Moderator
  • Hello,
    I'm Daniel, a technical support for Technet Forum.
    If the replies of forum users is helpful to your question, please take time out of your busy schedule to mark it as an answer, so that other users with the same question can quickly find it here.
    Really appreciated your contribution to Technet forum and understanding!
    Best Regards,
    Daniel

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Friday, October 25, 2019 7:07 AM
    Moderator