-
Notifications
You must be signed in to change notification settings - Fork 49
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
PsIni doesn't work with C:\ProgramData\Microsoft\Network\Connections\Pbk\rasphone.pbk #57
Comments
please provide the content of the original file |
File is attached (renamed to .txt and internal data replaced with dummys). These are the commands I'm using which basically "destroy" the file:
|
@lipkau The first appearance of the value is overwritten with the arraylist in
cheers, Thorsten |
- Bugfix: Fixes lipkau#57 - If a key already exist in table, its values are stored as System.Collections.ArrayList. However, System.Collections.ArrayList overwrites the first value before it has been added to the list itself.
Just saw that #58 was in here and trying to tackle the Duplicate Key issue. and when written out, it resulted in this annoying double-expansion of the ArrayList |
However, like I mentioned here #60 (comment)
or possibly like this for devio's solution - I think - I didn't check his personally key = value
key = value
# 'comment line'
# 'comment line'
# 'comment line' To fully allow for duplicate keys, potentially spread through the entire file & assuming their positioning relative to other entries within a section (or lack of a section) is important - I'm not sure how to get around the bunching problem |
Not sure if you consider amending the scripts because the rasphone.pbk is a rather special INI file.
The issues are:
When writing the file with Out-IniFile the mentioned wrong elements look like this - the (...) is added by me:
CustomAuthData=System.Collections.ArrayList D88F7E15760070006E002D0066007500740(...)
instead of
CustomAuthData=D88F7E15760070006E002D006(...)
or
DEVICE=System.Collections.ArrayList vpn
DEVICE=vpn
instead of
Device=WAN Miniport (SSTP)
DEVICE=vpn
Since this is a rather special INI file I'm not sure if it is worth looking into but I would be very happy to see it working since modifying the rasphone.pbk file is the only option to change certain settings for VPN connections in Windows.
The text was updated successfully, but these errors were encountered: