[Question] The Search Filter Cannot be Recognized
foreach ($user in $users) { #Search in specified OU and Update existing attributes Get-ADUser -Filter "EmailAddress -eq '$($user.EmailAddress)'" -Properties * -SearchBase "<redacted>" |...
View ArticleCollect list of public delegated subdomains
I’m looking to query an Active Directory–integrated DNS server for a list of all public delegated subdomains. I’ve got this far with this: $DNSServer = "ns1.*********.com" $Zones = @(Get-DnsServerZone...
View ArticleLogging into a Website
So I’ve been messing around with this for a couple hours and while I can find loads of info on how to do it with sites that use forms, I’m not finding anything helpful when the site doesn’t use any...
View ArticleQuestion about Jobs
I want to start a job loop that will keep spawning jobs and iterating through my array when the job count is less than X number of jobs. This is what my code looks like right now: foreach ($Datacenter...
View ArticleUsing PowerShell Modules in Azure Functions
submitted by /u/PowerShellChallenge [link] [comments] The post Using PowerShell Modules in Azure Functions appeared first on How to Code .NET.
View ArticleAverage working hours, and justifying/advocating code quality
A serious question, please make a throwaway account if you need, I’m really curious to find out how many hours people spend doing work for your employer, given that a lot of people who write...
View ArticleIs there a way to add a registry key with multiple values?
I’m trying to add multiple values to a registry key. I can add one value, but not multiple values. Is there a way around this? Registry Location: HKEY_CURRENT_USERSOFTWARETESTSOFTWAREDropShitHere...
View Article(Exchange 2013) Remove outbound disclaimer text
So we are testing adding a transport rule that will add the following message to emails to help users be aware of external emails (which we really need around here) The result:...
View ArticleCan I compare-object and then write a value depending on the result?
Edit: Nevermind I figured it out, I’ll post it here once I get it looking decent. Second Edit: /u/bobalob_wtf beat me to it, and his is better. Hey all! Getting out of my comfort zone with this one. I...
View ArticleProblems with regex? This helps me.
If you’re just like everyone else, you struggle with regex. I’ve been using this guy for a while now and, even though it’s java based, it works WONDERS in trying to figure out just what to pull out of...
View ArticleError creating WPF text box in PowerShell.
This is my first time working with WPF and I’m trying to create a text box following instructions in this article. The first portion provides simple code to create a text box: [xml]$xaml = @"...
View ArticleNull and Unique AD attributes
Is there a way to pull all AD System (not constructed or backlinks) attributes that do not have a value across all user accounts in an OU? Basically i am trying to find attributes that are not in use...
View Articlecalling powershell from a vba module
Hello everyone, Long time lurker on this Subreddit. I’ve been using a lot of the tricks and methods I’ve learned here in a new business analyst job. No one else in the company uses it! They run all...
View ArticlePSMSGraph: A Microsoft Graph API PowerShell Wrapper Module
tl;dr: https://github.com/markekraus/PSMSGraph install-module psmsgraph. Hi everyone! Sorry I haven’t been as active in the past month. I have been very busy and I also discovered Dark Souls is very...
View ArticleThe free Xamarin Studio IDE now supports Posh on Windows, Mac, and Linux!
submitted by /u/aytch [link] [comments] The post The free Xamarin Studio IDE now supports Posh on Windows, Mac, and Linux! appeared first on How to Code .NET.
View ArticleHELP/QUESTION- Tweaking a script with multiple parts
So, the short story is I’ve been selected to write a script for work that will rationalize individual ips from a certain range (ideally a list of ranges), turn those individual ips into hostnames, and...
View ArticlePowershell Jobs
Hi everyone, Disclaimer : I’d like to apologise if I’ve posted this in the wrong sub. Currently wanting to shift from a senior support role to a more PowerShell oriented position but I’m struggling to...
View ArticleHelp – Select-AzureRMSubscription not recognized
Trying to set up my VSTS windows build agent to accommodate for powershell steps within VSTS but having some problems. Initially it reported that the AzurePS system capability was not present, so I...
View ArticleFunction that uses more parameters based on the first parameter
I am trying to figure out how to do this and am not having much luck. What i am trying to do is something like this. Function Example-function{ param ( [Parameter(Mandatory=$True,Position=1)] $count )...
View ArticleWill these scripts help me set a new primary smtp for a bunch of users?
Hi r/powershell I am wondering if the following scripts is a good way to set a new primary smtp for a bunch of users (using AD and Exchange). First create the security group: New-ADGroup –name...
View Article