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

underthewire.tech wargames, anyone tried them? I’m stuck on century10

http://www.underthewire.tech/wargames.htm I have tried the century one so far and it is pretty good little puzzle. I am stuck on century 10 though. The password for Century11 is the 10th and 8th word...

View Article


Shortest Script Challenge – Time since oldest file created?

Previous challenges listed here. How many seconds have passed since the creation of the oldest file in your current working directory (recursively)? Rules… You need to recurse through all...

View Article


I wrote a graphical Minesweeper in 100% PowerShell (using MVVM and WPF, see...

submitted by /u/NuvolaGrande [link] [comments] The post I wrote a graphical Minesweeper in 100% PowerShell (using MVVM and WPF, see comments for screenshots and details) appeared first on How to Code...

View Article

I wrote a graphical Minesweeper in 100% PowerShell (using MVVM and WPF, see...

submitted by /u/NuvolaGrande [link] [comments] The post I wrote a graphical Minesweeper in 100% PowerShell (using MVVM and WPF, see comments for screenshots and details) appeared first on How to Code...

View Article

Need to disable users with expired passwords, and append to the description...

Will I be able to do this with the following? Get-ADUser -Filter * -Properties PasswordExpired | Where-Object PasswordExpired | Disable-ADAccount Wasn’t sure where to go next as far as appending to...

View Article


Set “Users” permissions on drive

Im trying to figure out how to set “Users” with read access to the D drive but I am not having much luck finding what I am looking for. I just want to be able to check that “Users” has permissions on...

View Article

What is the use of verb’s alias ?

Hi ! According to this Microsoft article https://msdn.microsoft.com/en-us/library/ms714428(v=vs.85).aspx , it seems that each common verb have an alias. (eg: “Where” alias is “wh”) I can’t see any use...

View Article

so, can i reference a user using email address? not upn, not sam, not guid

Trying this out, and for some reason i cannot seem to pull up a user by referencing email address.. It cant be this complicated right? Import-Module ActiveDirectory $USERS = Import-CSV...

View Article


How to disable the greenish progress bar

Hello, first, I do realise the title is dumb, I just couldn’t come up with anything better. Also, noob alert! When I run Update-Help, Install-Module etc., a greenish progress bar appears near the top...

View Article


Powershell Remoting Bible

submitted by /u/fedechksum [link] [comments] The post Powershell Remoting Bible appeared first on How to Code .NET.

View Article

Stripping permissions from specific file types and setting new permissions.

Hey Guys, Having some issues getting this one going. I have a directory on one our file servers that contains all of our custom application folders. I’m looking to strip access to all the .exe’s,...

View Article

Image may be NSFW.
Clik here to view.

Output error log?

I have a script “working” with major help from my Google searching and playing around, but I wanted to know if there is an easy way to get an error log file as well. Here’s the basic script. $out =...

View Article

Getting Started with PSReadline – Part 1

submitted by /u/Net-Runner [link] [comments] The post Getting Started with PSReadline – Part 1 appeared first on How to Code .NET.

View Article


Help with Callstack

Take the following simplified code, function test2 { Write-Output -InputObject ([int]5) } function test1 { Write-Host "the results are: $(test2)" } When using Get-PSCallStack from within test2, I can...

View Article

Hi All

I have a question. I have a .imp file that contains the below content. 00 Abc 11 123.45 22 08092017 44 Firstrecord -1 00 Abc 11 345.67 22 08092016 44 Secondrecord -1 00 MNO 11 789.10 22 03082015 44...

View Article


Pipeline Variable help

I am using data from a CSV and then checking the accounts against Active Directory to get more information and outputting to another CSV. My problem is that when the account doesn’t exist the script...

View Article

How to update an attribute for AD users with a csv import?

I’m getting started with powershell. I found scripts from searching, but I learn best from doing something that’s relevant to my situation and then breaking it down. That said, here’s what I got so...

View Article


DSC Future Direction Update

submitted by /u/PowerShellChallenge [link] [comments] The post DSC Future Direction Update appeared first on How to Code .NET.

View Article

Question – How to recurse group memberships in AD

Powershell novice here trying to figure out whats wrong with this script trying to get group members from a list and output members and titles, it appears to work but isn’t pulling in all the data so...

View Article

Exe files not downloading as exe.

Hey guys. I’m trying to write a script to automate downloading and installing a list of programs from the internet. I’m somewhat familiar with the different methods to download files such as...

View Article
Browsing all 8793 articles
Browse latest View live