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

Determine last logged in user without WMI?

Hi, Don’t suppose any powershell gurus out there have a script which can check the \computernamec$users folder of remote machines from a txt or csv list, and report the last logged in user to a file,...

View Article


Single File Dos/PowerShell script.

This is a classical batch script that becomes a powershell script. I was thinking about building a PowerShell script that will decompress and install embeded powershell scripts without using...

View Article


New Script for Hybrid Management – A single script to connect to Local AD,...

This new script will connect to the following services without MFA – Exchange Online Exchange On-Premise Active Directory On-Premise Azure AD v1.0 Azure AD v2.0 SharePoint Online Skype for Business...

View Article

Learning Powershell – Best Book / Resource Available?

Hey all, I am currently beginning to transition into another role at my company that requires a little Powershell knowledge and scripting. I have used Powershell to the length of googling commands...

View Article

Report Uptime & Patch Searching

I cobbled this script together today after the whole WCry issues came up. Thought it would be useful for future endeavours. This will do simple a simple Uptime report and also has the capability to...

View Article


More wcry… yawn – but seriously here’s a nifty script to check your AD fleet...

I quickly mashed this script together today to check our desktop fleet. Other Sysadmins may want to re-use this script. Enjoy! btw… don’t have time to check if others have already posted a similar...

View Article

Replace String in Array. Help please.

Hi guys, I really need your help regarding some basics: I am reading data from an oracle database and go the information like name, company, telephone stored in a variable. The problem is that the...

View Article

running scripts from scripting center in a ISE window

At my place of employment, we have no remote powershell access. Execution policy is remote signed (but our request for a code signing cert was denied). How can I run scripts from like the Microsoft...

View Article


Image may be NSFW.
Clik here to view.

Import-Module works only once, I have to restart Powershell_ISE to use it again

Hello Powershell-Community, I have a question. I have a script that imports a module in the Begin{]-Block of a script of mine. Begin { Import-Module "\[PATH]11_Invoke-ParallelInvoke-Parallel.ps1" } If...

View Article


Complete noob in need of some help to know if a script is doable or not.

Hello guys, Just wanna start by stating that you guys are gods to me, far above my comprehension of powershell scripting. That said, I would like to know if a certain powershell script can be created...

View Article

WSUS GetSummariesPerComputerTarget – How to Exclude Not Approved Updates from...

I am attempting to replicate the “Computer Tabular Status for Approved Updates” report but seem to be unable to match the output exactly. The WSUS report appears to exclude updates that are “Not...

View Article

Another WCry Quick Fix

In the spirit of the season, I thought I’d share my immediate method for mitigating some WCry ransomware holes (without the patches, of course). It should choose the appropriate OS version for you....

View Article

I found this behavior strange, anyone care to explain? blog: PowerShell and...

submitted by /u/tomtorggler [link] [comments] The post I found this behavior strange, anyone care to explain? blog: PowerShell and Variable References appeared first on How to Code .NET.

View Article


ChatOps with PowerShell and Errbot (PSConf2017)

submitted by /u/MattHodge [link] [comments] The post ChatOps with PowerShell and Errbot (PSConf2017) appeared first on How to Code .NET.

View Article

When to use Write-Ouput and Write-Host

I often hear that the best practice is to use Write-Output and never use Write-Host. But when I want to give feedback to the user as to what the script is currently doing, wouldn’t that be the...

View Article


Pipelining to Get-WMIObject – need help with a concept

Hi Everyone, I’m going through some Microsoft Virtual Academy basic training for Powershell and one of the examples given (by the creator of powershell) is stumping me a bit. He gave an example that...

View Article

First attempt at web scraping, trying to format for csv.

I’m a PowerShell and programming noob, so I’m learning in an attempt to automate daily tasks. Basically, I’m trying to get some info from a site and then export to a csv with some additional...

View Article


Add new script to NSClient++ for Nagios

I created a function to add a new script to NSClient++ for Nagios on a local or remote computer. It copies your script to Script directory and creates a new entry in nsc.ini under [Wrapped Scripts]....

View Article

Renaming files if matches in list

Hey everyone, I am having trouble with a task I have been set and hoped someone here could help me please. Basically we have a folder with files and a spreadsheet with a column that contains part of...

View Article

Powershell.org TechSession – Best Practices for Script Design (Tools n...

submitted by /u/vwpcs [link] [comments] The post Powershell.org TechSession – Best Practices for Script Design (Tools n Controllers) appeared first on How to Code .NET.

View Article
Browsing all 8793 articles
Browse latest View live


Latest Images