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

Help on assignment

assignment : http://imgur.com/a/yt9Jl (need to zoom by clicking on it) current work: https://pastebin.com/rxDBiPmE I know there is probably an easier way to make an array and it probably needs to any...

View Article


Image may be NSFW.
Clik here to view.

Is what I am trying to achieve possible with Powershell?

Hi everybody. I’m looking to get into scripting to automate some tasks on my desktop, and was checking out different languages and methods to perform some of the things I have in my head. Would...

View Article


Moving folders if they match any of a series of names

hey all, powershell nub here but I’m trying to figure out how to move folders if they match against any of a given set of parameters. specifically, I have user profile folders that have different...

View Article

Is there a simple method to trim leading and trailing whitespace within csv...

I’m attempting to import-csv on a set of “messy data” and export it after clearing whitespace (leading and trailing – not in between) from the cells $Cleaned_CSV = Import-Csv $Parsed_export |...

View Article

Interacting with a wpf object in C# from PowerShell

This may be better to post on the CSharp subreddit but I have a C# program that creates a runspace and invokes a script. I want to be able to add a few wpf controls to the window created in c#. I...

View Article


Need some help on a script that I am creating (details inside)

Hi, I’m still new to Powershell so please excuse any errors I make asking this. I need some help on how to locate key phrases inside a script, have the script detect that, and then use that...

View Article

Quick Question about Exporting/Importing to AD

Hey there folks, so I’ve been learning PS for the past 1 and half weeks, and today I wanted to write a simple script but wanted to make it my first ‘big’ script powershell wise. So to start let me...

View Article

SRE: Putting the Pieces Together

Back at it again with my latest installment focusing on the world of Site Reliability Engineering. Enjoy http://noobishsre.blogspot.com/2017/05/sre-putting-pieces-together.html submitted by...

View Article


Whats the best book to learn Powershell, to be used with windows and win server

I read a powershell book in college last year was a 3rd edition and was read i forget the name but anyway, i don’t really remember any of it. Is there a book that would help me learn so i can use...

View Article


Help with removing ACL

Hi Guys, I am new to powershell. Please be gentle. I am trying to remove ACL from a folder with this script. This script work with a shared link for example remote_servertest but it don’t work when I...

View Article

How to clear WINS from Network Adapter Configuration with Powershell

submitted by /u/bhanup6 [link] [comments] The post How to clear WINS from Network Adapter Configuration with Powershell appeared first on How to Code .NET.

View Article

MemberOf import of multiple groups into CSV

Hey Guys, I’m new to reddit and this is my first post! So… Ifound this Powershell Subreddit earlier on and my Problem with Powershell is that I’m trying to create a CSV out of Active Directory with...

View Article

Is it possible to encrypt files using PowerShell?

Title explains it pretty much, I’m trying now to encrypt a .txt, I thought about using maybe Python to do that, but heck, if I’m working with powershell I might aswell jsut try to do everything with...

View Article


Script works in ISE, but not PowerShell

Hello all, first time posting here but I’ve run into a brick wall! To give some context, I’m very new to PowerShell so I probably make a lot of rookie mistakes in my scripting, but it’s a learning...

View Article

Dealing With Change of Time When Generating URI

Quite new to Powershell so please go easy on me… I am trying to write a script which downloads a CSV every day at a specific time. The File format is as follows: payroll_yyyy_MM_dd_HH_mm_ss_add.csv...

View Article


Pulling software versions from a list of systems including a progress bar or...

Well, guys, I’m back again. Sorry for asking more questions than I contribute to this sub, but the more I learn the more helpful I can hopefully be one day. As the title states, I’m trying to pull...

View Article

PoSH v2 Ping/DNS tool. Improvements after initial post!

Hello everyone. I’m back with a new version of a PoSH v2 ping/dns tool. Got a lot of great feedback with the previous post and here is the result of that feedback. Looking for more input this time...

View Article


Function to accept some, but not all, input provided by user.

I’m not sure how else to put this, or I’m overthinking my problem. I have a function (lets call him Get-Stuff). Get-Stuff has four params listed. All of his params from the commands he’s populating...

View Article

newbie piping question

I am trying to send an email if there is a specific string inside a textfile. But I can’t figure out how to coordinate the Select-String and the IF command: $targetFile = "test.txt" Get-Content -Path...

View Article

PowerShell Core 6 Beta.1 Release

submitted by /u/michaelshepard [link] [comments] The post PowerShell Core 6 Beta.1 Release appeared first on How to Code .NET.

View Article
Browsing all 8793 articles
Browse latest View live