Love reinventing wheels. Get AD group members recursively
submitted by /u/joakimbs [link] [comments] The post Love reinventing wheels. Get AD group members recursively appeared first on How to Code .NET.
View ArticleGet-UserSessionEx – Get all user session info in one place…for real though.
Get-UserSessionEx is capable of outputting User Session information for an array of Computers by combining output from query.exe and Get-CimInstance. The goal is to gather all of the most useful...
View ArticleIs ActiveDirectory module (for cmdlets such as Get-ADUser) source code released?
I have been browsing the PowerShell Github repo and it seems to contain just the cross-platform framework, and a ton of other minor repos (mainly for DSC). Does anyone know if there is any plan to...
View ArticleKevmar: Advanced Gherkin Features
submitted by /u/KevMar [link] [comments] The post Kevmar: Advanced Gherkin Features appeared first on How to Code .NET.
View ArticleLooking for powershell script direction
I have a client request an audit of files containing a bunch of search terms in the body of documents on their two file servers. I figure powershell would be the way to create this list. I just need...
View Article$true is not a recognized cmdlet?
powershell iex "while ($true) { exit; }" True : The term 'True' is not recognized as the name of a cmdlet, function, script file, or operable program. What gives? submitted by /u/LowValueTarget [link]...
View ArticleNeed help with error, want to overwrite hash table.
Hello I currently trying to use this script: https://pastebin.com/DUQu6rfC, but I am receiving the error “Exception calling “Add” with “2” argument(s): “Item has already been added. Key in...
View ArticleConverting ADUsers to JSON File?
I am able to use Get-ADUser and filter them to 3 specific properties I want. However, When I try to convert that to json I don’t get those properties…. I’ve tried using Select-Object and that will...
View Articleconvertto-html usage
Hello /r/powershell I am working on some school work and am struggling with how to use converto-html correctly. My task is to take a text file with data in it and using PS take that data, then format...
View ArticleAttempting to display ADUsername based on hostname file
Hello fellow sysadmins, Trying to display an ADUsername tied to a hostname specified in a txt file. I get the following error shown in my CSV when running the script:...
View ArticleLog off idle users from RDP.
Hey guys, we are using an RDP server for our users to work from. However we are constantly running into issues where users leave their work open and take up resources on the machine. I am looking for...
View Article[Question] New-Aduser account password does not meet complexity… But it does.
Good Afternoon all, We are upgrading our access points to cisco and we were previously using radius to authenticate the MAC address of the device to allow / deny access. The mac address of the devices...
View ArticleOpenSSH Security Testing Kick Off
submitted by /u/PowerShellChallenge [link] [comments] The post OpenSSH Security Testing Kick Off appeared first on How to Code .NET.
View ArticlePowerShell Basics: Sorting and Selecting Objects with Sort-Object and...
The basics of sorting and selecting objects for our newer PowerShellers http://www.signalwarrant.com/2017/05/01/powershell-basics-sorting-and-selecting-with-sort-object-and-select-object/ submitted by...
View ArticleEnable-PSRemoting on all Domain PC’s
Hello fellow powershell friends! I’m currently using a PS script that query’s all domain computers for hardware information using Get-WmiObject. The problem is, Get-WmiObject doesn’t like that all of...
View Articleenable-mailbox giving error
Hi… I am hoping im just being incompetent. I am simply trying to create a mailbox for a useraccount using the command enable-mailbox -identity $logonname -primarysmtpaddress $emailaddress I am getting...
View ArticleHow to make use of conf file?
I have few variables which are being used in multiple scripts. And every time there is change in a variable value, I have to update all the scripts. Looked around,but couldn’t find how to have a txt...
View ArticleQuestion about my PS script that executes a file when there is a change in a...
Somewhat new to PS. I have this script i pieced together from the internet that watches a directory of my choice and if a file is created, edited etc.. it launches a file of my choice. It also has a...
View ArticleAny good classes?
I am still a newer powershell guy but have been working on getting better. I am working through the month of lunches book but my company has offered to pay for a PowerShell class. I did some googling...
View ArticleInstall certificate for IIS on remote server using account instead of password.
So the idea is that currently I can use Invoke-Command to import an PFX Certificate using: Import-PFXCertificate -FilePath "foo" -Password $securePwd I’m wondering, is it possible to import this same...
View Article