[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hey /g/, my powershell 5 object private variables are still accessible

You are currently reading a thread in /g/ - Technology

Thread replies: 6
Thread images: 1
File: powershell.png (358 KB, 1972x1475) Image search: [Google]
powershell.png
358 KB, 1972x1475
Hey /g/, my powershell 5 object private variables are still accessible from outside... Can someone point out where I messed up?

Class PrivateTest{
[Int] $Private:PrivateVariable
}

$T = New-Object PrivateTest
$T.PrivateVariable = 1 #PS stahp

Write-Host $T.PrivateVariable #PS wat r u doing
>>
>powershell
found your problem.
>>
>>53682843
No offense OP, but this is correct.
>>
>>53682861
but how else can I script automation without opening visual studios D:
>>
>>53682877
install cygwin, or even better, gentoo
>>
>>53682965
>gentoo

http://www.gentoogroup.com/for-customers/

what the fuck am i looking at
Thread replies: 6
Thread images: 1

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK