ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. powershell
    Log in to post
    • All categories
    • scottalanmillerS

      Making Windows Server 2016 Update Automatically

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion windows windows server 2016 windows server powershell regedit registry
      17
      2 Votes
      17 Posts
      1k Views
      scottalanmillerS

      Not yet.

    • siringoS

      Free equivalent of Hyena

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell hyena
      20
      1 Votes
      20 Posts
      916 Views
      dafyreD

      @IRJ said in Free equivalent of Hyena:

      https://gallery.technet.microsoft.com/office/Active-Directory-Audit-7754a877

      That looks pretty cool!

    • DustinB3403D

      Windows CLI - Find long Filepaths and compress to zip

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion windows command line compression file path file system long file name powershell cmd
      3
      2 Votes
      3 Posts
      629 Views
      gjacobseG

      Long file names can be a serious pain... for copy and backup reasons.

      I recall a NTG client that used a long name for the directories,.. and it made updating nearly impossible Should follow the KISS method... Directory names don't need to be 120 characters long,.. and four deep.

    • wrx7mW

      PowerShell - FTP Upload Script No Longer Working

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell ftp script
      31
      2 Votes
      31 Posts
      4k Views
      wrx7mW

      @Pete-S It was on linux - ProFTPD

    • JaredBuschJ

      Invoke-WebRequest sometimes fails to connect to https

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion powershell invoke-webrequest
      7
      3 Votes
      7 Posts
      2k Views
      M

      @JaredBusch : Awesome! Glad to hear it worked for you...

    • OksanaO

      Managing privately – Create a user with Azure Function

      Watching Ignoring Scheduled Pinned Locked Moved Starwind microsoft azure microsoft azure powershell
      2
      1 Votes
      2 Posts
      280 Views
      dbeatoD

      Troy Hunt uses it for the "I Have been PWned"
      https://www.troyhunt.com/serverless-to-the-max-doing-big-things-for-small-dollars-with-cloudflare-workers-and-azure-functions/

    • NerdyDadN

      Changing NICs in virtual servers

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion vmware vsphere vcenter virtual machine powershell powercli
      4
      3 Votes
      4 Posts
      739 Views
      SanWINS

      @NerdyDad said in Changing NICs in virtual servers:

      Here is the actual code in a more searchable context, sterilized for general use.

      Very useful! Thanks!

    • wrx7mW

      PowerShell - Create New AD User Using Prompts and Variables

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell ad windows
      26
      2 Votes
      26 Posts
      5k Views
      PhlipElderP

      @wrx7m said in PowerShell - Create New AD User Using Prompts and Variables:

      If I get rid of the attempt to combine the 2 existing variables into a 3rd, I get this error.

      New-ADUser : A positional parameter cannot be found that accepts argument '+'. At \\FP02\it\Scripts\AD\AD-InitialUserCreationVariables.ps1:5 char:1 + New-ADUser -Name "$GivenName $Surname" ` + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [New-ADUser], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.ActiveDirectory.Management.Commands.NewADUser

      Like this I think:

      New-ADUser -Name "$($GivenName) $($Surname)"`

      From: https://blogs.technet.microsoft.com/stefan_stranger/2013/09/25/powershell-sub-expressions/

    • NerdyDadN

      Troubles installing PowerCLI

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell powershell ise powercli microsoft vmware
      3
      1 Votes
      3 Posts
      660 Views
      NerdyDadN

      They aren't in the ML community but special shoutout to Ariel Sanchez and Joe Houghes for this help. Somebody needs to get them into ML.

      https://twitter.com/TheRealNerdyDad/status/1049365117140447238

    • scottalanmillerS

      Error This Operation is only allowed for the Primary Domain Controller of the domain with Add-Computer

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion powershell add-computer active directory
      2
      0 Votes
      2 Posts
      2k Views
      scottalanmillerS

      Turns out that it needed the -Credential flag, which Microsoft doesn't document as a requirement. This worked find...

      Add-Computer -DomainName "mydomain" -Credential mydomain\myusername
    • dbeatoD

      Install Chocolatey on all Domains Computers PS

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell powershell remoting chocolatey
      12
      5 Votes
      12 Posts
      1k Views
      JaredBuschJ

      The specific package adobereader is a horrible example though.

      Because until this month, you installed adobereader-update which also installed adobereader first as part of the package.

      But now, suddenly, adobereader is all that is needed.

      adobereader history.
      0_1537676808803_b9217e22-5cdd-4aa6-9af9-dc93b4387ffe-image.png

      adobereader-update history.
      0_1537676966787_97d7b185-0c2b-4fd0-83b1-1dc12de16985-image.png

    • scottalanmillerS

      Rename Windows Hostname from Command Line

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion wmic powershell cmd windows windows 10 screenconnect
      9
      7 Votes
      9 Posts
      3k Views
      gjacobseG

      The batch file I have for one client is this:

      powershell Rename-Computer -NewName "COMPUTER_NAME" -DomainCredential DOMAIN\ADMINUser -Restart

      Where COMPUTER_NAME to not exceed the 15 character limit

      ETA:
      I should add that this batch script start with installing Chocolatey package management tools, then the default applications,

    • OksanaO

      Azure Container Instances: why and how to use it?

      Watching Ignoring Scheduled Pinned Locked Moved Starwind azure powershell microsoft
      1
      1 Votes
      1 Posts
      311 Views
      No one has replied
    • gjacobseG

      Server 2012 PS: Script to update script path

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion serve2012 server 2012 aduc active directory pstools powershell user script path
      5
      0 Votes
      5 Posts
      850 Views
      gjacobseG

      Since I was working with only ONE user this is what I needed to change it to, else was getting Parameter set cannot be resolved

      Import-module ActiveDirectory Get-ADUser -Filter {Name -eq "SomeUser"} -SearchBase "OU=Users,OU=OUGroup,DC=DOMAINname,DC=com" | Set-ADUser –scriptPath “\\SERVERNAME\netlogon\2018ADUC-script.txt”

      But it worked!

    • scottalanmillerS

      How to Purge All OWA Rules from Office 365

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion o365 office 365 exchange powershell owa outlook email
      2
      1 Votes
      2 Posts
      711 Views
      momurdaM

      This would work on prem exchange. Probably works with a tweak for o365.
      Get-mailbox | get-inboxrule | remove-inboxrule

    • PenguinWranglerP

      Text file manipulation into CSV

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion powershell bash
      21
      0 Votes
      21 Posts
      2k Views
      1

      @penguinwrangler
      Good work! I admit I would have been to lazy to go through all that. I would just have written a program to deal with it straight up instead instead of trying to use nix commands and scripting. Anything to avoid "escape hell" as I like to call it.

    • OksanaO

      Learn how to keep your sensitive data safe with SQL Server Always Encrypted

      Watching Ignoring Scheduled Pinned Locked Moved Starwind sql server always on sql server sql server management studio ssms azure powershell starwind
      1
      3 Votes
      1 Posts
      571 Views
      No one has replied
    • OksanaO

      Easily managing Hyper-V virtual NICs on the go with GUI and PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved Starwind hyperv starwind virtual san iscsi powershell
      1
      2 Votes
      1 Posts
      621 Views
      No one has replied
    • DustinB3403D

      Getting PowerShell to provide me the EventLog details in an email

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion powershell automation email system administration
      6
      3 Votes
      6 Posts
      704 Views
      dafyreD

      @dustinb3403 said in Getting PowerShell to provide me the EventLog details in an email:

      Yup. . . I'm an idiot lol. I set it to only look back 1 day and email me those results within the past day.

      This obviously would show blank results, since there are no 2013 events within the past day!

      Ha ha ha. Whoops!

    • scottalanmillerS

      Easy PowerShell AD Commands

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion windows powershell active directory
      4
      5 Votes
      4 Posts
      713 Views
      EddieJenningsE

      One that I love

      Get-ADPrincipalGroupMembership -Identity SOMEUSERNAME | Select name

      List all of the groups in which the user is a member.

    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 10
    • 11
    • 5 / 11