PowerShell SQL Connection/Query error catching
Hey guys, We have a system that lets users register their card, and then puts those users into a SQL Table. We then want the users who registered within the last 24 hours (or since the script was last...
View ArticleNew Social Features on Gallery
submitted by /u/PowerShellChallenge [link] [comments] The post New Social Features on Gallery appeared first on How to Code .NET.
View ArticleForEach iteration limit?
Good Evening, I have a weird issue that I am reaching out to Reddit for assistance with. I have a script in which I grab every group in AD and pipe it into a ForEach block. Everything works great...
View Articlenearly pointless powershell – 2016-09-30-rld
howdy y’all, had a few moments of boredom jump up and attack me. in self defense, i decided to do a smidgen of powershell. here it is [yes, it’s ugly. that’s most of the point!] … grabs the current...
View ArticleSwapping Integers
There was a post yesterday on another subreddit (I can’t remember which and can’t find the post now) in which I saw something kind of neat in another programming language that I wanted to see if it...
View ArticleRecommendations for code repo?
What do you guys recommend for code repo? I’m not opposed to Git but I need to host something in house that I can use to keep all my Powershell scripts and 1 liners organized. I would prefer something...
View ArticleNetsh Disable Policy based on Port Numbers
Hi All, I am trying to create a powershell script (Target Level OS 2008 R2) that 1. Runs through a array of ports 2. List all firewall policy associated with the ports 3. Capture the “Rule Names” into...
View ArticleWhat have you done with PowerShell this month? September 2016
What have you done with PowerShell this month? Did you learn something? Write something fun? Solve a problem? Be sure to share, you might help out a fellow powersheller, or convert someone over to the...
View ArticleASCII GUI in your PowerShell Console
submitted by /u/Arkiteck [link] [comments] The post ASCII GUI in your PowerShell Console appeared first on How to Code .NET.
View ArticlePART 4.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTRATING LOCAL...
submitted by /u/kunaludapi [link] [comments] The post PART 4.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTRATING LOCAL NETWORK GATEWAY appeared first on How to Code .NET.
View ArticleExecution Policy Will Not Change?
Hi there, Kind of a newbie to Powershell. I am trying to run a powershell script, unusually No matter what I do when I run Set-ExecutionPolicy Unrestricted it takes me to the part where I need to...
View ArticleSplit csv or object to multiple csv files
I am working on a process that will generate a rather large object and will be exported to csv for consumption by another app. The issue that I am running into is the csv file is too large as a single...
View ArticleFunction seems stuck in loop
I’m working on a script to get some folder sizes, but the script appears to be stuck at line 15 on the second loop. Not sure what I’m doing wrong. Script: http://hastebin.com/bekamivanu.bash Y: =...
View ArticleWhat do you all feel about having puzzles?
Power shell challenges. Expert and noob level stuff. A weekly or daily challenge set of tasks for folks to stretch and learn on. submitted by /u/silverwolfer [link] [comments] The post What do you all...
View ArticleHot folder scripting methodology. How do I tackle this? The decisions I make...
So I am challenged to write a script that scrubs a series of folders and if there are items in said folders perform an action. Hotfolder stuff. The items are .jpgs in sub sub folders. So basically...
View ArticleScript Stopped Working and Started Throwing an Exception “SetInfo” with “0”...
I was running this script on Friday, and it worked fine, but today I’m getting an exception. No idea why. $UFCannotChangePwd = 64 $UFPwdNeverExpires = 65536 $strUser = "administrator" $strUser...
View ArticleNeed ideas for script with split credentials
Horrible Title, I know… I have a simple script that I want to run as the logged in user. I need it to run as the user because it grabs all of their outlook contacts and exports as a csv. I need to get...
View ArticleHiring Sr. Engineer at TicketMaster
submitted by /u/logicaldiagram [link] [comments] The post Hiring Sr. Engineer at TicketMaster appeared first on How to Code .NET.
View ArticleNeed help writing a script to clean up Chrome folders
Hey everyone, I’m looking for a script that will loop through all the user profiles and copy the Chrome bookmarks file to the desktop. We’re an organization that primarily uses Windows 8.1-Windows 10...
View ArticleDelete Files in Folders / Subfolders older than hours.
Hi All I’m quite new to PowerShell scripting I was wondering if someone could point my in the right direction. I need to delete files in folders and subfolders that are older than a set number of...
View Article