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

Processing CSV Data in PowerShell

submitted by /u/_Unas_ [link] [comments] The post Processing CSV Data in PowerShell appeared first on How to Code .NET.

View Article


Powershell script to remove user access from SharePoint

https://ratsubsharewall.blogspot.com/2017/09/powershell-scripts-1.html submitted by /u/Rathanavel [link] [comments] The post Powershell script to remove user access from SharePoint appeared first on...

View Article


How to use Get-Content with user input

So I’m brand new to powershell, and I’m trying to ask the user for a file name and I need to import it(the file already exists) and then format it so it has the header of each column at the top and...

View Article

Job opening

submitted by /u/toregroneng [link] [comments] The post Job opening appeared first on How to Code .NET.

View Article

Image may be NSFW.
Clik here to view.

Prepend Column

Hi Guys, here my code: $dclist = Get-Content 2dclist.txt $exportlocation = "c:tmpdnsforwarders.csv" Foreach ($DC in $DomainControllers) { Get-DnsServerForwarder -ComputerName $DC | Export-CSV -Append...

View Article


Bryan Cafferky at 9/12/17 Hartford Powershell User Group meeting

submitted by /u/chuckboycejr [link] [comments] The post Bryan Cafferky at 9/12/17 Hartford Powershell User Group meeting appeared first on How to Code .NET.

View Article

Calling script from CWD accounting for spaces.

Hi all, I want to launch a Powershell script from within a Powershell script. I want to be able to launch said script from the current working directory and account for spaces. This is what I have...

View Article

Creating a Balloon Tip Notification Using PowerShell

submitted by /u/Net-Runner [link] [comments] The post Creating a Balloon Tip Notification Using PowerShell appeared first on How to Code .NET.

View Article


Is there anything in the dns class system.net.dns that isn’t limited to one...

I am having trouble figuring this out. Everything I try you have to specify one IP to get a host name back. What if I have a set of IPs? submitted by /u/mask_off [link] [comments] The post Is there...

View Article


PowerShell Core v6.0.0-beta.7 Released

submitted by /u/markekraus [link] [comments] The post PowerShell Core v6.0.0-beta.7 Released appeared first on How to Code .NET.

View Article

Checking if MS Office is installed

Hello, I have approx 2300~ servers I need to see if Office is installed on. I am running through a list with Invoke-Command and Get-ItemProperty, but I was wondering if there was a faster or easier...

View Article

Exporting data to .CSV file.

Hi guys, I’m new to Powershell and I’m trying to create my first script but I seem to be having troubles. Please help! I have this text file with AD usernames, which I use this command to check the...

View Article

Getting computers with last logon over 90 days.

I am trying to get a list of computers that have not contacted a domain controller for over 90 days. I have the below but I want to be sure this is correct as I end up with loads of results (This may...

View Article


GitHub PS – Convert PowerPoint to pdf

submitted by /u/Net-Runner [link] [comments] The post GitHub PS – Convert PowerPoint to pdf appeared first on How to Code .NET.

View Article

Some interesting subreddit stats for the last year

Link: https://www.reddit.com/r/subreddit_stats/comments/701m0q/subreddit_stats_powershell_top_posts_from/ submitted by /u/KnifeyGavin [link] [comments] The post Some interesting subreddit stats for...

View Article


Where is the PowerShell Dallas/Plano meeting at? It’s this morning at 0800.

submitted by /u/SysOpsNinja [link] [comments] The post Where is the PowerShell Dallas/Plano meeting at? It’s this morning at 0800. appeared first on How to Code .NET.

View Article

Doing More with PSReadline History – Part 2

submitted by /u/darklightedge [link] [comments] The post Doing More with PSReadline History – Part 2 appeared first on How to Code .NET.

View Article


Searching for a task name in Scheduled Tasks

I’m having trouble figuring out a way to search for a semi generic scheduled task name. What I have so far is: “Get-ScheduledTask -Computername compname | ? TaskName -eq “Daily 2am”. That will find...

View Article

Copying all content in a http share using Powershell?

Is there a way to do this? I’ve been researching some and nothing has popped out really. I found some baselines to start a script but im not too proficient in powershell. I’m wanting a server in our...

View Article

[HELP] Encrypt SQL Login Info in script

Hey all, In my scripts I have SQL queries and inserts. As shown below. How would I go about making my username and password encrypted so users cannot right click the script and edit it to read the...

View Article
Browsing all 8793 articles
Browse latest View live


Latest Images