Looking to make an all around “Toolbox” for help desk
Hey guys! Wondering if you can point me in the right direction to get started using WPF to create a toolbox of sorts for our help desk folks. The idea is to give them a bunch of stuff they can do,...
View ArticleNeed some help getting a form to acknowledge doubleclick event.
Script: http://pastebin.com/EjThp0NU (fixed as described in edit #2) I’d like to get an event handler for double click on my slide show script, when I try to add one with the commented out...
View ArticleManipulate Workstation Software Information via SCCM
I’ve been using WMI to extract SCCM software information during the workstation replacement process. The linked script is what I use in my work environment. It quickly looks up installed software and...
View ArticlePowerShell ProTip: run your scripts through a Teamcity instance
This is the coolest thing I haven’t seen anyone doing. Set up a teamcity instance on a shared server. Create a git repository for whatever PowerShell tasks you find useful, check the scripts into...
View Article[Script Sharing] I have designed a script to Automate AD User creation,...
This took a while to work out all the kinks however it turned our possibly 15 minute setup process, depending obviously, into literally a 1 minute task. I borrowed code from several sources however...
View ArticlePOSH Script to Allow Windows Remote Management and WMI through Windows...
Does anyone know how to do this in POSH? I dont know where the default path is so I cant use netsh advfirewall … – and Enable-PSremoting does not do what I want it to. For WMI I have this: netsh...
View ArticleAZURERM Cmdlets and JSON like output
Can anyone help me parse out these AZURERM commandlets? They aren’t very powershell like, and i don’t know how to treat the output. Here is a snippit of the get-azurerm output. How would i pull...
View ArticleHas anyone dug into the CimSession methods, namely EnumerateInstancesAsync?
I’ve got some commands that perform a large amount of queries, and it occurred to me that their must be a way to do this asynchronously. The official method seems to be to generate CDXML cmdlets,...
View ArticleRunning a script using a foreach loop which goes through a list of servers…...
So I would be using the following code in a script: $ServerList | Select-Object Server | foreach {$_.Server} | .Run-CommandMultiThreaded.ps1 -command "Get-Service" -InputParam ComputerName |...
View ArticleHelp w/ Object Looping & Removing Specific Printers
Hello there! I’m fairly new to PowerShell scripting and I’m trying to figure out something I think should be pretty simple to anyone relatively familiar with PS. I want to remove specific printers...
View ArticleHas poshcode.org been hijacked?
I’ve tried from home, work, multiple networks and PCs… poshcode.org redirects to an ad site now. submitted by /u/messageforyousir [link] [comments] The post Has poshcode.org been hijacked? appeared...
View ArticleI need help compiling a PowerShell Script
Ok so here’s the deal. Long story short I need to create a POSH script that will run on first boot on a couple tablets (Windows 10 IoT – POSH 5). I am testing out a custom image I made, but I also...
View ArticleExport-CSV Returning Thousands of Lines?
Wrote a script for work which migrates files from directory ‘x’ to directory ‘y’ depending on the -recurse output from a CSV. Ran a test on 150 files and expected a result of only 150 lines – instead...
View ArticleHow to copy .csv from multiple locations to one directory where .csv is...
I have some .csv logs I need to consolidate into one folder so that I can quickly access the most recent logs. My source folders are similar to this: C:Program FilesUnique NameLogs. Each folder within...
View ArticleModules that require DLLs
I did some searching and didn’t find anything of value, hoping someone here has a good idea on how to solve my issue. I’ve written some modules that require me to load assemblies from a dll file that...
View ArticleConverting a PHP table to a CSV file
So the Call Center has a backend setup that will generate reports of all their calls, how many they pick up, ignore, etc and it generates it to a nice little PHP page with charts and a cute little...
View ArticleCurious behavior when de-duplicating a collection in PowerShell
submitted by /u/LincolnA [link] [comments] The post Curious behavior when de-duplicating a collection in PowerShell appeared first on How to Code .NET.
View ArticleDynamic Parameters – using multiple dynamic parameters based on value of...
Is it possible to have multiple dynamic parameters? If so, can you make them nested so that they are only available if another dynamic parameter is set? Here’s my snippet that I would think should...
View ArticleHow to make a script analyze each line of a text file and perform an action...
I have a text file with about 400 lines of data. Here is a snippet of a portion of the file: 0009 John Don Doe Terminated 0014 Little Casesar Active 0024 Mary Lamb Terminated 0051 Michale Bolton...
View ArticleAD cmdlets and hard coding searchbase
How are you guys handling persistent scripts and having to hard code the OU locations when working with AD? Get-ADXXXXXX -Searchbase Doesn’t accept the ObjectGUID as a valid reference to an OU....
View Article