dictionary
3 TopicsPowershell - replace an array / hash table with a file
Hi All, This should be straigtforward (I think), but i cannot get it to work. I have a working script which reads a csv file from an HR app and then creates the user accounts. Dependant on the users site name it will read the array and assign them to the correct OU. As the names of the sites has proven to be inconsistant or at least 3 variants in some cases, I created an array (could it be classed as a dictionary file?). to handle the differences, e.g. $Site2OU = @{ "Miami" = "OU=New Users,OU=Users,OU=Miami Beach,OU=Contoso,DC=com" "Miami Beach" = "OU=New Users,OU=Users,OU=Miami Beach,OU=Contoso,DC=com" "Miami Beach Holiday Homes" = "OU=New Users,OU=Users,OU=Miami Beach,OU=Contoso,DC=com" "Boston" = "OU=New Users,OU=Users,OU=Boston Bay,OU=Contoso,DC=com" "Boston Bay" = "OU=New Users,OU=Users,OU=Boston Bay,OU=Contoso,DC=com" "Bston Bay Holiday Homes" = "OU=New Users,OU=Users,OU=Boston Bay,OU=Contoso,DC=com" "Mississippi" = "OU=New Users,OU=Users,OU=Mississippi Water,OU=Contoso,DC=com" "Mississippi Water" = "OU=New Users,OU=Users,OU=Mississippi Water,OU=Contoso,DC=com" "Mississippi Water Holiday Homes" = "OU=New Users,OU=Users,OU=Mississippi Water,OU=Contoso,DC=com" } then an extract from the script would handle it like this (Imported csv Foreach($NewUser in $Newusers) $Location = $NewUser.Site $OU = $Site2OU.$Location This would then create the $OU variable for a site based on any of the 3 variations. Everytime a new site is added it means editing the script etc. And this script is compiled into a GUI exe file. To save the hassle I would like to replace the array with the contents of a file, which would allow the users to add new sites, as and when they are required. Is there an easy way to do this, I have tried numerous ways and none work. Any pointers would be appreciated.Solved835Views0likes2Comments[Future request] PDF Dictionary
Hello, After years of waiting, today I finally received PDF Dictionary feature. But still I cannot use it as I did on Legacy Edge. The dictionary is set to English-US although device region is set to UK and in Edge's languages page there is only English-UK, which is the language that Edge uses. Second, when I study on my Surface Pro, it's really annoying and time consuming to tap on the word and then tap on define and wait until the definition appears. Furthermore, I really miss the old offline dictionary! Sometimes I need the dictionary but I'm not connected. To sum up, it would be amazing if there is a separate setting page for the dictionary where we can: Set dictionary language. Toggle show-definition-on-tap Download Dictionary for offline usage. Legacy Edge PDF dictionary helped me in my studies more than I can describe! Please Students need these features a lot. I'm on pins and needles to start using my PDF dictionary feature again!707Views0likes0CommentsNew feature: Dictionary added to PDF reader in Edge
Today in Edge Version 90.0.806.0 (Official build) canary (64-bit) this new item on the top feedback list is added the feature is based on controlled feature rollout plan this is the first implementation, so far everything works except for the definition result, just loads blank, it should become ready in future builds.16KViews3likes11Comments