• /r/powershell
  • Attempting to display ADUsername based on hostname file

    Hello fellow sysadmins, Trying to display an ADUsername tied to a hostname specified in a txt file. I get the following error shown in my CSV when running the script: System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter ‘ComputerName’. The argument is null or empty. Supply an argument that is not null or empty and then try […]

  • /r/powershell
  • Converting ADUsers to JSON File?

    I am able to use Get-ADUser and filter them to 3 specific properties I want. However, When I try to convert that to json I don’t get those properties…. I’ve tried using Select-Object and that will only convert a single ADUser not a collection of ADUsers…. Any advice? Can’t find much of anything online. submitted […]

  • /r/csharp
  • Accessing form controls from multiple forms

    I have 2 forms, and 1 file to upload to youtube. I am accessing them like so from both forms (both of the forms don’t interact together) await new UploadVideo().Run(video); Now inside my uploadvideo class I am trying to get the percentage uploaded to use in my form void videosInsertRequest_ResponseReceived(Video video) { //core.prog_up.Text = “Video […]