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 ArticleGet 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 ArticleUser 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 ArticleCode 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 ArticleUsing 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 Article4 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 ArticleIs 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 ArticleHelp 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 ArticlePowershell 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 ArticleAny 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 ArticleRetrieving 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 ArticleHow 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 ArticleDLL 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 ArticleMonitor 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 ArticleRFC: 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 ArticleAnyone 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 ArticleGet-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 ArticleBuilding 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 ArticleSplitting 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 ArticleBest 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