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

Trying to query OU then get serial info

So I had the idea it would be a fun, short script to query a specific OU in Active Directory then try to pull all the serial info for a file. I don’t need this information per se but thought it would...

View Article


How-The-Heck-To: Cross-File / Nested Partial Pull DSC Configurations, with...

Environment is WMF5, Server 2012 R2 Pull Server and DSC clients. I’m trying (and failing) to devise a DSC pull configuration environment to meet a few criteria. I can achieve either of these two...

View Article


Datagrid w/ combobox – what to pass?

I currently have a PS Form that has a datagrid on it with 4 columns created through the designer: text | combobox | text | text Now when I try to add a new row via $datagrid.Rows.Add(string, ???,...

View Article

List Full Name, Username and Assigned Machine from Security OU

Background: Trying to get a script that will pull members from a group and list their Full Name, Username and PC. Computer Description is set as user’s Full Name. Display Name of AD User is set to...

View Article

[WIP] PowerShell Class wrapper for Outlook clients

submitted by /u/_Unas_ [link] [comments] The post [WIP] PowerShell Class wrapper for Outlook clients appeared first on How to Code .NET.

View Article


Replacing strings in a file with the file name? And then adding a string?

I used to be decent at PowerShell (I’m not a computer person) – but I’m just failing so completely at this. I know forums like this appreciate it when you bring at least a partial script to the table,...

View Article

How do i find stray users added to security on folders in network share?

Hi Guys, I have searched for hours, not being able to find a script that looks through folders and sub folders and list stray users added to the permissions tab on those folders. The previous admin...

View Article

Question regarding a script

Hello, I need to get a list of users in a CSV file and set passwordneverexpires as false. Here is what I got so far: import-csv C:filetopath.csv | ForEach-Object {Set-ADUser -Identity...

View Article


Weirdness with Get-Date

So I was testing a script today, and noticed- “Get-Date -Format d” as my regular (non domain admin) user returns regular date- 24/11/16 “Get-Date -Format d” in a new Powershell session (started with...

View Article


Making a script that writes like its command promt (like cmd’ish)

I want to make a script where i would run some commands in powershell.exe , Not sure why but when i try to do it in ISE nothing happens, but if i save the script and run it with powershell.exe it runs...

View Article

Free Online PowerShell GUI Designer

submitted by /u/nepronen [link] [comments] The post Free Online PowerShell GUI Designer appeared first on How to Code .NET.

View Article

Powershell code that watches for an error message

Hi Guys, I was wondering if it was possible to run a powershell script when a certain error message appears. This problem has arisen due to an error a lot of people get when they try to connect to one...

View Article

Move folder by .LastWriteTime of file.

Beginner here. I need to class folder by years. I got c:Dir1ManyRandomFolderDir*Dir3 I want to Move Dir* with all his content if File has been changed in 2012 for exemple So far i made Get-ChildItem...

View Article


Article about renaming files (string manipulation). Anything you’d add/change?

submitted by /u/joakimbs [link] [comments] The post Article about renaming files (string manipulation). Anything you’d add/change? appeared first on How to Code .NET.

View Article

PowerShell Studio is 20% off for black friday

submitted by /u/sysadminsuperman [link] [comments] The post PowerShell Studio is 20% off for black friday appeared first on How to Code .NET.

View Article


[Suggestion] Alias “clip” to Set-Clipboard by default.

submitted by /u/hmmwhatsthisdo [link] [comments] The post [Suggestion] Alias “clip” to Set-Clipboard by default. appeared first on How to Code .NET.

View Article

Image may be NSFW.
Clik here to view.

Obvious features missing in Powershell Studio?

I’m currently trying to decide on which IDE to purchase. At the moment I’m using PowerGUI script editor but since Dell dropped development on the software a long time ago, I think it’s time for...

View Article


Get informations of only E3 licenced users in Office365

Hi Guys, I have been using script for Office365 Licence Tracking but its returning both office365 licence and unlicenced users. I want to fetch licenced users. Thanks in advance $OutputFile =...

View Article

PowerShell Module mit Visual Studio Code laden

submitted by /u/vMarkus_K [link] [comments] The post PowerShell Module mit Visual Studio Code laden appeared first on How to Code .NET.

View Article

Need help with a script to run commands on a remote server

Hi all. I am trying to create a script where inputs are: Username Name of remote server Command you want to run This is what I’ve got so far: $username = Read-Host -Prompt "Type in your username"...

View Article
Browsing all 8793 articles
Browse latest View live