Version Control – Reverting Question?
So I’ve decided its time for me to get some sort of version control going for all my scripts I have in place. I’m totally green to all things GIT etc and have been trying to pick it up but I’m having...
View ArticleHow to manage DSC?
So I love DSC, it is so easy to write but the issue is quite simply this, no GUI or UX to even just look at reports! It is driving me batty, to be honest with everyone. I would love to just pop open a...
View ArticleList cmdlets for a specific query
Just after some advice. I am a system admin for a network with around 700 workstations and 2000 users in a school. I use the GUI all the time and have spent hours (days) trying to find tools that let...
View ArticleConvert cURL multipart/form-data to Powershell?
Is anyone able to convert the following cURL command into Powershell Invoke-WebRequest? curl -v -u user@yourcompany.com:test -F “helpdesk_ticket[attachments][][resource]=@/path/to/attachment1.ext” -F...
View ArticleHow to create an ODBC connection with stored credentials
I need to create an ODBC connection but cannot seem to get it working, because it does not store the login credentials. I’ve tried to store the password on the “ODBC.INI” key in registry, in plain...
View ArticleForms with Ticker and Button Click at the same time?
I’m still learning PowerShell but have built a Windows Form that has a ticker that every ten seconds invokes a remote computer to run some PowerShell code to do a few checks and return various...
View ArticleHelp gathering member of info for entire domain.
I am trying to gather member of info for all the enabled AD accounts in my environment and export to a csv. I tried to add ,memberof after manager and it didn’t work. Get-ADUser -Filter {Enabled -eq...
View ArticleHow can I have a local admin user run powershell in an elevated prompt by...
Hi sorry not sure it’s exactly a PS question but I figure if anyone would know it would be someone here. As above, I have a user in the local admin group. This user is used by some orchstration we...
View ArticleRequest – Create printers on a print server from a list
Does someone have a script or a way for me to add a list of network printers to a new print server. This is being built from the ground up there is nothing to migrate from. Windows server 2016. Thanks...
View Articleexecuting java program
So I have tried many different ways and not getting it working. I need to call this java program using a specific java path, this path has spaces in it. The program also uses a path to some configs. I...
View ArticleGet-Stat output formatting
I’ve been banging my head up against a wall trying to figure out how to change the output formatting for this. I have a need to deliver realtime CPU usage (average mhz) stats of various VMs to an...
View ArticleCreate dynamic distribution group contacts in O365
I am trying to make a contact in O365 to coincide with each of our on prem Exchange 2013 dynamic distribution groups. The script I found online finds all of our dynamic distribution groups and will...
View ArticlePS tools and good habits.
Hi. I’ve been writing PowerShell scripts for my Team/company for half a year now and I’ve learnt quite a lot and some of my scripts are 100s of lines long and getting complicated. My tech lead has...
View ArticleHow to: Custom Object with [] addressing
Hi, I have a requirement to create a testing framework for some PowerShell. The piece of PowerShell to be tested takes an object from an external source, that I don’t have access to, as a parameter so...
View ArticlePrinters installed on clients from print server. Is there a way to delete a...
I’ve had some luck with this on local machines using a mixture of Remove-PrinterDriver and other methods, but nothing works so far on remote machines. Any suggestions? submitted by /u/ryanjoachim...
View ArticleAccessing subreddit links via PowerShell
submitted by /u/dharmatech [link] [comments] The post Accessing subreddit links via PowerShell appeared first on How to Code .NET.
View ArticleRun .diagcab silently with Powershell
Hi guys, I’m looking for help to run the o15ctrremove.diagcab in Powershell. I found the script made by Microsoft but it only runs the .mini.diagcab and not the .diagcab extension. Before you tell to...
View Articlestruggling to edit registry key with PS via GPO?
Hi there, I’m trying to edit the HKLM:SoftwareMicrosoftWindows NTCurrentVersionRegisteredOwner key with the current logged in AD name, using PS. I have come up with this (pastebin link:...
View ArticleJust released PowerShell for VS Code v1.3.0 with CodeLens support for Pester...
submitted by /u/daviwil [link] [comments] The post Just released PowerShell for VS Code v1.3.0 with CodeLens support for Pester tests and function references! appeared first on How to Code .NET.
View ArticleReading remote registry keys recursively
Hey Reddit, I’m looking for an easy way to audit things like SSL/TLS or cipher settings without having to login to a billion servers individually. For example, a quick and easy: Cd...
View Article