List any programs by exe name that are connecting to “Server” on 4 separate...
Hello, I am trying to create a PowerShell script that will list any executables connected to “Server” from 4 separate machines. Once the script is run, it will show what executable from which machine...
View ArticleCan’t Figure out this error
Hey Guys I’m trying to run this command: powershell -nop -noni -enc...
View ArticleWhat do you wish was easier to do in PowerShell as it relates to Active...
Santa is coming early this year. With an eminent production release, I have a green light to open source some of the code I have written which overlaps with a garage project to revamp the...
View ArticleChange object property and delete object
I have an Object which consists of objects with properties. I want to change the property of one of these objects. I tried the following: $Object | Where {$_.ID -eq $GetID} | Set-ItemProperty -Name...
View ArticleO365 PowerShell – granular license assignment not working
I’ve done this before so I know it works. Has something changed? I need turned off license options. When I run this code nothing happens. I’m totally stumped. Any ideas? $AccountSkuId =...
View ArticlePowerShell Windows Forms Tutorial 3 : SHA1 Hash Checker
submitted by /u/SX86 [link] [comments] The post PowerShell Windows Forms Tutorial 3 : SHA1 Hash Checker appeared first on How to Code .NET.
View ArticleMatches values from arrays.
Hi – I’m having some trouble matching strings from one array to another. Example I’m trying use below. $Time = (Get-Date).AddHours(-8) [array]$Excude = @('powershell_ise.exe','cmd.exe') | Out-String...
View Article$MyInvocation annoys me. What is a foolproof, reliable way to get path of...
submitted by /u/DoTheEvolution [link] [comments] The post $MyInvocation annoys me. What is a foolproof, reliable way to get path of currently run script? appeared first on How to Code .NET.
View ArticleChanging Folder Options With Powershell
Having some issues with changing folder options via powershell all is going well on chaning hidden folders and file ext. but when I want to disable the sharing wizard it wont change in the folder...
View ArticleIs it possible to use powershell to compare 2 image files?
I am trying to compare 2 image files (preferably with powershell) and return the difference percentage between the 2 images I have found a 3rd party tool that can do this quite well...
View Articleinvoke-webrequest | Select -ExpandProperty Content NOT Equal to...
The title of my question is based on the fact that I’ve seen these two commands be equivalent, and my troubleshooting the primary command I want to use (Invoke-RestMethod) isn’t resulting in a full...
View ArticleHP BIOS Settings
submitted by /u/olemal [link] [comments] The post HP BIOS Settings appeared first on How to Code .NET.
View ArticleHelp Please. Invoke web request and Veeam
Hello I am trying to download 3 files from dropbox and Install them. This is what I have so far: https://pastebin.com/rDkB08ef The problem I’m running into is Everything gets downloaded correctly,...
View ArticleIs it possible to add an item to startup?
Is it possible to write a script that adds a batch file to startup? submitted by /u/Hade5 [link] [comments] The post Is it possible to add an item to startup? appeared first on How to Code .NET.
View ArticleParameter in multiple parameter sets, but with different [ValidateSet()]...
Hey all, I’m trying to write a module to interface with a service at work, and I’m running into a bit of a snag related to parameter sets. One of the functions I’m trying to write is for creating a...
View ArticleDebugging
Is it somehow me or is debugging Powershell spectacularly temperamental? I manage to hang the debugger or crash it with astounding frequency. In VS Code it’s not too uncommon to somehow get it in a...
View ArticleWindows 10 Hardening Via Powershell
I’m just curious if anyone out there has created a PS script for hardening windows. I know guides like STIG and US Agencies have released VERY indepth guides and was curious if anyone turned one of...
View ArticlePersonal Powershell Script Library
submitted by /u/jacfearsome [link] [comments] The post Personal Powershell Script Library appeared first on How to Code .NET.
View ArticleLittle Help with ReadKey()
I am learning about how to respond to keypresses in powerhsell and have been playing with ReadKey() I dont have much so far but the following sort of works. It sends a beep of a different pitch when a...
View ArticlePodcast with an MS PFE discussing the process of handling support requests...
submitted by /u/techstress [link] [comments] The post Podcast with an MS PFE discussing the process of handling support requests thru automation, rather than mouse click; like uninstall / reinstall...
View Article