[Question] Riddle me this… custom module import error
So I have these 4 custom modules I’m working on, they import fine when specifying the full path to the psm1 file. There is a parent folder XyzPoshSuite, which has these 4 subfolders inside, each with...
View ArticleIs it possible to change what happens when the power button is pressed...
I’m making a post Windows re-installation script to speeding up the process of customizing the Windows installation after a re-install. I would like to be able to change what the physical power button...
View ArticlePowershell remoting not enabled by default makes it useless
If PowerShell remoting is not enabled by default on Windows 10 computers, using the WSman protocol over DCOM is pretty much useless (in Powershell and .NET CimSessions). Sure you can enable it...
View ArticlePossible to read subject of an email via script?
I’m using an internal SMTP server to send myself an email when a certain sysadmin event occurs. However, I’d like to have a little more intelligence occur, so I’d like to be able to read the body of...
View ArticleGet-ADUser -LDAPFilter : AD User Manager chain match
submitted by /u/Frndlyy [link] [comments] The post Get-ADUser -LDAPFilter : AD User Manager chain match appeared first on How to Code .NET.
View ArticleEditando Scripts #Powershell com #VSCode (Linux e Windows)
submitted by /u/SQLCrespi [link] [comments] The post Editando Scripts #Powershell com #VSCode (Linux e Windows) appeared first on How to Code .NET.
View ArticleRespond to windows security prompt box? Script to check and interact with web...
Hi all, I’ve got a script that checks a Fibaro environment monitoring unit that often crashes, I’ve got it to check if it’s crashed using internetexplorer.application com object (only way I could make...
View Articledeleting multiple registry keys in Powershell
Hello redditors, i have two 2 registry keys that needs to be removed in the register, both are in the same location. This needs to be rolled on multiple computers so thats why i decided to create a...
View ArticleHandling hash tables in custom objects
Our monitoring system has a REST API that I am trying to retrieve properties from, then output them to a custom object. A couple of the property values are hash tables. In addition to keeping the...
View ArticleKevmar: PSGraph, A graph module built on GraphViz
submitted by /u/KevMar [link] [comments] The post Kevmar: PSGraph, A graph module built on GraphViz appeared first on How to Code .NET.
View ArticleIP Range Scanner & MAC Lookup
Hi, Is there anything like Angry IP scanner but can be run from command line in PowerShell? http://angryip.org/ submitted by /u/monkh [link] [comments] The post IP Range Scanner & MAC Lookup...
View ArticleCombining two arrays by their unique column(SQL Inner join reference)
Hi I just kindly wanted to ask if there’s a workaround in PowerShell where I can combine two arrays by their unique key. For example: $arrTest@(("DB Server","Synchronous"),("DB...
View ArticleHow to disable TAB completion in PS when pasting code to console?
Copy-Pasting a text into PS console which has TAB inside it, completely destroys the code because of TAB completion. eg: I want to copy some commands from OneNote/excel which have tabs in them: ping...
View ArticleProbably a simple NTFS permissions question
Hi all, I have a bunch of user home folders on a drive. Each folder has the username of the individual involved. I want to break permissions inheritance at that level and give their username, domain...
View ArticlePlanet PowerShell
Hi Everyone, In the Xamarin community they just setup Planet Xamarin as a community to aggregate community content. I decided to do something similar for PowerShell. Introducing, Planet PowerShell –...
View ArticleUnable to import a GPO with a migration table – The data is invalid 0x8007000D
Hi Everyone, I’m stuck on importing a GPO I’ve backed up with a migration table. The code I’m using is: Import-GPO -CreateIfNeeded -path $env:homedriveShadowLAPS -BackupId...
View Article[Question] How to auto install third party modules in scripts?
Any resources on automating the download and install of third party modules if a computer that is running my script does not have it? For example I want to automate the install of the psremoteregistry...
View ArticlePlease help on how to work with Array information in table….
So i have created a powershell workflow to automate and no-touch the configuration of our servers that we have go through our lab. My last hangup involves checking the firmware version of an HP...
View ArticlePowerShell development Pipeline
Any suggestions on where to start? I’m currently checking code into git, but want to take things further. Looking at using pester, psake, psdeploy, appveyor etc to get CI/CD. Any suggestions /...
View ArticlePowerShell Open Source Community Dashboard
submitted by /u/PowerShellChallenge [link] [comments] The post PowerShell Open Source Community Dashboard appeared first on How to Code .NET.
View Article