[Exchange] CMDlet to display disk- and dbspace usage of all mounted exchange...
some time ago we had problems with our exchange databases outgrowing the available diskspace on their volumes. for troubleshooting and monitoring i wrote this little script giving us an overview of...
View ArticleManaging Exchange Server 2016 Using PowerShell
submitted by /u/Net-Runner [link] [comments] The post Managing Exchange Server 2016 Using PowerShell appeared first on How to Code .NET.
View ArticleCalling PowerCLI from Powershell? (Updated)
Hi All, A couple days back I posted a thread ( https://www.reddit.com/r/PowerShell/comments/5wr6j1/calling_powercli_from_powershell/ ) about having difficulty using PowerCLI in PowerShell. I got some...
View ArticleFormatting nested PSObject to table
Hi, i recently wrote a script to give me a list of all our VMs including information about them like witch group/project the VM belongs to or how much RAM is allocated to it. I’d like to get...
View ArticleLync management shell / Get-CsUser
I need to manage couple of lync accounts using PowerShell but my console doesn’t have the correct cmdlets loaded. any idea on what Module do I need to add to get this work thanks submitted by...
View ArticleConverting an arraylist into hashtable
I have an array list that looks like this: @{name=phill; age=20; school=washington high;} @{name=katie; age=30; occupation=HR assistant; country=USA;} How do I convert this into a hash table so it...
View ArticleRotating Backups
Hello, I’m not sure if this is possible but I need a script that backs up to a different drive each week. There is Drive A and Drive B, each week a happens to e.g. Drive A and then at the end of the...
View ArticleGuidance needed removing lines from a CSV
I’m new to Powershell, but not scripting. I had a project dumped on me. Merge some CSVs and remove unneeded lines. I’ve been trying to find resources on this for about a week. Everything I find is a...
View ArticleAdding network printer for specific user remotely.
Hey everyone, currently trying to set up a powershell script that i can utilize at my place of business to remotely add specific network printers to specific computers for specific users. So for...
View ArticleSetting a default value for a dynamic parameter
maybe I am missing something, but can you not set a default value for a dynamic parameter? I am coming up empty and don’t see anything exposed in System.Management.Automation.ParameterAttribute...
View ArticleGetting folder size for multiple directories
I’m new to powershell and i’m stumped on how to get the folder size from multiple directories. I found this scirpt which prompts you for a path, but let’s say I had 10 folders I wanted to get a list...
View ArticleHelp with copy-item script
Hi /r/PowerShell, I’m sure I’m making a meal out of this problem but I could do with some help. I have written a PS script that will run daily as a scheduled task. Its job is to copy any new files...
View ArticlePowerShell v2 JSON API Request – system.net.webclient –“The underlying...
I’ve been successfully running a version of following code for the better part of a year, and it just randomly broke. I’m limited to PowerShell v2, so invoke-webrequest and invoke-restmethod are not...
View ArticleCopy Folders Only if Folder Exists in Destination
So i have server A and I want to call a list of folders to use to copy over to server B without creating new folders on B. If Server A has: Folder2, Folder2, Folder3 and Server B Has Folder1, Folder2,...
View ArticleDSC Pull Server on 2016 Issue
Anyone else set this up? I was looking to move my Pull Server from my 2012R2 to 2016 but for some reason the modules just will not load. I have installed xPsDesiredStateConfiguration from the repo but...
View ArticlePowershell SQL script to add new users only sometimes works
Hey all, I’ve been working on a script to add new users with appropriate mappings in SQL, and so far I’ve run into a weird problem: when I run the script the first time, it works as intended....
View ArticleWinForms: the Pipeline has been Stopped
On exit a script throws a PipelineStoppedException. It’s based on the hdd-health-monitor example, with a hidden form and a tray icon, and it shows balloon tips occasionally. The script works properly...
View ArticleAWS PowerShell tools
Wondering if anyone on here uses PowerShell a AWS tools. Seems like most of the industry uses Python, Ruby, shell scripts. If so, have you done anything cool? submitted by /u/aaroneuph [link]...
View ArticleMigrate from OU-Based Item-Level Targeting to Security Group Based – Looking...
Hello everyone! Long-time lurker here, and I’d like to thank the subreddit for helping me in various capacities when I’ve been stumped. I come here with my first public script to share, looking for...
View ArticleHashtable or Where-Object: Which is faster
Hi All, I have the requirement to import csv’s and do the vlookup against few other csv’s for each line in the file. I am able to do that using the script, but for 55k lines (against 55k lines) is...
View Article