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

Simple USB Synchronisation script

Hey all! I just made very plain and simple usb synchro script. it does NOT check the lastwritetime and update the folder, it is something i made for my boss and his specific wish was to just copy the...

View Article


Get the List of installed softwares on remote computers with PowerShell

submitted by /u/kunaludapi [link] [comments] The post Get the List of installed softwares on remote computers with PowerShell appeared first on How to Code .NET.

View Article


User cannot see all scheduled tasks via Get-ScheduledTask

Hello everyone, i try to write a script which reads all my custom scheduled tasks and the result of them. Running the script as Administrator i can see all my tasks in my custom folder. If i run it as...

View Article

Code works, until I put it in a function

Hi, I have some code which make an REST API call to Airwatch: Function Get-DeviceswithPublicApp ($locationID, $appID) { $APIURL =...

View Article

Using Plaster to create a PowerShell Script Module template

submitted by /u/mikefrobbins [link] [comments] The post Using Plaster to create a PowerShell Script Module template appeared first on How to Code .NET.

View Article


4 Whitelisted Apps in my script are being removed, and I don’t know why.

Hello everyone, I wrote a script that debloats Windows 10, mainly as a way to teach myself PowerShell, and it has worked great for the past few months. However, lately I am being told that the 4...

View Article

Is there a faster way to do this?

Hi all, my first post here. Forgive me if this sort of thing has been asked, nothing came up in a search. I’m wondering if there is a faster way to do what this code does. foreach ($s in $Allsessions)...

View Article

Help formatting output of select-object

Not sure if I worded the title properly or not, but I’m trying to search ADGroups in a specific OU and return members and memberof then export to csv. $DateTime = get-date -f "yyyyMMdd-HHmmss" $path =...

View Article


Powershell query MariaDB

I’m struggling to understand how to query data from a MariaDB instance. I’d thought I’d got it but fell at the final hurdle. #connection $driver = "MySQL ODBC 5.3 ANSI Driver" $Server = "ip.add.re.ss"...

View Article


Any suggestions on the best way to remove various versions of Firefox that...

The uninstall string is located in the current user’s hive, or alternatively accessed via hk_userssid remotely when the user is logged in. The actual uninstaller is located in userappdatalocal I can...

View Article

Retrieving data from continuous Get-Counter as a background job

Hi everyone, First, let me give some context to my issue. We have some headless tests which we are running as part of a TFS 2017 vNext build definition. Every test suite, the server is launched prior...

View Article

How to pass switch parameter through Invoke-Command?

I’ve tried: Invoke-Command -ComputerName RemotePC -filepath C:myscript.ps1 -ArgumentList param1, switchparam:$true Invoke-Command -ComputerName RemotePC -filepath C:myscript.ps1 -ArgumentList param1,...

View Article

DLL updating in powershell

So i want to theme windows and multiple DLL’s and re-theming the icons myself will take a very very long time, so is it possible that a PowerShell function can replace colors of .ico files in DLL’s,...

View Article


Monitor external forwarding on Office 365 mailboxes in all customer tenants

submitted by /u/fbsau [link] [comments] The post Monitor external forwarding on Office 365 mailboxes in all customer tenants appeared first on How to Code .NET.

View Article

RFC: A simple sentry.io client I started writing for PowerShell 5.0+

submitted by /u/vtsingaras [link] [comments] The post RFC: A simple sentry.io client I started writing for PowerShell 5.0+ appeared first on How to Code .NET.

View Article


Anyone up for this regex challenge?

I’m testing a script to find SSN patterns in excel files on our network drive. So far my script works using the ImportExcel module. Here is a snippet of what’s in my test file: ssn test field...

View Article

Get-Package returns $null in Powershell core

Perhaps this is by design but I don’t understand why. I’ve tried on two machines and on both it returns nothing. I don’t want to make an issue on the Github page if this is expected functionality....

View Article


Building real-time web apps with PowerShell Universal Dashboard

submitted by /u/l33t_d0nut [link] [comments] The post Building real-time web apps with PowerShell Universal Dashboard appeared first on How to Code .NET.

View Article

Splitting functions into worker and UI portions

Don Jones talks about breaking functions into two. Also here, mainly to handle multiple inputs via parameter and pipeline. That was written a while ago, and I am sure a lot has changed since this. So...

View Article

Best way to work with JSON data

So I need to import 3 json files, they range from 10MB to 40MB in size. Each of them has data that coincides with data in the others. What is the best way to import the data and use it? Right now I...

View Article
Browsing all 8793 articles
Browse latest View live