Quantcast
Channel: /r/powershell – How to Code .NET

Image may be NSFW.
Clik here to view.

Migrate Network Settings from one server to another

Hello, I am trying to write a PS script that does the following Connects to a remote server (OLD) and get IP/Subnet/Gateway/DNS info and store it Change the remote server’s (OLD) IP Address Set the...

View Article


DataGridView Adding Value to Specific Column

I have a DataGridView that grabs the Full directory name and Last Write Time. I want to insert the full directory name into column1 and lastwritetime to column 2 ​ So far my attempts are: Attempt1...

View Article


export-csv with no headers?

I’m new to powershell but have been a PHP developer for a while, and I’m trying to work with a CSV file to remove some leading 0’s in one column. I have the core of the code working but when the new...

View Article

Function Overloading

When will powershell support overloading in plain functions (no OOP) This feature would be a great improvement and a code saver… right now to emulate function overload I have to recur to function...

View Article

How to reach Powershell insiders

where can i put questions to PowerShell insiders ?blogs ?forums ?chats submitted by /u/IBIT-ZEE [link] [comments] The post How to reach Powershell insiders appeared first on How to Code .NET.

View Article


RichTextBox text change based on functions/output

Hi, I have the below script: https://pastebin.com/DV7qk7TC I have tried Groupboxes, RichTextBoxes, Labels, custom objects and still can’t get this right. I need an example of how I can make the output...

View Article

PowerShell is now part of the .NET Core 3.0 container images

submitted by /u/TheIncorrigible1 [link] [comments] The post PowerShell is now part of the .NET Core 3.0 container images appeared first on How to Code .NET.

View Article

PowwrShell 5.x, Core, 7…? Need some guidance!

Hi there everyone, So I’ve been using PowerShell now for about 2 years and have come a long way! I’ve recently built out a Jenkins running different automation jobs daily (mostly AD reports). I am...

View Article


Invoke-RestMethod returning empty results

I have been trying to create a script using Powershell that returns API responses from a webserver. I have had success getting the results I need using Google’s “Advanced REST Client”, however the...

View Article


Directory Tidy-Up Script

Hi all, ​ Forgive me as I’m new to PowerShell – so I’ve probably made this way more complex than it needs to be. I’m trying to generate a report on directories that have files and folders not accessed...

View Article