-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[System.Web.Security] not support? #5352
Comments
.NET Core does not support it may be possible to directly reference the full path of |
Another option could be convert Or just load a static type in with |
Hi guys, I've made the module Powershell Core compatible (since I needed it in Powershell Core myself) and renamed it TUN.CredentialManager. I've reimplemented the GeneratePassword method from Microsoft as suggested by @ArmaanMcleod (thanks a lot, that helped!) and I've also experienced the problem that it didn't find the cmdlets if they weren't explicitly exported in the module manifest, which I've done now. The module has a new name ( TUN.CredentialManager ) and new GUID since I cannot upload new versions to Dave's module in the Powershell Gallery. The new version should be backwards compatible to the old Powershell versions as well as compatible to the new Powershell Core. Since it uses the same cmdlet names you'd need to uninstall the old CredentialManager module first and then install the new TUN.CredentialManager module for everything to work properly. But nothing changed for the cmdlet calls, so this new TUN.CredentialManager module is backwards compatible to the old CredentialManager module by Dave, all you may need to change is the name of the module you import (if it wasn't installed). The versioning starts with 2.1 since the old CredentialManager stopped at 2.0. The copyright message was extended with my name and the new year, the license is unchanged (MIT). The new TUN.CredentialManager module can be found here: And can simply be installed via...
|
Thank you so much @echalone !! it was really helpful as am about to use it |
You're welcome :) |
Thank you for picking up this solution and making it compatible with Core! I am working on a SharePoint project using PnP.Powershell and desperately needed this solution for my application! Thank you! |
Steps to reproduce
Add-type -AssemblyName System.Web
[System.Web.Security.Membership]::GeneratePassword(14, 5)
Expected behavior
Create random string
Actual behavior
Unable to find type [System.Web.Security.Membership].
At line:1 char:1
Environment data
The text was updated successfully, but these errors were encountered: