ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. net
    Log in to post
    • All categories
    • scottalanmiller

      Managing Windows Local Groups with Net LocalGroup
      IT Discussion • sam windows administration system administration scottalanmiller windows cmd net local groups user management • • scottalanmiller

      6
      4
      Votes
      6
      Posts
      563
      Views

      Obsolesce

      I ran into a language issue the other day when writing a PowerShell script that uses net localgroup and thought it could be useful to others:

      Depending on the language your Windows device is set to, the local Administrators group will be different, so the typical net localgroup administrators domain\user /add command will fail.

      Implementing the following will grab the actual name of the group by it's SID first, then use that result.
      Note that this is written to work in PowerShell, not CMD.exe.

      # Gets the name of the local Administrators group in appropriate language $localAdminGroupName = (Get-WmiObject win32_group -filter "LocalAccount = $TRUE And SID = 'S-1-5-32-544'" | Select-Object -Expand name) Write-Output "Local Administrators group detected as: [$localAdminGroupName]" # Sets the users as a local admin using appropriate local Administrators group name net localgroup $localAdminGroupName domain\user /add # Gets local Administrators group members net localgroup $localAdminGroupName
    • scottalanmiller

      Managing Windows Local Users with Net User
      IT Discussion • sam windows administration windows net net commands • • scottalanmiller

      28
      0
      Votes
      28
      Posts
      575
      Views

      J

      @scottalanmiller said in Managing Windows Local Users with Net User:

      @JasGot said in Managing Windows Local Users with Net User:

      I'm using backstage more

      I assume that this is a component of another product?

      Part of ConnectWiseControl. (or ScreenConnect as we still call it around here.)

      It's at the bottom of the View tab when attached to a guest. Takes you to a new sessions as a System account with a command prompt and powershell window already open. No limit to what you can accomplish there. many gui apps will run in backstage too.

    • mlnews

      Microsoft continues its quest to embrace every developer with Visual Studio 2019
      News • visual studio development visual studio 2019 net net core winui wpf winforms • • mlnews

      1
      1
      Votes
      1
      Posts
      186
      Views

      No one has replied

    • scottalanmiller

      Why Visual Basic Is the Worst Programming Language for Your Project SAMIT Video
      Developer Discussion • samit scott alan miller youtube visualbasic net programming languages basic fortran cobol delphi cobol effect • • scottalanmiller

      31
      3
      Votes
      31
      Posts
      3076
      Views

      Pete.S

      @scottalanmiller said in Why Visual Basic Is the Worst Programming Language for Your Project SAMIT Video:

      @Pete-S said in Why Visual Basic Is the Worst Programming Language for Your Project SAMIT Video:

      Anyway, you couldn't really do any serious applications with gwbasic. It was followed by qbasic a little later.

      I was in time to get to do both. Still have the original GWBASIC manuals!

      I just did a little with both. But this was around the same time that Borland released Turbo Pascal and at least in my view it became the serious language to make PC applications with in that era. It was almost instant compilation and it had a very good IDE.

    • scottalanmiller

      .NET Stack Trace Failing to Connect to MySQL
      Developer Discussion • iis stack trace net mysql dns • • scottalanmiller

      10
      0
      Votes
      10
      Posts
      2844
      Views

      A

      I see what you mean. And also, if you're making the change in the web.config, that should trigger an application restart anyway.

      Something is preventing the pageSecurity object from being set. You could do a global text search for "pageSecurity" and find the code that sets it. That may be where the failure is happening.

      Normally I would expect this to be caused by a missing security-related table, like Roles or something. But you said it was a full copy. You might want to double check.

    • JaredBusch

      Introducing .NET Core
      News • microsoft net mono • • JaredBusch

      2
      0
      Votes
      2
      Posts
      1039
      Views

      scottalanmiller

      Awesome, this is what we need to get C# and F# into the open source ecosystem.

    • Reid Cooper

      Microsoft Expanding Its OpenSource Strategy for .NET
      Developer Discussion • microsoft net open source • • Reid Cooper

      1
      1
      Votes
      1
      Posts
      667
      Views

      No one has replied

    • Reid Cooper

      .NET Goes Open Sources and is Coming to Mac OSX and Linux
      Developer Discussion • mac osx open source linux net • • Reid Cooper

      12
      1
      Votes
      12
      Posts
      2251
      Views

      scottalanmiller

      Apparently some counterpoint has come out...

      http://techrights.org/2014/11/12/openwashing-lockin/

    • scottalanmiller

      Learning C# for a Newbie
      IT Careers • programming net • • scottalanmiller

      3
      1
      Votes
      3
      Posts
      1171
      Views

      scottalanmiller

      And of course books. These two look best to me:

      http://www.amazon.com/Microsoft-Visual-2013-Step-Developer/dp/073568183X/ref=sr_1_3?ie=UTF8&qid=1402673332&sr=8-3&keywords=c%23

      http://www.amazon.com/Head-First-C-Jennifer-Greene/dp/1449343503/ref=sr_1_4?ie=UTF8&qid=1402673332&sr=8-4&keywords=c%23