Quantcast
Channel: /r/powershell – How to Code .NET
Browsing all 8793 articles
Browse latest View live

Easy Way to Modify a List For Import into POSH?

I’ve got some tools that give me reports every so often of a list of names. Example: Joe L. Smith Josh A. North Sandy P. Garnett I’d like to modify these lists so that I can import them into...

View Article


Script to generate regexes from IP ranges

The script takes a list of two letter country code, “ru,cn” as arguments, retrieves the IP ranges assigned to the country from Nirsoft (http://nirsoft.net/countryip/) and then submits the Start and...

View Article


Powershell-based bot framework

submitted by /u/Arkiteck [link] [comments] The post Powershell-based bot framework appeared first on How to Code .NET.

View Article

Trying to send “Alt+1” using “SendKeys”, but the page won’t accept it.

I’m automating some stuff through Powershell by manipulating some stuff on Internet Explorer. The last button is a “Save” button, and you can also activate that button by pressing “Alt+1”. However,...

View Article

Trouble with Get-PSDrive

I’m working on a drive mapping script. I’m trying to use Get-PSDrive to check if the drive has already been mapped to the correct network share. If I just run the command in the console, the root...

View Article


EncryptDecrypt Module – Hybrid RSA/AES Encryption solution with PowerShell....

Thanks to Tyler Siegrist for his AES encrypt/decrypt functions and Michel I. Gallant Ph.D. for opensslkey.cs. https://gallery.technet.microsoft.com/scriptcenter/EncryptDecrypt-files-use-65e7ae5d...

View Article

Scripting “Check online for updates managed by windows update” with limitations

I’m trying to work out the best way for automating downloading and installing windows updates on multiple servers remotely. A few facts about the environment: SCCM 2012 is utilized, and I’ve got...

View Article

What’s the quickest way to ping a computer?

I’m using: “IF(Test-Connection -computer $serial -quiet -Count 1)” But does anything know a better way that would be quicker? That takes about 5 seconds per serial number, if the computer is not on...

View Article


How to validate that a file contains specific text?

Hello. I’ve created a script to make some changes to the configuration of a device. There is a way to dump the current settings to a text file. Could someone point me in the right direction to have...

View Article


Exporting & appending information from web API to CSV

So I’ve been working on trying to build a CSV file that pings an API daily & builds a CSV file with a new line every day. Having some trouble though, I got everything set up how I think it should,...

View Article

Neophyte again, seeking more help

So, I posted earlier at https://www.reddit.com/r/PowerShell/comments/6caz4t/neophyte_powershell_user_seeking_a_small_bit_of/ and you guys offered a great bit of advice. I’m running into another issue...

View Article

Do / while Help

Does anyone have any hints for me to have ppwershell do something while a process isn’t running then stop when it’s detected but continue once the process is no longer there ? Sounds vague I know but...

View Article

My PowerShell framework

Good afternoon all, I wrote a little framework for writing powershell scripts a while ago. It sets up logging and imports all the modules in the “modules” folder of the script. Adding new modules to...

View Article


Individual jobs with one header for results?

I’ve written a script which gets data from servers via individual jobs and then receives the data as soon as one is completed. My question is, can this data be kept under one header? As it is...

View Article

Permission Granted: Using SharePoint Online, Flow, Azure Automation and...

submitted by /u/markekraus [link] [comments] The post Permission Granted: Using SharePoint Online, Flow, Azure Automation and PowerShell to Automate OneDrive for Business Permission Requests...

View Article


Recommendations for parallelizing pester tests while also generating NUnitXml...

Hi all! On my to-do list for my CI/CD pipeline is to parallelize my Pester tests. Currently, these tests take way longer than they should because there are a large number of them. Many of these could...

View Article

Microsoft posts PowerShell script that spawns pseudo security bulletins

submitted by /u/dowdverdell [link] [comments] The post Microsoft posts PowerShell script that spawns pseudo security bulletins appeared first on How to Code .NET.

View Article


Looking For A Script To Track IP/DNS Changes

I want to run a script daily that provides an output of certain hostnames/URLs and their corresponding IP addresses. Additionally I’d like to highlight if there has been a change since the previous...

View Article

Custom “Windows Explorer” for Powershell GUI scripts

Simple and lightweight – perfect to use as a function within PowerShell scripts. I had issues with Powershell GUI scripts, STA mode, and FolderBrowserDialog – it would cause a .NET unhandled exception...

View Article

Trying to wrap my head around PoSH, Pester and “Building” powershell scripts

Currently reading this article : https://kevinmarquette.github.io/2017-01-21-powershell-module-continious-delivery-pipeline/ And I don’t understand “building” a script. Usually, when you build some...

View Article
Browsing all 8793 articles
Browse latest View live