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

Jenkins, Powershell, AWS and Cloudflare Automated Deployment. (Part 1)

submitted by /u/I_script_stuff [link] [comments] The post Jenkins, Powershell, AWS and Cloudflare Automated Deployment. (Part 1) appeared first on How to Code .NET.

View Article


Get serial number and Hostnames of connected domain devices

Hey /r/PowerShell ! I am wondering how to grab all Hostnames & their serial numbers of connected devices beginning with Computer1 to 1000 and then list them into an Excel document with 2 columns...

View Article


Help with querying multiple paths

Hello! I am wondering if someone can assist me in modifying this powershell script in order to query multiple paths at once. If i put one UNC path after the $path variable it works. I tried commas in...

View Article

Here’s the second step on our journey to world domination through scripting.

submitted by /u/ColeMcDonald [link] [comments] The post Here’s the second step on our journey to world domination through scripting. appeared first on How to Code .NET.

View Article

Report on Disk space for servers

I can’t take credit for the only part of this that is actually cool, that comes from this guy: https://github.com/v-team/powercli-toolbox/blob/master/Get-ResourceMap.ps1 (the function to create a...

View Article


Word Finder script

Hello all, I’m trying to write a script that will search through a huge list of words (12,777 words) and filter them out. The filter I’m working on now is 1) 6 characters long, 2) The 2nd and 4th...

View Article

Script to download MS updates?

I was wondering if anyone has worked on a script to download monthly patches for Windows? My org currently manually downloads the patches, which is a huge pain to do point and click. Thanks in...

View Article

Secure String alternatives in a FIPS environment?

Hi /r/powershell, I was doing some work over the weekend in testing an email script, and noticed that securestring functions come back as not FIPS compliant. I was wondering if anyone has had to work...

View Article


PowerPoint automation

I’ve been hacking around with code from the web and for the life of me I can’t figure out how to tell which slide number I’m on. My aim is to load some slideshows, have it transition to the end using...

View Article


Add array to excel object?

I have an array that looks something like this: $Array = @( ,("#","Last Name","First Name","Title","Address") ) $Array += ,@("1","Smith","John","Contractor","Home") I’m wanting to add it into an excel...

View Article

DSC Requirements?

Hello! I am looking to create a testing environment for DSC. Before I actually implement it I would like to confirm that I have researched the proper requirements and understand them correctly....

View Article

Episode 319 – PowerScripting Podcast – MVPs Don Jones and Adam Bertram on Pester

submitted by /u/alinroc [link] [comments] The post Episode 319 – PowerScripting Podcast – MVPs Don Jones and Adam Bertram on Pester appeared first on How to Code .NET.

View Article

My take on a weekly reboot script. Its run via the task Manager. I saw...

<# 1. Gather list of computers from an OU in AD 2. Gather list of computers from a group in AD, this is the exclude list 3. Omit all computers from list 1 that are in list 2. 3b. Maybe we can...

View Article


Enable Onedrive account- Give admin permissions to their manager

I currently have this – $adminUPN=”account@domain.com” $orgName=”domainname” $userCredential = Get-Credential -UserName $adminUPN -Message “Type the password.” Connect-SPOService -Url...

View Article

How to pull logged on users active directory information?

Basically I want to create a pop up when the users logs on if the users account is within 30 days of the expiration date. I know how to create the pop up and I know the command $env:UserName pulls the...

View Article


Oracle point-of-sale software…

Looks like my company is moving to using the Oracle X store and X Center software packages. Just curious if any of you guys and deal with this on a regular basis and if you have any couches or...

View Article

Password expiry dashboard

Thought there might be some interest in a tool ive created for my work, it uses powershell to gather user attributes for those whose password will expire within 14 days and saves them to a json file....

View Article


Create notification in Windows 10

submitted by /u/toregroneng [link] [comments] The post Create notification in Windows 10 appeared first on How to Code .NET.

View Article

Problem with while logic(forcing an integer)

I am trying to clean up some code that I’ve written. I’ve been asked if I could further foolproof the logic of a switch that I have within it, which forces the user to enter a number that corresponds...

View Article

AzureRM Wrapper

Hi everybody! I wrote a little wrapper module for AzureRM that makes working in an interactive console a little easier. This module will modify your prompt to add the name of the subscription you are...

View Article
Browsing all 8793 articles
Browse latest View live