Connections to O365 fail
We have those scripts running for months and we’ve just hit blocks for the past week. We’re usually troubleshooting connections and able to resolve but not in this case. Opened a ticket with premier...
View ArticleVPN Certificate Checking
Hi All, I need a bit of assistance with the script I’ve written below, it tries to filter out the next expiring certificate for the user and email them to notify that the certificate is expiring, but...
View ArticleA week ago I posted about a small project of mine for PowerShell. Are you...
Hi guys, A week ago I asked everyone opinion about my website: https://www.baswijdenes.com/powershell old post:...
View ArticleHelp Modifying File Permissions for a local user group
Here’s the situation: I am installing some new software. It borks certain machines. Long story short it’s a file permissions problem. I need to make sure that $machinenameUsers (the local “Users”...
View ArticlePassing ‘ in -Filter parsing error
Hello everyone! Lurker for a little bit, teaching myself PowerShell, and it is coming along pretty great! I am trying to clean up my messy code/scripts to make the code cleaner/more efficient as I...
View ArticleCan’t figure out why ConvertFrom-Json does not have a -depth parameter on any...
I am trying to use the -depth parameter, but none of my machines have this. ref: https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/ConvertTo-Json Edit: Snapshot of...
View ArticleHow to monitor for remote powershell sessions occurring on server
Background Story: I was working with a customer who was having their IIS application pools recycle every 15 minutes. I checked the local server for any scheduled tasks that would explain this, but I...
View ArticlePowershell > Registry Key > Chrome Extension help :)
Hello, I need to add a Chrome extension by adding it to the registry (we do not have any method of group policy/AD or anything so I have to distribute this extension by creating a powershell script...
View ArticleHow can I set an alias that includes an argument, e.g. get-help -online
I’d like to type “gho get-rand” for example to accomplish “get-help get-rand -online” submitted by /u/motsanciens [link] [comments] The post How can I set an alias that includes an argument, e.g....
View ArticleFunction does not return anything but is told to?
Hi everybody, sorry to bother you all. I have made a script that scrapes the anime site crunchyroll for new episodes for a friend, but here recently I decided that instead of manually editing the JSON...
View Articledelegate powershell tasks to level2 techs without granting elevated permissions
There are some tasks we want our level2 team to do but the solutions (like o365) don’t have granular enough delegation. Right now we have powershell scripts to do this. But you need to elevated rights...
View ArticleTrying to insert a variable into a scriptblock command for a messageall script
Currently I’m trying to find a solution that allows me to message certain AD groups by AD group membership. I have a script that works so far for the messaging portion, but the problem is I cannot get...
View ArticleGet-ADGroupMember | Select *options*
Hello! I’ve realized some of the properties I’m trying to display do not actually work with Get-ADGroupMember. I’ve got name,samaccountname,objectClass but that’s it. I can’t seem to find a list of...
View ArticlePowershell script to reset local admin password
I need a script that will reset a specific local admin account’s password every 90 days. We will send it out using SCCM to all machines so it only needs to reset the local PCs account. Unless there is...
View ArticleNeeding a little help with a windows forms application inside a module
Hello, first time on this reddit and I am working on a powershell based forms application that due to some very intelligent restrictions from the corporation, I have no access to 3rd party apps/visual...
View ArticleUnable to use $variable.Put() except with a null value
I am using ConfigManager commandlets for this. The problem is I am unable to update a refresh count variable. Here is the full script. $searchString = "Install - Dragon*" $collections =...
View ArticleHow to format a hashtable in PowerShell
Hoping someone here may be able to help me. I’m attempting to use PowerShell to run this command: http://docs.aws.amazon.com/powershell/latest/reference/items/Send-SSMCommand.html The “-Parameter”...
View ArticleDelete all rewrite rules from web.config
Hello, I am looking to find a way to delete all existing rewrite rules in web.config of an IIS website via a powershell script. Clear-WebConfiguration -pspath 'IIS:SitesDefault Web...
View ArticleHelp sorting a list
Hi /r/PowerShell I am writing a script to show who has full access to each user mailbox in our company. Fairly straight forward. I may be over complicating my method but I’m having trouble getting...
View ArticleIssue running commands from Powershell ISE
I have the AWS CLI tools installed and cannot run the command ‘aws configure’ from the ISE, it hangs and I have to break out of it. The command works fine from a powershell window. Any idea why this...
View Article