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

NTFS Permission Scanner – Logs into SQL!

submitted by /u/ainsey11 [link] [comments] The post NTFS Permission Scanner – Logs into SQL! appeared first on How to Code .NET.

View Article


Debugging a PS Script that is being called from C#

I have a PowerShell script that I am calling from a WPF app. Now this PS script will bring information regarding shared folders on a server. Along with this option, I have other options which, when...

View Article


Create menu using results from cmdlet

I’m trying to build a semi-recursive menu, and I feel that powershell would be simple enough to maintain, once it’s built. I would like to be able to query a list of child OUs from AD, easy enough....

View Article

Not Totally Powershell, But a Quick Question

SOLVED Found this article on serverfault “Powershell has some high weirdness when mixing external commands and quoting.” PS C:>icacls "C:/foo” /grant:r "Users“:(F) Above worked. I’m working on an...

View Article

Open Forum and Lightning Talks – St. Louis PowerShell User Group (Saint...

submitted by /u/michaeltlombardi [link] [comments] The post Open Forum and Lightning Talks – St. Louis PowerShell User Group (Saint Louis, MO) appeared first on How to Code .NET.

View Article


Find all users (or computers) mapped to a specific printer

I’d like to figure out which users or computers are mapped to a specific network printer. Would anyone mind assisting me in figuring out how to do this? I understand that I can find mapped printers in...

View Article

Grabbing a list of AD users that have not logged in from 6 months ago.

Trying to clean up my AD OUs and going through and disabling accounts that may have slipped through the cracks. I want a list of all accounts that were last logged on longer than 6 months ago. So far...

View Article

Trying to check multiple SMTP addresses

So I am trying to check multiple SMTP address for a script I am writing. I can see all of them if I dump into a pscustomobject and I cannot figure out how to check multiples and throws false every...

View Article


Help me /r/powershell, you’re my only hope

So we’re trying some more functionality to our user creation script by adding the ability to add computers to the logonworkstations attribute. We already use this but aside from some standard general...

View Article


PHP > AD Account Creation

Hey all, I’ve been working on a ‘New User Provisioning’ tool to streamline the account provisioning process for our Help Desk. I’ve got pretty much everything ‘finished,’ however, I cannot seem to add...

View Article

Hiring Powershell/DevOps Engineers in SoCal! (No Remote)

Hello again! You may remember me from my last open position which I was able to fill with a redditor! Well, we keep growing so I’m back for more:...

View Article

2012 R2 DFSR through Powershell

Hi all, I’ve successfully created a new replication group with a name in the format “fqdn.domain.comRGOrganisationRGChild”. When attempting to create a new Replicated Folder, and specifying the...

View Article

Script stops with no errors

I’m trying to use the following script to run through URLs listed on an excel file and wait until IE is closed before opening up the next URL but it seems to stop after the first website with no...

View Article


Looking for a way to make sure a session to our exchange server is open...

I have a few different scripts that I want to present to the rest of my team. They all revolve around user AD and exchange accounts. I want to add some sort of function that checks to see if a current...

View Article

Wanting to automatically execute -AD switch, unless -computer or -list is...

submitted by /u/cleverghost [link] [comments] The post Wanting to automatically execute -AD switch, unless -computer or -list is defined appeared first on How to Code .NET.

View Article


Problem with GUI in powershell…never done this before

I’m trying to make a GUI to make it easier for the help desk to remove multiple people from multiple groups. Please don’t get caught up in why i’m doing a GUI for this, i know it would be extremely...

View Article

putting files and directories from text file into different arrays

I am trying to get-content on a .txt file that looks thusly C:somedirectorydirectory1 C:somedirectoryfile1.txt C:somedirectorydirectory2 C:somedirectoryfile2.pdf and put the files into an array on one...

View Article


How do I write 100 different student names to 100 blank Excel report cards?

New to powershell and scripting in general. I have 100 BLANK student report cards. They are 100 copies of the same excel file. And each filename is the student’s name. I would like to use powershell...

View Article

Viewing Mapped Drives for all Users on Domain

I need to be able to provide a list of all the mapped drives users on the domain have set up. is this easily done or do things need to be put in place already on the domain controller end to be able...

View Article

Capability question

I work in the DOD and am curious if it would be possible to use powershell to disa stig a system? It seems like it should be but Google is failing me in finding resources for this. submitted by...

View Article
Browsing all 8793 articles
Browse latest View live