Quantcast
Channel: Spiceworks Community - Latest topics
Viewing all articles
Browse latest Browse all 183359

Why won't my Variable update?

$
0
0

Hello guys, I'm currently editing our new employee script for AD and I am running into an issue, I added 2 radio buttons for the home folder, one radio button will update the BaseHomeFolderPath to Path1 and the second will update it to Path2, I export the variable to a csv to verify that it works but it keeps showing up blank. I don't know if it is a scope issue or what I am doing wrong, any help will be greatly appreciated! Below is a copy of the code.

Powershell
$BaseHomeFolderPath=''Set-Variable-Name$BaseHomeFolderPath-ScopeGlobal$radiobuttonAtlas_MouseClick=[System.Windows.Forms.MouseEventHandler]{#Event Argument: $_ = [System.Windows.Forms.MouseEventArgs]#TODO: Place custom script here$BaseHomeFolderPath='\\path1\users'}$radiobuttonCerberus_MouseClick=[System.Windows.Forms.MouseEventHandler]{#Event Argument: $_ =...

Viewing all articles
Browse latest Browse all 183359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>