Network profiles in win7
So is there a way to reset the network profile in win 7? I see the get-netconnectionprofile is a option in 8 and 10 and not 7. Also, why would MS not make these commands available for windows 7 when...
View ArticleRemove SMTP from AD attribute
Hello all, I need to remove some SMTP addresses for a domain that will be going away. My plan is to round up the users who are no longer receiving at the address, and put there usernames in a csv...
View ArticleQuick Tip: Using Variables In ActiveDirectory Filters
submitted by /u/tomatwork [link] [comments] The post Quick Tip: Using Variables In ActiveDirectory Filters appeared first on How to Code .NET.
View Article[Help] Script that recursively emails files in a folder one by one, then...
Here’s the goal: I’ve got SCCM creating several reports a week, that are being placed into a common drive folder. I would like to have a PowerShell script that will take each file in the folder, email...
View ArticleFilter text array to select a range
An issue I’ve run across a few times but not found an elegant way to do it is when I’m trying to check the configuration for something that may or may not have a PS module for it (or the PS module...
View ArticleService is stopping on Local Machine instead of Remote Server when running...
I am trying to put together a script that tells me the running services, and then prompts the user to choose the service to restart. I have everything working fine, except for one thing. The service...
View ArticleLooking for a ad update script
I am looking for a script that will update ad users with new information however I need it to find them by USer ID. By which I mean if User111 exists then update its properties with whatever if not...
View ArticleExcel.ApplicationClass doesn’t have a method ‘SaveAs’
According to the google searches that I have done so far, I haven’t seen an instance where ‘SaveAs’ method doesn’t exist. I am trying to open a tab delimited file (.txt), open it in excel and then...
View ArticleRequest: Looking for a specific blog I forgot the URL to
I’m trying to find this old blog I used to read to share to some co-workers but I can’t seem to find my bookmark of it anywhere or find it on google. I was a very distinctive blog. Their thing was...
View ArticleLittle help with hash to object?
I might be going around this the wrong way, but I am trying to get the title and the description from this api and pass it to a has table and then to an object. When i run this i get what i expect...
View ArticlePowershell menu loop issue
Dear all, i created a menu to start other scripts. But after choosing an option i would like it to bring me back to the start to be able to start another script without me having to start first script...
View ArticleOffice License Key Script to run on all computers
i want to run this script i have on that reports license key on all computers in the domain and have it passthru the results to the console or better yet computer name and key used in excel. submitted...
View ArticleCustom Class Sharing Thread
Hey /r/PowerShell, I have been trying to get into creating classes for my scripts lately and it occurred to me that some of you may be well ahead of me on this and may want to share some of your...
View ArticleFunction to trigger SCCM Baseline Configuration evaluation.
Hey guys! Unfortunately there isn’t a good way to manually trigger Baseline Configuration evaluation from the SCCM Console or through the ConfigurationManager Powershell module (at least not that I’ve...
View ArticlePowershell in Task Scheduler
I wrote a script to install windows updates and restart machines for our servers. I tested the script and it works. Now I want to automate this process to run every Saturday via GPO Task scheduler and...
View Articlebest way to encrypt password while retaining portability?
I need to deploy something out to numerous machines, I don’t want the password to be plaintext in the script for obvious reasons. What would be the best way to encrypt the password so it can be on...
View ArticleUpdate SQL table from csv column in powershell
I have a csv that I want to use to update one column in SQL with the values in the csv column. The csv currently has multiple columns. I need to run a foreach loop on this csv for each individual...
View ArticleX-Post from /r/SysAdmin – [PowerShell] Reset-ServiceAccountPasswords
submitted by /u/JBear_Alpha [link] [comments] The post X-Post from /r/SysAdmin – [PowerShell] Reset-ServiceAccountPasswords appeared first on How to Code .NET.
View ArticlePowerShell Parameter Disambiguation and a Surprise
submitted by /u/michaelshepard [link] [comments] The post PowerShell Parameter Disambiguation and a Surprise appeared first on How to Code .NET.
View ArticleInvoke-Command with Computers array, access single instance in Scriptblock
I have a script that uses Invoke-Command to copy items from multiple computers to a network share with: Invoke-Command -ComputerName $ComputersArray -ScriptBlock { …} Now I would like to copy the...
View Article