Code Monkey home page Code Monkey logo

sidcloner's People

Contributors

jformacek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sidcloner's Issues

Inappropriate authentication

Currently migrating SIDs for ~8000 users and each user takes about 40 to process with copy-sid function then after running the script for nearly 9 hours every user processed produces the following error:

ErrorDetail : System.ComponentModel.Win32Exception (0x80004005): Inappropriate authentication
at GreyCorbel.SidCloner.CloneSid(String sourceIdentity, String targetIdentity)
at GreyCorbel.SidCloner.ProcessRecord()
Result : Error
TargetPrincipal : targetUser
SourcePrincipal : sourceUser

Stopping and starting the script again straight away does not stop the error. Leave the script stopped for 30 mins start again and users start to process without error.

This is being used with MIM 2016 and Granfeldt PowerShell Management Agent with copy-sid being called in the Export.ps1.

Any idea why this would be occuring?

Could not load file or assembly

I've compiled the solution using Visual Studio. Now a DLL-file is created. I've put it in to the System32-folder on a Domain controller. When I try to do the reflection with PowerShell, I get this result:

PS C:\Windows\system32> [System.Reflection.Assembly]::LoadFile("C:\Windows\System32\SIDCloner.dll")
Exception calling "LoadFile" with "1" argument(s): "Could not load file or assembly 'SIDCloner.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
At line:1 char:1

  • [System.Reflection.Assembly]::LoadFile("C:\Windows\System32\SIDCloner ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : BadImageFormatException
    
    
    

Am I missing dependencies, is something wrong with the settings of Visual Studio?
What am i missing?

Cheers

Access Denied

I have used sidcloner many times, but in one customer environment I'm getting access denied
I have triple checked all the requirements,
Trusts in place and working
Auditing enabled in source and target
TcpipClientSupport set in source
Migrate SidHistory set at the top of directory in the target.
I have also noted that there are no event logs created in the target when the access denied is generated.
I ran port query to check for blocked ports and I do see a problem with UDP 137, to you think that could be related?
I sure its environmental but I'm not sure where else to look.

Thanks
Dan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.