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

      Server 2012 R2 not installing Updates
      IT Discussion • server 2012 r2 windows server 2012 r2 powershell windows updates hotfix • • dbeato

      15
      4
      Votes
      15
      Posts
      293
      Views

      scottalanmiller

      @dashrender said in Server 2012 R2 not installing Updates:

      @scottalanmiller said in Server 2012 R2 not installing Updates:

      @dashrender said in Server 2012 R2 not installing Updates:

      Of course though - this thread is about Windows Server, not desktop - where this should be MUCH less of an issue with properly designed code.

      Same code, they don't make it twice. Less hardware hotplugging, but probably just as many lines of code in use.

      Less desktop apps on the platform, but you're right - the base code is the same.

      Fewer desktop apps, maybe. But in the Windows world, server often is treated as a desktop (like 90% of the time) so the reduction is rarely what you'd hope. And there tends to be lots of server-only code too, often running as desktop apps.

    • P

      Powershell split and sort date/time
      IT Discussion • powershell dateandtime split • • pmoncho

      6
      0
      Votes
      6
      Posts
      387
      Views

      P

      @obsolesce

      That is pretty cool. I will give that a try this morning.

    • JaredBusch

      Use powershell to create a scheduled task to reboot computers on schedule
      IT Discussion • powershell reboots users • • JaredBusch

      10
      4
      Votes
      10
      Posts
      2172
      Views

      Pete.S

      @obsolesce said in Use powershell to create a scheduled task to reboot computers on schedule:

      @pete-s said in Use powershell to create a scheduled task to reboot computers on schedule:

      @jaredbusch

      For logistics, I would also place scheduled tasks that I created in their own task folder. Just like Microsoft and others have.

      That way I know the tasks in there is not generated by something else.

      One could also fix the description to say the source of the task. I get the appeal of placing them in their own folder nested somewhere in that mess, but it's so much easier to deal with them in the top level directory.

      I guess you could fix the name. But it's mostly misbehaving apps that put tasks in the top level directory. I mean Microsoft added the folder structure for task organization. It wasn't there in the old days.

      But yeah, it works regardless.

    • JaredBusch

      Solved Unregister-ScheduledTask giving error about non-interactive mode
      IT Discussion • powershell scheduled tasks • • JaredBusch

      9
      0
      Votes
      9
      Posts
      309
      Views

      JaredBusch

      @obsolesce said in Unregister-ScheduledTask giving error about non-interactive mode:

      Ohh, didn't notice the typo lol

      Funny that. me either......

    • DustinB3403

      Removing Windows Installed Packages with Powershell
      IT Discussion • powershell uninstall windows application management bloat how to • • DustinB3403

      8
      1
      Votes
      8
      Posts
      233
      Views

      DustinB3403

      @dashrender said in Removing Windows Installed Packages with Powershell:

      @dustinb3403

      Sure, but to Gene's point - you're not going to be installing crapware with Chocolatey - but the MS Store pre-loads your machine with a shit ton, and really, the only way to get rid of if all is using PowerShell.

      I love the first post for info sake itself... I just don't see the need to mention Choco in the same thread - it serves an entirely different purpose - not to mention the fact that it isn't even loaded by default, so if it's there - YOU know it's there.

      And again, you know how to install and uninstall applications with Chocolatey.

      But you may not know (or want to know how to learn to use Microsoft's App Store) and maybe you prefer to use a shell to remove applications from add and remove.

      While you know what you've installed with Choco, doesn't mean you know how to remove programs like in the OP which, again installed during the evening hours without me having installed it.

    • Oksana

      Create and Display Windows 10 Notifications with PowerShell
      Starwind • starwind blog github windows server windows10 powershell • • Oksana

      1
      4
      Votes
      1
      Posts
      120
      Views

      No one has replied

    • DustinB3403

      Checking multiple Directories to confirm all files are identical
      IT Discussion • windows comparison file management powershell • • DustinB3403

      30
      0
      Votes
      30
      Posts
      272
      Views

      Obsolesce

      @dustinb3403 said in Checking multiple Directories to confirm all files are identical:

      I know I could use a tool like Create-Synchronicity to force 1 other directory to match the source, but I would prefer to find and list the differences in the directories.
      Maybe powershell can help?

      Yeah, PowerShell can help with this in the same way closing the front door of a house will fix a fire inside of it.

    • gjacobse

      WinRM: Security Question
      IT Discussion • winrm remote management powershell • • gjacobse

      22
      0
      Votes
      22
      Posts
      343
      Views

      gjacobse

      @dashrender said in WinRM: Security Question:

      @gjacobse said in WinRM: Security Question:

      @stacksofplates said in WinRM: Security Question:

      https://www.manageengine.com/products/desktop-central/help/computer_configuration/executing_custom_scripts.html

      Thanks -
      Guess it will have to do... sigh.

      I wonder if you can run powershell scripts by typing powershell first?

      Is there a way to copy files to the computers with ME?

      Seems like it is possible.

      3c712099-6a8d-4e24-8fde-67a9e53cdbf3-image.png

    • EddieJennings

      YouTube Months in Review: February - June 2021
      Self Promotion • youtube home lab linux powershell fedora music rhce • • EddieJennings

      1
      4
      Votes
      1
      Posts
      140
      Views

      No one has replied

    • DustinB3403

      USB Device Managment
      IT Discussion • usb device management windows powershell how to • • DustinB3403

      18
      0
      Votes
      18
      Posts
      1045
      Views

      Z

      @dustinb3403 I even managed to make devcon.exe disable USB
      but I wanted with this command you sent

    • DustinB3403

      Powershell Eject of USB Works how could I remount it without reconnecting the device
      IT Discussion • eject powershell usb enable disable • • DustinB3403

      13
      -1
      Votes
      13
      Posts
      1088
      Views

      DustinB3403

      Things to consider if you do this yourself, once you disable a device if you don't enable it again, it will remain disabled in device manager between subsequent removal/installation.

      So it's critical to enable any disabled devices after the fact, or you'll have to manually enable the device through device manager.

    • dafyre

      VMware Get Host Details from PowerCLI
      IT Discussion • powershell vmware esxi powercli • • dafyre

      1
      3
      Votes
      1
      Posts
      160
      Views

      No one has replied

    • Oksana

      How to use Azure Resource Graph with PowerShell
      Starwind • powershell azure microsoft azure • • Oksana

      1
      1
      Votes
      1
      Posts
      160
      Views

      No one has replied

    • Oksana

      How to Use PowerShell Tasks in Azure DevOps Pipelines
      Starwind • azure devops powershell • • Oksana

      1
      1
      Votes
      1
      Posts
      106
      Views

      No one has replied

    • Grey

      Powershell for Snapshot Management
      IT Discussion • powershell vsphere esxi • • Grey

      3
      4
      Votes
      3
      Posts
      179
      Views

      Romo

      @DustinB3403 Tags added 😃

    • JaredBusch

      Powershell to unhide all files and copy to nextcloud folder
      IT Discussion • powershell bobcat nextcloud • • JaredBusch

      17
      0
      Votes
      17
      Posts
      504
      Views

      DustinB3403

      @WrCombs said in Powershell to unhide all files and copy to nextcloud folder:

      @Grey said in Powershell to unhide all files and copy to nextcloud folder:

      @JaredBusch said in Powershell to unhide all files and copy to nextcloud folder:

      @Grey said in Powershell to unhide all files and copy to nextcloud folder:

      @JaredBusch But why robocopy?

      Because it does at least skip the ones with no changes.

      Why get convoluted with Powershell to do the same?

      Not every system may have Robocopy.

      it became part of theOS with Windows Vista. So anything running Windows Vista or Higher will have robocopy as a part of the Operating system (as everyone should be using higher than vista at this point.. I mean.. windows 7 is obsolete now.. sooo..)

      Windows 10 1709 is obsolete too, so really anything not with a support mechanism shouldn't be used. But @JaredBusch might be getting paid stupid amounts of money to support Windows XP / Server 2000

    • EddieJennings

      YouTube Months in Review: September, October, and November 2020
      Self Promotion • youtube linux powershell career advice interview scripting • • EddieJennings

      1
      0
      Votes
      1
      Posts
      149
      Views

      No one has replied

    • DustinB3403

      Powershell variable help
      IT Discussion • powershell scripting • • DustinB3403

      23
      0
      Votes
      23
      Posts
      258
      Views

      Pete.S

      @DustinB3403 said in Powershell variable help:

      @Pete-S That is going to be complete subjective based on the type of spam that might come in.

      I follow what you're saying but I'm kind of stuck between having something functional or not (due to this).

      Well, you need to decide what you are allowing and not. For instance you have already decided to just use the subject line and not any of the other parts of the email, for instance author.

      You need to run the string through regex or something like that to remove characters you are not allowing. It might take more than one string operation to sanitize. I think you can escape any special character you want to allow with backtick `.

      Another option would be to allow the user to enter the entire KQL query themselves.

      Also if you get an error when trying to apply the search you put out an error "Invalid search input!" and go back to prompt the user for input again. That would be one way so solve problems.

    • Oksana

      Cleaning Your Azure Subscription Policies
      Starwind • azure powershell • • Oksana

      1
      1
      Votes
      1
      Posts
      101
      Views

      No one has replied

    • Oksana

      How to Manage and Automate Your vSphere with PowerShell
      Starwind • powershell vsphere vmware • • Oksana

      1
      1
      Votes
      1
      Posts
      103
      Views

      No one has replied