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

Group Membership question

I have a script that helps me control group memberships. It works mostly by lumping everyone from an OU in a corresponding group. E.g., users in OU #5 are members of Group #5. If a user is moved from...

View Article


Select matching regex out of a string

I feel like this should be easy, but I can’t find the way to do it. I’m pulling down a webpage, and in the HTML, I’m looking for a specific string. I want to match the date (for later comparison) in...

View Article


Is testing possible?

I am thinking about creating a series of tests for our web releases and am wondering if it is possible through powershell. We have several locations all with their own local web servers and when we...

View Article

Episode 316 – PowerScripting Podcast – Jeffrey Snover from Microsoft on Open...

submitted by /u/alinroc [link] [comments] The post Episode 316 – PowerScripting Podcast – Jeffrey Snover from Microsoft on Open Sourced PowerShell v6 appeared first on How to Code .NET.

View Article

Noob with a question regarding getting a uri from array of links from a webpage

So yes I’m a noob. I’m using this small project learn and increase my fluency and problem solving skills in PS. The situation is that my mother wants to save these mp3’s which are found in the html...

View Article


PowerShell/PSTelemetryMethods.cs on GitHub

link to source code is here: https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/utils/PSTelemetryMethods.cs I came across this file while perusing the codebase in...

View Article

How do you organize your personal scripts in git?

I’ve never been in a work environment that used source control and I’m forcing myself to learn it as a habit. Since I have no colleagues to learn from, I’m not sure of the best practices to use. Do...

View Article

How do I hide the c: prompt when using a menu? Just want the user too se the...

submitted by /u/Mskews [link] [comments] The post How do I hide the c: prompt when using a menu? Just want the user too se the options i present and pick a number. appeared first on How to Code .NET.

View Article


How to get started using Visual Code Studio on mac?

Hey guys so I’m on OSX and just downloaded VCS with the PowerShell extension but I have no clue how to get started because I don’t have any folders/resources to open Can anyone help me get started?...

View Article


Help with converting vbs to powershell

I found a vbs script that reads a registry entry and converts the value to text for currently used Windows key. here’s the code Set WshShell = CreateObject("WScript.Shell") MsgBox...

View Article

Default Foratting for Custom Object

Hi all, So I’m trying to update the default default format for a custom object. The only article I’ve been able to find on this is:...

View Article

Re-Thinking Positional Parameters

submitted by /u/michaelshepard [link] [comments] The post Re-Thinking Positional Parameters appeared first on How to Code .NET.

View Article

powershell dsc single deployment

Hi, I am using DSC to deploy an application, but have some questions. If a deployment fails, DSC will keep retrying which is overwriting certain files I edit after the deployment. Is there a setting...

View Article


Get Function name within module

I am trying to create a function that standardises our verbose/debug messages and I am having problems getting the function name. Obviously this will be part of another function, so it needs to look...

View Article

SCCM and Powershell – Maintenance script for software updates groups

submitted by /u/TimmyIT [link] [comments] The post SCCM and Powershell – Maintenance script for software updates groups appeared first on How to Code .NET.

View Article


Powershell on Linux – new-cronjob

Guys, I was pretty excited to hear the PS open source news last week. I’ve watched some of the Technet demos with Snover and team. I noticed one of the demo’s showed a new PS cmdlet on Linux for...

View Article

Exchange 2010 deleted items not purging even after the retention days –...

submitted by /u/frenchitguy [link] [comments] The post Exchange 2010 deleted items not purging even after the retention days – Script updated appeared first on How to Code .NET.

View Article


NIC Teaming

Hey /r/Powershell, Looking at an automated deployment for about 50 sites. I’m doing this: The script gets an input from the user which is where the following variables come from $Select1, $Select2,...

View Article

PowerShell 3.0 to 5.0 Update

Hey all, Quick question: Is it possible to update PowerShell 3.0 straight to 5.0 using the WMF 5.0 package from Microsoft? Or do you still have to update to 4.0 before 5.0? Thanks! submitted by...

View Article

Recall part of script

Hi, is there a way to re-call a part of a script that was previously run? I know ‘Do’ will run something till ‘until’ has happened. But is there a way to tag a large part of my script and re-call this...

View Article
Browsing all 8793 articles
Browse latest View live